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

Platform Notice: Cloud Only - This article only 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 containsregular 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.

(Auto-migrated image: description temporarily unavailable)

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:

1 (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.

Updated on March 14, 2025

Still need help?

The Atlassian Community is here for you.