Usage of REST API for migration of defects from an external system

We are currently working on migration of defect from an external application to JIRA 7.0. We understand preferred way to import the defects is using JIM. However, we are analyzing the option using REST API to create all the issues that are to be migrated, as JIM introduces manual intervention and the requirement is to have a one click migration. WIth this context we have below questions

While importing issue using JIM, the utility provides the creation of users in JIRA as part of the data import to the user picker fields. REST API expects the user to be available, active and having appropriate permission in the project. Do we have any workaround to mimic the functionality of JIM in REST API while creating the issue.?

Similar concerns are for fields with select options, components and versions. Do we have any suggestion to create those entries on the fly while creating issue using REST API?

1 answer

0 votes

The REST API does not have the administrative functions for updating fields, like JIM does.  To use REST to do this, you've got to have all the supporting data in place before you can import. 

Thanks Nic for your immediate response. I have seen the same behavior with JIRA CLI (BoB Swift). Is my understanding correct that the CLI tool also works in the same way as REST API.? 

Not quite the same way, but it does use REST.  It has an add-on component that allows for more calls than plain REST allows.

Thanks a lot Nic. We are going ahead with JIM for data, attachments and link imports.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,305 views 5 11
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