Automation: How to compare smart value with list of options in Advanced compare condition
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.