Moving Issues to other projects programmatically

I am developing a plugin for Jira, which imports issues from a json string.

Problem: If I import a issue from the json that already exists but with a different project, I want to update the current project to the new one. Unfortunately I haven't found any working solution yet. 

Question: How can I move a issue to another project programmatically in java? 

My Jira Version: Jira Core and Software: 7.3.7

Thank you for your efforts!

Martin

1 answer

0 vote

It is not straight forward because the projects might have separate workflow, issuetypes, security schemes etc.

If they are all the same, the solution is pretty simple. You just need to update the issue's project field using IssueService.

Ok, I realized that there are differences in the settings of the project. So a workaround for me is to delete the old issue and create a new one in the right project. 

Thank you very much! 

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,301 views 14 20
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