Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure one transition to correspond to multiple states

yundong.li
Contributor
June 7, 2021

I have a transition that want to rotate to the corresponding state according to different conditions, how could I to set it ?

 

2 answers

0 votes
Carlos Garcia Navarro
Community Champion
June 7, 2021

Hi @yundong.li ,

Would any of the options listed in advanced issue workflows cover your use case? https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/

yundong.li
Contributor
June 8, 2021

hi @Carlos Garcia Navarro @Hyrum Steffensen _Appfire_  thanks very much.

like this pic:

I hope it is  just see the transition01 in the status0 screen,

and when people click transition01, it will automatically flow to status01 or status02 according to condition01 and condition02.

I have use the automation for jira plug , but in the status0 screen, we can  see the  condition01 and condition02,but this is not I want.

so could I set one transition01 ? if could ,How can I do ?

thanks.

test.png

Hyrum Steffensen _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 8, 2021

Hello yundong_li,

Follow these steps:

  • add a rule when an issue transitions
  • add an if/else condition
  • add an action based on the (see the grey plus signs under both the if and "else-if" conditions).

 

Screen Shot 2021-06-08 at 11.16.56 AM.png

Regards,

Hyrum

Like yundong.li likes this
0 votes
Hyrum Steffensen _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2021

Hello yundong_li,

Thanks for posting your question to Atlassian Community. Consider using a scripting solution such as Automation for Jira, Scriptrunner or Power Scripts.

Here is an example of a SIL script that would run in Power Scripts:

if (nameOfCustomField == "text condition") {

    autotransition("transition name", key, false);

}

Here is further documentation on using the autotransition() routine.

There are many ways to run the script such as a Jira event listener.

Regards,

Hyrum

Please note that I am a product engineer for Power Scripts and work for Anova Apps, an Appfire company.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.3
TAGS
AUG Leaders

Atlassian Community Events