Forums

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

How to copy Labels' field value from main issue to all related issues and sub-tasks

Dillon Scicluna August 16, 2023

I need to set up an automation to copy the Labels' field value from the main issue to all it's related/linked issues, and sub-tasks. This needs to be done for all newly created issues and already created issues whose parent or related/linked issue has this specific label associated to it. However, not all main issuetypes will be Tasks. I have already tried multiple ways but none of them seem to be working even though the JQL condition I'm using is being validated.

1 answer

0 votes
Sayed Bares [ServiceRocket]
Community Champion
August 16, 2023

@Dillon Scicluna You can do this with the following automation role:

triggered issue.jpg

As for the trigger, if you want to do it for already existing issues then use a  Scheduled tigger to copy labels for all existing issues and  use Issue Created trigger for all newly created issues.

Dillon Scicluna August 16, 2023

With regards to the snippet, that's what I was doing. Also, I do not want to run Schedules as I need the issues to update the 'Labels' field instantly.

Like GuiF likes this

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