Copy field values from epic to issues under it after creation

Use case

Copy the values of the fields defined in the Update fields post-function to the issues under the epic after their creation.

This chain of post functions will update the fields of all of the issues under the epic every time a new one is added to the epic during its creation.

🗒️ Prerequisites

Global reflexive transition

Create a global reflexive transition (a transition from any issue to itself).

⚒️ Configuration

Add the Update fields post function to a global reflexive transition and configure it as follows:

Target issue*

Select Parser expression and write the following expression with the expression editor in General parsing mode.

Bash
%{issuesUnderEpic()}

In order to update only the issues that are in the To Do status, you can use this other expression.

Bash
%{filterByStatus(issuesUnderEpic(), "To Do")}

Add the Transition issue post function to the Create transition in the second position and configure it as follows.

Target issue

Select Parser expression and write the following expression with the expression editor in General parsing mode .

Bash
 %{epic()}

Mode

Select  Execute transition and choose the global reflexive transition that contains the Update fields post function.

Conditional execution

Write the following conditional execution with the expression editor in Logical parsing mode.

Bash
%{issue.issueType} = "Story"


📚 Related use cases