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 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 11 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

34 views 0 5
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