Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation: {{smart values}} IF Condition with two "Second Values"?

Steve Holland
Contributor
November 12, 2024 edited

Opposed to creating two seperate IF Conditions, is it possible to include two statements in the "Second Value" field? For instance: 

Example: 

First Value: SUMMARY

Condition: DOES NOT CONTAIN

Second Value: "Steve" or "Stephen" 

Actual Example: 

I just want to have it avoid pull requests with (WIP) or [WIP] in the titles because people use both

 

bitbucket.png

1 answer

1 vote
Marc - Devoteam
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.
November 12, 2024 edited

HI @Steve Holland 

This can be done, use the option "does not match regular expression" in the condition option.

Also see this KB article; automation-how-to-compare-smart-value-with-list-of-options-in-advanced-compare-condition 

Steve Holland
Contributor
November 13, 2024

@Marc - Devoteam  i dont have the "Advanced Field Condition" as an if condition component option that that kb you linked refers too?  we are on cloud. screen attached

 

also, how do i syntax the expressoins if the expressions actually contain brackets and parenthesisjira-advanced.png ?  for example, that kb just says do this: (Steve|Stephen)    but i need (WIP) or [WIP]..do i just put "quotations" around each expression then seperate them by this |? 

Marc - Devoteam
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.
November 14, 2024

Hi @Steve Holland 

Use the {{smart values}} condition for this.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events