Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,731
Community Members
 
Community Events
165
Community Groups

JIRA expression Nested IF condition

Hello All,

        We have a SIL validator in JIRA server version which has nested if conditions. Suprised to know that JIRA Cloud does not support SIL validators directly and have to use JIRA Expressions. Does JIRA Expressions support nested if conditions?

if(condition 1 is true){

      if(condition 2 is true){

       do something      

      }

}

1 answer

Hi @Vignesh Kumar ,

Welcome to the community and welcome to Jira Cloud!

Personally, I'm a huge fan of Jira Expressions, and I hope you'll come to like them.

Yes, nested conditions are possible and thankfully quite easy to do. Let's say you want a validator that checks that an issue is assigned and that its priority is medium. Here's how you'd do that:

issue.assignee != null && issue.priority == "Medium"

 Of course, you can also do OR and so much more, check out the documentation

Hope that helps,
 Oliver

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

369 views 0 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you