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?
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
Of course! Was looking at it too long and got stuck! Thanks for getting me un-stuck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.