Example: Create specific sub-tasks for each selected component
This is an example of creation of multiple issues based on seed strings using Create issues and sub-tasks post-function.
We want to automatically create specific set of sub-tasks for each specific component selected in current issue. In this particular example we want to create the following sub-tasks for each component:
Component | Sub-tasks |
---|---|
Character | Model, Texture, Animation |
Landscape | Illumination, Music |
Portrait | Photo, Post-processing |
We want that each new sub-task remains unassigned, and that the reporter is the user, who executes the transition in parent issue. The rest of the fields in the new sub-tasks will inherit from parent issue.
We use Create issues and sub-tasks post-function in a transition or the workflow of parent issue with the following configuration:
We are using the following expressions:
- Seed strings
(%{00094} ~ "Character" ? ["Model", "Texture", "Animation"] : []) UNION
(%{00094} ~ "Landscape" ? ["Illumination", "Music"] : []) UNION
(%{00094} ~ "Portrait" ? ["Photo", "Post-processing"] : [])
where %{00094} is field code for Components - Summary
"Sub-task for " + ^%
- Description
getMatchingValue(^%, ["Model", "Texture", "Animation", "Illumination", "Music", "Photo", "Post-processing"],
["Create the model for the new character.",
"Create the texture for the new character.",
"Create the animation for the new character.",
"Create the illumination for the new landscape.",
"Create the music for the new landscape",
"Do the photos for the portrait.",
"Do the post-processing of the portrait."])
- Conditional execution
%{00041} = null
where %{00041} is field code for Parent's issue key
Once configured, transition will look like this:
Result screenshots post-function "Create issues and sub-tasks" - Create sub-task for each component
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
Other examples of that function
- Assign new issues to a different project role depending on field value in current issue
- Clone an issue and all its subtasks (with additional restrictions)
- Create 3 issues in 3 different projects
- Create a dynamic set of sub-tasks based on checkbox selection with unique summaries
- Create a static set of sub-tasks with unique summaries
- Create a story for each component in an epic
- Create a sub-task for each user selected in a Multi-User Picker
- Create a sub-task in each story of an epic
- Create specific sub-tasks for each selected component