The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira API bulk create - create all or none

Patryk Starostka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 30, 2020

Hi,

I want to create multiple issues at once using /rest/api/2/issue/bulk endpoint.

However, I want it to fail if ANY of the tickets fail. Right now it creates tickets that are correct, but my preferred way is to block it from adding any ticket if at least one fails.

Is there a way to do it? Thanks!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Bastian Stehmann
Community Champion
September 30, 2020

Hi @Patryk Starostka ,

there is no bulk create in the standard Jira API. So you'll either need an app, that has this feature (but I've never seen something like this before) or you can try to build your own REST Endpoint by using the Scriptrunner App for example. Then you can first get all data and validate it and then create the issues if everything is fine.

Another solution might be to save the created issues somehow and if an error appears, delete all already created issues.