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 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published Apr 19, 2018 in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

366 views 0 6
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