I’m currently trying to change status from one to another which requires multiple transitions.
Example:
// Product Review to In Progress = QA Complete to In Development
if (issue.status.name == "QA Complete" && replica.status.name == "In Progress")
{
workflowHelper.transition(issue, "To Do")
workflowHelper.transition(issue, "In Development")
}
But this will end up giving me an error saying could not transition to “In Development”.
Could I not use workflowHelper to have multiple transitions?
I can not access the link. But I saw that it’s for Cloud.
Is there a same solution for JIRA Server instance?
Thanks
Comments:
Francis Martens (Exalate) commented on 10 September 2020
On what version of Exalate are you. The external scripts for status synchronisation have been incorporated into the product from version 5 onwards, such that you can do
issue.setStatus("targetStatusName")
This will try to find the shortest path to that target status, including multiple transitions.