Clone wiki

JIRA Workflow Toolbox / amazing / Create a sub-task per user in User Picker

Create a Sub-task for each User selected in a Multi-User Picker

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

Purpose

We want to automatically create as many sub-tasks as users are selected in a Multi-User Picker custom field called Approvers when a certain transition is executed in parent issue.

We want that a sub-task is assigned to each of the users selected in Multi-User Picker custom field Approvers.

Post-function Configuration

We use "Create issues and subtasks" post-function in a transition or the workflow of parent issue with the following configuration:

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

Once configured, transition will look like this:

Create Issues and Subtasks whole configuration

Screenshots showing an example of execution of the post-function

Notes

The workflow is shared between parent issue and sub-task, thus we are using Conditional execution with boolean expression %{00041} = null to avoid the post-function to be executed by sub-tasks. Note that %{00041 is field code for Parent's issue key.

Related Examples

Updated