Following the Jira API instructions on creating an issue here:
I have a JSON file with multiple records; how do I get ALL of the records created as Jira issues when I do a POST to the https://[hostname]/rest/api/2/issue/ endpoint?
If I leave out the array tags "[" and "]" at the beginning and end of the file respectively, then when I do a post, only the first record is created. If I include those array tags, then I get an error:
Can not deserialize instance of com.atlassian.jira.rest.v2.issue.IssueUpdateBean out of START_ARRAY
You should use the POST /rest/api/2/issue/bulk endpoint:
If you're using Python and Requests library following might be helpful.
In your post request don't forget to give data attribute the issues in json format
response = requests.post(url, data=data, headers=headers)
Learn how to use two new reports for next-gen projects in Jira Cloud: Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events