JSM Automation - Using multiple values for Issue Field Condition

Sam Ben-David April 24, 2024

Hi there.

 

When adding values to the Issue fields condition is it possible to add multiple values like in the screenshot below, or do we need to use a different issue fields condition component for each value?

 

Screenshot 2024-04-24 at 13.45.04.png

2 answers

3 votes
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2024

Hello @Sam Ben-David 

There are couple of ways to solve this:

Option 1: , Please see solution by @Bill Sheboy on how to solve this here -

https://community.atlassian.com/t5/Jira-Software-questions/Re-automation-Advanced-compare-quot-or-quot-condition/qaq-p/1815729/comment-id/502842#M502842

Basically,

Instead of Issue fields condition, Try, Smart value condition.

  • {{issue.summary.match("(reset password|resetting password|reset)")}}
  • does not equal
  • EMPTY (leave blank)

image.png

Option 2: is using JQL.

so instead of Field conditions, you will use JQL and write your query like:

JQL = summary ~ "reset password" OR summary ~ "resetting password"

And continue with your steps if it passes..

 

 

Please try any of the options and share screenshot if issues. If your issue is solved, consider accepting answer and vote Bill's solution in other thread so it surfaces in google searches. Thanks!

 

Sam Ben-David April 24, 2024

Hey @Kalyan Sattaluri thank you! Option 2 and using JQL seems much better and flexible for our needs.

Many thanks.

Sam

Like Kalyan Sattaluri likes this
1 vote
Fazila Ashraf
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 24, 2024

Hi @Sam Ben-David 

Not available for text based field like summary / description but for select fields like issue type , components, assignee etc, the "one of" , "contains any of" operators are available to compare for multi values.

Sam Ben-David April 24, 2024

Thanks @Fazila Ashraf

So would I need to set up multiple issue fields condition blocks if I want to check for different values?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events