Forums

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

Execute a rule based on version name filter

Ohad Shalev April 23, 2023

Hi,

I have automation for sending email and Slack message when a new version is released. I want to split it into 2 different rules based on the version name. If the name starts with a "v" then send this message, if the name doesn't start with a "v" send another message. 

I used the Version name filter at the "When: Version released" section and put the expression {{version.name.startsWith("v")}}. I keep getting errors about "Invalid regular expression". How should I execute this filter?  

1 answer

1 accepted

1 vote
Answer accepted
Vikrant Yadav
Community Champion
April 24, 2023

Hi @Ohad Shalev Instead of creating two different rules, it's better to apply If else condition in one rule. Something similar to below screen shot. 

 

Screenshot 2023-04-24 143147.png

Suggest an answer

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

Atlassian Community Events