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

How to create automation trigger for if a version name contains specific text

Aaron Opoku April 28, 2023

I have two version naming conventions that include text one is (main) and other is (react)

I want to create an automation that assigns all issues with a certain status to a fix version when I create a new version.


I am struggling to be able to set up the below in the automation

 

When version is created 

AND 

version name contains (react)

 

any help??

2 answers

1 accepted

0 votes
Answer accepted
Brian Trepto
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.
April 28, 2023 edited

Is this what you mean?

  1. You create a new version that contains react
  2. Than you want to find certain issue through a JQL
  3. Than take those issues and move them to the created Version

Please confirm so we can check that

Aaron Opoku April 28, 2023

Yes please

I know how to do step 2 and 3, its 1 i cant figure out. 

This is the current workflow

 

2023-04-28_14-16-54.png

Like • Brian Trepto likes this
Brian Trepto
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.
April 28, 2023

If you click on more options in the version created trigger than you can set a regex for the name.

Screenshot 2023-04-28 at 15.19.06.png

Like • 2 people like this
Aaron Opoku April 28, 2023

I did see this but genuinely have no idea how to format it in order to work the way I want

 

Could you help with that?

Like • Brian Trepto likes this
Brian Trepto
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.
April 28, 2023

I need some example versions from you

Aaron Opoku April 28, 2023

Is there no way to do it based on just containing some fixed text?

 

The version name is not important or in a defined format at point of creation, all that is required is (main) or (react) is in the name. When ready for release we then update the name to a version number but it still is suffixed with either (main) or (react)

Brian Trepto
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.
April 28, 2023

I am not into regex but maybe "*REACT*" does it

Aaron Opoku April 28, 2023

doesnt work :(

Aaron Opoku April 28, 2023

I just typed in react / main and it can work like that, thanks

Fong Xu May 8, 2023

Hi Aaron,

I am working on some automation using version created as a trigger, but I am getting invalid regular expression error. 

jira-auto-release-regex-2023-05-07_09-18-54.png

 

I was trying to use the following to check not empty, it shows `invalid regular expression`. I tested `^\S+$` in https://regex101.com/. it is correct. But not sure using `.match()` function is right or not. Any ideas?

{{version.startDate.match("^\S+$")}}

Thanks!

Like • James Chan likes this
0 votes
James Chan
Contributor
August 6, 2024

Within the Version name filer box, if you want to filter description contains "React" then you can use

(?i).*React.*

the (?i) means don't care what case it is using, e.g. ReacT or reAct etc.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events