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

Copy a field from a parent (e.g. initiative) to a single Epic

Simon Ma April 10, 2024

So I found this very helpful article how you can do workaround in Jira so that the epic inherit values from its parents.

https://confluence.atlassian.com/automationkb/automation-for-jira-writing-a-rule-that-copies-a-field-from-a-parent-to-a-child-issue-as-soon-as-the-child-issue-is-linked-to-it-1319570518.html

The small problem with the solution is that the "Rule configuration 2" triggers so that all child issues (epics) will inherit values from its parents. This is problematic if you have a use case where you only want the epic you changed to inherit from its parent.

So I modified the solution so only the epic you triggered will inherit values from its parents.

In order to do that I need to pass the key of the initial epic to the next automation. For Rule configuration 1 I added the key to the comment so I can read it in the second automation where it originally came from. Change the comment text to

A new Epic issue was added to this parent issue. {{triggerIssue.key}}

In the Rule configuration 2 modify the Advanced compare condition to

Condition: contains

Second value:

A new Epic issue was added to this parent issue. PROJEKTKEY-

And then inside the Branche Rule modify like this:

"Parent Link" = {{triggerIssue.Key}} AND key = {{triggerIssue.comments.last.body.substring(49)}}

With this, it will only the original epic that triggered the automation will inherit the values from its parents.

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events