Forums

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

Automation for child issues to inherit a particular label from their epic?

Adam Taylor
Contributor
August 17, 2023

Hi, 

I'm looking for an automation that will cause all child issue of an epic to inherit a particular label from the epic where that label is present.

By way of fuller explanation, I have some epics that include the label 'Essential_For_Go_Live' and I'd like all the children of those epics to inherit that label but not any other labels that might be present on the epic.

This doesn't have to be real-time and, to retrospectively apply to existing issues, I was thinking of a scheduled automation to run daily.

Any thoughts?

1 answer

1 accepted

0 votes
Answer accepted
Daniel Hostrup Eriksen
Community Champion
August 17, 2023

Hi Adam,

From your description, I'd say you could do a scheduled rule that looks up all Epics. Basically, a JQL search like:

issuetype = Epic AND resolution = Unresolved

(the last bit just so we don't waste time on resolved Epics ☺️)

Then, in the rule itself we'd first do an:

- IF labels contains <your_important_label>

then:

- Branch rule: For issues in Epic, edit issue, add <your_important_label> to labels

... and I think that should do it!

---

I'll have to admit I haven't tested this, but the logic should be sane 😎

Let me know how you fare, we may need to adjust a bit!

Br,
Daniel

Suggest an answer

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

Atlassian Community Events