How to write "elseif" condition on the workflow?

Sebastián Delmastro October 11, 2017

 

The second IF doesn't work when issues are transitioned to "Esperando Validacion " status.

Any workaround on this? I am reluctant to write a 2nd rule for every elseif.

Captura de pantalla 2017-10-11 a la(s) 15.45.16.png

1 answer

1 accepted

0 votes
Answer accepted
Scott Harwood
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.
October 11, 2017

Hi Sebastián,

You need to use a branch to simulate an else if condition. The problem is it hits your first if condition then stops there as it doesn't match the criteria. 

 

Screen Shot 2017-10-12 at 10.12.22 am.png

 

Also, I recommend compare condition here rather than a jql one, it will help your rule to execute faster.

 

For a more detailed summary of else if, we have a knowledge base article written here:

https://codebarrel.atlassian.net/wiki/spaces/AUTO4J/pages/54100588/How+can+I+run+a+different+action+when+a+condition+doesn+t+match+if+else+branch

 

Cheers,

Scott

Sebastián Delmastro October 13, 2017

Thanks @Scott Harwood that workaround works great!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events