Clone wiki

JIRA Workflow Toolbox / amazing / Create a Subtask for each Story

Create one Subtask for each Story

This is an example of creation of multiple issues based on seed issues using "Create issues and subtasks" post-function.


We are going to insert a post-function in a transition of epic's workflow in order to create one subtask on each story which is in status "To Do" or "Open".

Post-function Configuration

We insert "Create issues and subtasks" post-function in a transition of epic's workflow using the following configuration:

Create Issues and Subtasks configuration 1/4
Create Issues and Subtasks configuration 2/4
Create Issues and Subtasks configuration 3/4
Create Issues and Subtasks configuration 4/4

Once configured, transition will look like this:

Create Issues and Subtasks whole configuration

Seed Issues

We use the following issue list expression for selecting those issues linked to the epic (using issue link type "is Epic of"), with issue type "Story" which are in statuses "To Do" or "Open": filterByStatus(filterByIssueType(linkedIssues("is Epic of"), "Story"), "To Do, Open")


As the issue type of the new issues is "Sub-task", we should specify a parent issue for each of them. In this case the parent issues will be the seed issues, i.e., each of the stories selected by the former issue list expression.


The subtasks will be assigned to the same user who has the parent Story assigned.


The subtask will be reported by the assignee of the epic issue.

Due Date

The due date of the subtask will be 3 days ahead skipping weekends.

We use the following formula: addDaysSkippingWeekends({00057}, 3, LOCAL)

New comment

An automatic comment will be created in each new subtask.

We use the following text expression: "This issue was automatically generated by " + %{00015} + " epic issue for " + ^%{00015} + " story."

Conditional execution

Ee set a condition so that we ensure that the post-function is only executed when current issue is an Epic, this way we can use the post-function in workflows shared with other issue types.

Screenshots showing an example of execution of the post-function

Related Examples