Automation: How to compare smart value with list of options in Advanced compare condition

Still need help?

The Atlassian Community is here for you.

Ask the community

 

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.

  

Summary

To add a list for the second value in the Advanced compare condition in the Automation rule such that if one of the values matches like OR function, the condition is met.

Environment

Jira Cloud

Solution

To achieve it, we can use a contains regular expression condition in the "Advanced compare condition", where the pipe (I) = OR. This will allow you to use a regular expression with the values that should be checked.

For example: If we need to match the values for the "Location" smart value,  we can use the following regular expression to check three values:

(APAC|EMEA|AMER)

In case any of these values are found in the smart value i.e. in the location text type Jira field, it will match the condition in the automation rule.

Last modified on May 26, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.