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!
It looks like you're new here. Sign in or register to get started.