Forums

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

How to copy only specific labels from Epic to newly added child?

Julia Petrova July 20, 2023

I'm trying to create an automation which will copy only specific labels from Epic to its child which just has been added. I used Advanced Branching to get all lables from issue's Epic and choose only specific. But Edit issue action doesn't work as expected: it adds all chosen Lables at the same time and as result issue has only the final one added label.

Is it possible to save those specific labels somehow and add them all together as a list to the child issue in the automation?

Or maybe there could be other solutions that I missed for such scenario?

 

Untitled.jpg

Untitled2.jpg

1 answer

1 accepted

1 vote
Answer accepted
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.
July 21, 2023

Hi @Julia Petrova 

You are running into a situation where branches on more-than-one-thing are run in parallel and asynchronously.  And so the edits are "walking over" and replacing each other.  There is no way to do this type of update with such a branch. 

However...you can to add the additional labels in one operation, and it will be faster to process.

One way to do that is to parse your additional labels and format them as JSON, and then add them in one edit using the advanced edit: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Adding-labels

Using this approach you would remove your branching and format the information you apparently used to drive the branch.

Kind regards,
Bill

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