Forums

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

When an issue is created, copy the labels from the parent Epic

Deleted user
March 24, 2022

Hello, I've been looking around at the other FAQs but none of them seem to work for me. When I create a task within an Epic, I would like the task to inherit the labels from the Epic, so that my board will be automatically populated.

 

I tried the following:

When: Issue created

If matches

    Epic Name contains Risk score

    Then: edit issue fields

         labels

 

I have published the rule and it is active.

Any help would be appreciated!

1 answer

2 votes
Ste Wright
Community Champion
March 25, 2022

Hi @[deleted] 

You need to reference the Epic's field, rather than Epic Name on the created Issue (which isn't populated)

 


This worked for me...

  • Trigger: Issue Created
  • Condition: JQL Condition
    • JQL: "Epic Link" is not EMPTY
  • Condition: Advanced Compare Condition
    • First Value: {{issue.epic.Epic Name}}
    • Condition: contains
    • Second Value: Risk Score
  • Action: Edit Issue
    • Field: Labels
    • Logic: Copy Labels from Epic Issue - set via 3-dots icon

 


A few notes...

  • The JQL condition isn't definitely needed - it just helps limit the amount of Issues triggering an action. Technically an Issue with no Epic Link would copy no Labels, so remain as-is.
  • The contains sub-condition might not be sufficient if there's lots of Epic Names with just Risk or Score in their name. That's where a regular expression might be needed.

 


Let us know if this works - or if you have any further questions!

Ste

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events