code for move issue listener in jira



From where i can get the code for Move issue listener in JIRA which is already being used to move an issue to another project.


I need to re-utilize it for a custom event.




1 answer

1 votes

There is no "move issue listener" that I know of.  What makes you think there is one?

ok. Actually I wanted a little bit of code which is there for Moving an issue from one project to another project (which is already there in JIRA) so that i can get an idea to write a listener for same.

The procedural code for moving an issue can be found in the Jira source code - if you have a licence, you can download it and have a look (no sharing code with people though) But, I would take a close look at what you are proposing - try manually moving an issue from one project to another, when the two projects have totally different sets of issue types, fields and workflows. You'll find Jira asking you a LOT of questions, and you're going to have to code to answer all of them automatically.

Thanks. ok, will check the code. Actually, if you can suggest something for the below scenario: I have a workflow for one project in which i have added a custom status as "Move". I want whenever there is a transition from a status to this "Move" status in the ticket, the particular issue/ticket should open up a "Move Issue"screen; a "move issue" screen which is there in JIRA or if i can create my own "move" screen which can move that issue to another project. Please help.

There is no way to trigger a screen from a workflow like that. You can create your own "move" operation with a plugin, but you'll have to do the same checks and prompts that the current "move" process goes through, so I'm not sure it's really worth re-inventing the wheel on that one. I suspect your best bet might be a simple human approach 1. Change your process so that you don't need to move the issues 2. Save a filter for "issues in move status" and task a human to regularly check it and move the issues returned by it

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 ...

2,847 views 12 18
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