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

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.

Suggest an answer

Log in or Sign up to answer