Hello,
I have been looking to create an API post to Jira via Python which would create a ticket.
I have been successful in creating the ticket with a Project, Summary, Description and Issue Type. However, when I go to add a new Custom Field I am struggling. I have included the code below which was successful for the initial ticket creation;
new_issue = jira.create_issue(project='ProjectName', summary='New issue', description='Look into this one', issuetype={'name': 'Initiative'})
Then below is the attempt to add in the custom fields which failed.
new_issue = jira.create_issue(project='ProjectName', summary='New issue', description='Look into this one', issuetype={'name': 'Initiative'}, fields={'14778': 'Information'})
Any help is greatly appreciated!