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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

178 views 0 4
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