Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Check for multiple values in multiple field

Tom Brickell December 10, 2024

I'm new to Jira and want to create a rule to check the summary contains "W-AR" and the description also contains either "invoice", "invoices", or W-AR" then changes the label. None of it needs to be case sentive. I thought the below would work but it doesn't seem to trigger. Any ideas?

values.JPG

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
December 10, 2024

Hello @Tom Brickell 

Welcome to the Atlassian community.

Please show us:

1. a screen image of he details of the Condition step

2. the output in the rule Audit Log

It could be that the rule is being triggered but the issues are not matching the condition.

Also I notice that you said

the summary contains "W-AR" and
t
he description also contains either "invoice", "invoices", or W-AR" 

...but in the condition you have specified them exactly opposite

Tom Brickell December 11, 2024

Hi,

Basically i want the rule to run like below (non of it case sensitive):

 

If SUMMARY contains any of these terms "W-AR" "invoices" "invoice" and the DESCRIPTION contains this term "W-AR" then add the specified label.

 

It works when i've amended it to the below but I want to be able to set multiple terms for the summary so the rule is triggered by more tickets. In essence what I really want to acheive is an automation that searches for multiple values in the summary AND description before triggering the automation rule.

invoice.JPG

Trudy Claspill
Community Champion
December 11, 2024

I recommend that you try a structure like this:

Screenshot 2024-12-11 at 11.48.33 AM.png

Use a standard IF condition to check the Description field first, since you are looking for only one value there.

Screenshot 2024-12-11 at 11.50.26 AM.png

Then use an IF/ELSE condition so that you can use the At least one condition matches option to check for multiple values in the Summary field.

Screenshot 2024-12-11 at 11.51.02 AM.png

Your actions would then need to be contained under the second IF.

I have not fully tested that, but I think it will work.

Tom Brickell December 12, 2024

Thank you very much I have updated the rule and will test now. 

Tom Brickell December 12, 2024

All working :) Very much appreciate your asisstance it has helped me understand the structuring much better.

Trudy Claspill
Community Champion
December 12, 2024

I'm glad I could help!

Please consider clicking on the Accept Answer button to mark your Question as Solved. This helps others searching the community find posts with validated solutions.

Suggest an answer

Log in or Sign up to answer