Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

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

How to copy on certain fix versions from an Epic to its child?

Patrick Cartier March 4, 2025

The Epic to child part is fairly simple.

The difficult part and one that I am struggling with currently is only copying certain fix versions from the Epic's Fix Version field.

Let's say Epic-1 has Fix Versions "ABC 2024" and "123 2024." I would like to copy only the "ABC 2024" Fix Version and not the "123 2024" Fix version.

Any ideas?

 

1 answer

0 votes
Vishal Biyani
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 4, 2025

@Patrick Cartier 1 

Do you have specific rules for exclusion? if so, you can iterate through the list of fixVersions and if they match the rules for exclusion then don't append in Epic else append it.

Patrick Cartier March 4, 2025

Let's say the rule is if the fix version doesn't contains ABC then don't append it and if it does then append it.

Is that enough of an exclusion rule?

Vishal Biyani
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 4, 2025

Iterate over fixVersions

{{#issue.fixVersions}}

if(name.match("*(ABC)*"), <True do something>, <False do other logic>)

{{/}}

 

see if this works for you

Patrick Cartier March 5, 2025

For the true and false sections, how would I copy that specific fixversion name if true and do nothing at all if false?

Suggest an answer

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

Atlassian Community Events