Forums

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

Make a copy of a fix version using automation

Ian Rees
Contributor
August 19, 2023

Hi, I have created an automation to just create a copy of a fix version when a fix version is released.

My automation triggers on a Fix version being released and I use smart variables to create a new Fix Version name and I create that new fix version.    I am then using lookupissues to iterate through issues with the original fix version assigned to it, so that I can assign the new fix version to the same issues.  But I can't work out how to set the fix version field of the issues in the loop. Is there a way of doing this ?

3 answers

1 accepted

0 votes
Answer accepted
Rees_ Ian
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.
November 13, 2023

Solution was as follows.  This triggers when a Fix Version is release and if the Fix Version Name does not start with "Prod", it creates a copy of the Fix Version with the Fix version name preceded by "PROD"  and sets the Fix Version name in all the Issues

When Version Released

Create variable varOriginalVersion and assign Smart value {{version.name}}

Create variable varOriginalVersionDescription and assign Smart value {{version.description.abbreviate(100)}}

Create variable  varVersionName and assign Smart value {{version.name.toLowerCase()}}

If block {{varVersionName}} 'does not match regular expression ^prod:.*

Then

    Create variable varProdFixVersionName and assign Smart value PROD:{{version.name}}

    Create variable varNewFixVersionDescription and assign Smart value 'Production release for  FixVersion {{version.name}}'

    Create version {{varProdFixVersionName}} and set Version description to {{arNewFixVersionDescription}}

    Branch rule: For JQL fixversion='{{varOriginalVersion}}'

        Edit Issue and set Fix versions to {{varProdFixVersionName}} {{varOriginalVersion}}

1 vote
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 19, 2023

@Ian Rees -

Great that you resolved your own issue.  You should just click on "Accept answer" to mark this ask completed.  At the same time, it will be great if you can post your solution to the ask, so other users with similar question can see it is an answered question.

If you want to delete your own question, you can just access your ask and click on the "..." option and select Delete Question to remove it.

2023-08-19_12-29-10.png

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

0 votes
Ian Rees
Contributor
August 19, 2023

Actually I think I have this now but can't delete the question

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 19, 2023

Hi @Ian Rees 

I guess the cmunity would be happy to see your solution. Would you be so kind to share and describe your solution here as an answer? You could then accept your own answer and it might help other users in the future to find a solution when faced with a similar problem.

Best
Stefan

Ian Rees
Contributor
November 13, 2023

Done - albeit from another account. Thanks

Like Stefan Salzl likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events