On this page

Use case

Create an issue after transitioning an epic and update its Epic Link field to link it to the transitioned epic.


Configuration

Add a Create issue post function to the desired workflow transition.

The Create transition might be here the best choice. When added to the Create transition, the post function will be automatically executed each time that an issue is created.

Issues to be created

Mode

Choose Single issue

Issue type

Choose Selected issue type → Task

Summary

Enter any expression that suits your needs.

Issue under epic

Additional options

Choose the Epic Link field.

Value

Select Select field value manually (parser expression).


Expression

Write the following expression with the expression editor in Basic text mode.

%{issue.key}
Variation

If the transitioned issue is an issue under the epic instead of the epic itself, you could use this expression in Advanced text mode to inherit the Epic Link field value.

toString(epic())

Conditional execution

Use the following expression.

%{issue.issueType}="Epic"

This expression evaluates if the issue type of the issue that executes the transition is Epic. If it is needed that other issues with different issue types execute the post function, the expression for the conditional execution should be adjusted.



If you still have questions, feel free to refer to our support team.