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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,432
Community Members
 
Community Events
184
Community Groups

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

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??

1 answer

1 accepted

0 votes
Answer accepted

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

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

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

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

I need some example versions from you

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)

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

doesnt work :(

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

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!

Suggest an answer

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

Atlassian Community Events