# Could not perform multiple transitions using "workflowHelper"

**URL:** <https://community.exalate.com/t/could-not-perform-multiple-transitions-using-workflowhelper/4101>\
**Category:** General Questions\
**Tags:** cloud-jira, migrated\_question, feature-workflow\
**Created:** [November 4, 2024, 6:30am UTC](https://community.exalate.com/t/could-not-perform-multiple-transitions-using-workflowhelper/4101 "2024-11-04T06:30:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:30am UTC](https://community.exalate.com/t/could-not-perform-multiple-transitions-using-workflowhelper/4101/1 "2024-11-04T06:30:42Z")

</div>

_Originally asked by Jinjun Zhang on 07 October 2019 [(original question)](https://oldcommunity.exalate.com/questions/3704191)_

* * *

I’m currently trying to change status from one to another which requires multiple transitions.

Example:

```auto
// 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,

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:30am UTC](https://community.exalate.com/t/could-not-perform-multiple-transitions-using-workflowhelper/4101/2 "2024-11-04T06:30:43Z")

</div>

_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](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

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:30am UTC](https://community.exalate.com/t/could-not-perform-multiple-transitions-using-workflowhelper/4101/3 "2024-11-04T06:30:44Z")

</div>

_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
> 
> ```auto
> issue.setStatus("targetStatusName")
> 
> ```
> 
> This will try to find the shortest path to that target status, including multiple transitions.

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 6, 2024, 6:31am UTC](https://community.exalate.com/t/could-not-perform-multiple-transitions-using-workflowhelper/4101/4 "2024-11-06T06:31:23Z")

</div>

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