How to write "elseif" condition on the workflow?

 

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
Accepted answer
Scott Harwood Community Champion Oct 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

Thanks @Scott Harwood that workaround works great!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

325 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you