Я пытаюсь добавить создание новой проблемы в JIRA, используя python с кодом ниже, который работает, но каким-то образом не может понять, как я могу добавить вложение здесь вместе с уполномоченным и наблюдателями. Также в описании, как я могу добавить форматированное описание, а не только текст.
Может кто-нибудь помочь здесь?
def new_issue(self):
my_date = datetime.datetime.now().date()
# current_day = datetime.datetime.now().day
# current_month = datetime.datetime.now().month
# current_year = datetime.datetime.now().year
now = datetime.datetime.now().date()
start_month = datetime.datetime(now.year, now.month, 1)
date_on_next_month = start_month + datetime.timedelta(35)
start_next_month = datetime.datetime(date_on_next_month.year, date_on_next_month.month, 1)
last_day_month = start_next_month - datetime.timedelta(1)
sixth_day_month = last_day_month.date() + timedelta(6)
description = "Hi Team" \
"Hope you are doing well." \
"Kindly confirm the current advertisers and accounts from the PDF attached." \
"Making sure that for each platform the correct account id, " \
"advertiser or account name get included in the NDP data for ALL channels." \
"Note: Do let us know if there is any account that needs to be removed." \
"Please make sure that the media plan is uploaded on the NeoSageCentral SharePoint Folder."\
"" \
"Thanks,"
issue_dict = {
'project': {'key': 'MOS'},
'issuetype': {'name': 'Reporting'},
'summary': 'Test NDP Data Audit {} AUS'.format(my_date.strftime('%B')),
'description': description,
'customfield_10038': {'value': 'AUS'},
'customfield_10052': {'value': 'Ad hoc'},
'customfield_10053': {'value': 'Monthly'},
'duedate': str(sixth_day_month)}
new_issue = self.client.create_issue(fields=issue_dict, prefetch=True)