Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JMWE - Jira Server Clone/Copy Post Function - transition cloned issue

Jonathan Chatwin May 30, 2019

Can this be done in the post function?

I need to clone an issue and then also ensure that it gets transitioned to a certain status. Can't figure it out... anyone know how to also have the cloned issue transition to a new status? 

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
May 30, 2019

Unfortunately, the only way in Jira to change the status of an issue is to transition it. So you'll need to have a transition from the "initial" status to the desired status for the new issue (note that this transition can be hidden from users using the "Hide from users (JMWE add-on)" Condition if necessary).

Then what you'll need to do is add a Transition Linked Issues post-function right after the Create/Clone Issue(s) post-function to trigger that transition on the new issue (assuming it's linked to the current issue) - if you can have more than one linked issues, you can use the following Conditional Execution script to make sure only the new issue is transitioned:

linkedIssue.key == transientVars.newIssue.key
Jonathan Chatwin June 3, 2019

Of course! Was looking at it too long and got stuck! Thanks for getting me un-stuck! 

Suggest an answer

Log in or Sign up to answer