Could not perform multiple transitions using "workflowHelper"

Originally asked by Jinjun Zhang on 07 October 2019 (original question)


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?

Thanks,


Answer by André Leroy-Beaulieu Castro on 07 October 2019

Hi Jinjun,

It is definitely possible to do multiple transitions on one sync, the way to do it is explained in the following documentation link: https://docs.idalko.com/exalate/display/ED/Status+synchronization+on+Jira+cloud+with+multiple+transitions+on+a+single+sync

Please take a look at it and let me know how setting this up goes for you!

Thanks,

André


Comments:

Jinjun Zhang commented on 07 October 2019

Thank you, that worked for multi transitions

Answer by Hung Nguyen on 13 July 2020

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.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.