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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,519 views 15 21
Read article

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