Features used to implement the example



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



Related Usage Examples