Trigger automation when version with specific name is created

kkimak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 26, 2024

HI,

I'm setting up automation in JIRA where creating a new version triggers the update of the 'Fix Version' field for specific issues.

I'd like to include a condition to only update issues when the new version name starts with 'XYZ'. I tried using the expression {{version.name.startsWith("XYZ")}} in the Version name filter, but it's not working as expected. Could you help me identify the issue and suggest a solution?

Zrzut ekranu 2024-06-26 163651.png

2 answers

0 votes
Bill Sheboy
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.
June 26, 2024

Hi @kkimak -- Welcome to the Atlassian Community!

When you added that trigger, it offered a link to help using a regular expression to test the version name.  Please review that for more information.

As that check is specifically on the version name, the only thing you would need to enter in the field is this:

XYZ.*

That would check for version names starting with XYZ followed by zero-to-many other characters.

Kind regards,
Bill

0 votes
Duc Thang TRAN
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.
June 26, 2024

Hello @kkimak 

Can can suggest this solution 

Trigger : when Version created

If : smart value comparaison 

{{version.name.startsWith("XYZ")}} equal true 

Then for jql -> action 

 

Capture d’écran 2024-06-26 173903.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events