Question on performing multiple transitions using "workflowHelper"

Originally asked by Cloud Chiu on 10 September 2020 (original question)


I am asking the same question as Could not perform multiple transitions using “workflowHelper” for Jira Cloud, however the answer with the doc https://docs.idalko.com/exalate/display/ED/Status+synchronization+on+Jira+cloud+with+multiple+transitions+on+a+single+sync mentioned from a reply is no longer available to access, it requires an account to view but my community don’t allow me to access.

Can anyone help on it?


Answer by Juan Grases on 10 September 2020

Hi!

This is the current URL for status sync on Jira Cloud: https://docs.idalko.com/exalate/pages/viewpage.action?pageId=19631067

workflowHelper only allows to do a single transition per sync, if you want many transition, you would set the status directly using

issue.setStatus("Status Name")

Comments:

Cloud Chiu commented on 11 September 2020

The current workflow likes Status 1 > Status 2 > Status 3. To map the replica status to local status, it is required to transit from Status 1 to Status 3 in one sync.

Do you mean it is now technically infeasible? Other than workflowHelper, can you suggest other ways to do this in one sync?

Francis Martens (Exalate) commented on 11 September 2020

Hi Cloud Chiu

The other suggestion is in Juan’s comment

issue.setStatus("Status Name")
  

Cloud Chiu commented on 15 September 2020

But I tried the following on one sync without luck.

issue.setStatus("Status 2")
issue.setStatus("Status 3")

But if the above two lines are run separately, it works without issues.

Francis Martens (Exalate) commented on 15 September 2020

Cloud Chiu

If the target status is ‘Status 3’ - just run

issue.setStatus("Status 3")

No need to call it twice.
Let me know

Cloud Chiu commented on 16 September 2020

It works, thanks

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