The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events