Set Jira tickets version name (filtered) on merge request

James Cullimore
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!
March 25, 2024

Hi,

 

I'm looking to set the version name of a ticket once a merge request has been performed. I saw in the automation tab that it is possible to transition a ticket and setting the version name, even to the latest release version. My issue is however,

 

that I need to filter the release versions based on a name, as multiple clients have release versions within the project.

 

For example we have clientA_v1.0.0, clientB_v2.3.6, ...

I need to be able to filter the list and only get the latest from clientA. Is this possible?

 

Kind regards

James

1 answer

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.
March 25, 2024

Hi @James Cullimore -- Welcome to the Atlassian Community!

To do that, I believe your rule would need to call the REST API function to get all of the versions for the project, and then use a regular expression with the match() function to filter down to the one you want.

If you want to try this, here is some documentation / how-to articles to get started:

I suspect the filtering may take two steps, as you want to filter by version name and by the release date.

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events