Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automations around keywords for versions

Heather Ronnebeck
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2025

Hi,

I am trying to create an automation that when tickets enter a certain status the following happens:

  1. Lookup a team field (team a, team b)
  2. If "Team a" then edit the ticket and add fix version "Team a - 1.x.x"
  3. If "Team b" then edit the ticket and add fix version "Team b - 1.x.y" 

The main issue is I need to search for a keyword in the unreleased version name and then add the respective version to the ticket in the fix version field. 

Does anyone have any suggestions on how I can do this?

Thanks!

3 answers

0 votes
Tharaka_Hettiarachchi
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 14, 2025

Hi @Heather Ronnebeck ,

This worked for me

1. Choose 'Edit Issue' -> 'More Options'

{
"update": {
"fixVersions": [
{
"set": [
{
"name": "{{#project.versions}} {{#if(not(released))}} {{#if(name.contains(\"Smart\"))}} {{name}} {{/}} {{/}} {{/}}"
}
]
}
]
}
}

 

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 13, 2025

Hi @Heather Ronnebeck 

If both your Team and the specific version number you show in the examples are unknown until the rule runs, the REST API will be needed to find the versions.

The rule could use the Send Web Request action to call the endpoint to search for the matching versions by their name, status, etc., parse them out with text functions from the webhook response, and then use a JSON edit to update the issue with the version name.

Kind regards,
Bill

0 votes
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2025

Hi @Heather Ronnebeck 

 

This should be fairly straightforward to do in automation.  Have you attempted it yet, and if so, are you encountering any problems?

Suggest an answer

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

Atlassian Community Events