How to set status when importing Jira Issues

I am importing ~5,000 issues from a custom application to Jira.

I am using the REST API and its going well.

Now I’m addressing setting the issue status. Is there a way to force an issue to have a status without going through the workflow transitions?

These are issues from an internal bug tracking system so some may be open, closed, dropped, etc

With well-formed workflows the issues can’t be transition direction from the initial status to all the other statuses and having to take the issues through all the proper transitions would be very painful.

 

Thanks

2 answers

3 votes

No, with REST, you can't do this.  REST "create issue" follows the workflow, so it creates open issues.  If you need them in another state, then you'll have to move them through the workflow (REST lets you do it, but I'm not going to say it's fun, as you need to map each possible route and possibly issue several "push through transition" calls)

With a "true" import you can set the status - CSV is the obvious one, but most of the other importers also allow/expect you to set the status as well.

Thanks, I guess I can look at using CSV again. 

None of it is easy cause there is a lot of data mapping needed between the systems .....

We have a special set of importers to do such use cases. If your external issue tracker is not among ones that we officialy support, you could use CSV and JSON Importers. I strongly recommend you using JSON one, as it's much more powerful to use. You can found official documentation here.

JIRA Importers are designed to issue migrations - it creates all missing fields/priorities/resolutions etc. on the fly, also it allows you to pick what status you'd like the issue to have.

"it creates all missing fields/priorities/resolutions etc. on the fly" must use that that clairvoyant interface. ;>} Seriously, it looks like you all have done a lot of good work. It still requires a great deal of mapping between systems, My systems list of priorities doesn't match Jira, for example. Also I don't see how to enable Json export in issues, just a reference that it can be done. Also no examples of setting status with the json importer.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,149 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot