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"
Use case Workflow function Parser functions
Set the due date based on the priority

Update fields

getMatchingValue()

Obtain the difference between two dates

Update fields


Assign an issue to the user who last commented on it

Update fields


Add three days skipping weekends automatically to a Date Picker

Update fields


Keep parent's priority in sync

Update fields


Set the assignee based on the issue type

Update fields

getMatchingValue()

Set the fix version to affects version when resolving an issue

Update fields


Use the app user to update non-editable fields

Update fields


Automatically add incident reporters to problem tickets

Update fields

append()

fieldValue()

linkedIssues()

toStringList()

Copy labels of a sub-task to the parent issue upon closing

Update fields


Assign an issue to the project lead, if the issue is unassigned on creation

Update fields


Add watchers from another field

Update fields

Transition issue

union()

toStringList()

Add a sub-task's summary and key to the description of its parent

Update fields


Set a date field to a future date

Update fields

dateTimeToString()

Record an auditable timestamp of a Compliance Approval

Update fields

dateTimeToString()

Copy field values from epic to issues under it after creation

Update fields Transition issue

epic()

issuesUnderEpic()

filterByStatus()

Set a date field to the current date

Update fields

dateTimeToString()

Assign important issues to the project lead

Update fields


Set the priority to Highest if the 'Infrastructure' component is selected

Update fields


Background priority calculation

Update fields

avg()