1
0
-1

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,

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      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é

      1. Jinjun Zhang

        Thank you, that worked for multi transitions

      CommentAdd your comment...
    2.  
      1
      0
      -1

      I can not access the link. But I saw that it's for Cloud.

      Is there a same solution for JIRA Server instance?

      Thanks


      1. Francis Martens (Exalate)

        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.

      CommentAdd your comment...