Create a sub-task for each component

Use case

Create a sub-task for each selected component in the current issue, you can make use of this function to avoid repetitive tasks when you have multiple components and want to create a sub-task for each.


⚒️ Configuration

Add a Create issue post function to the workflow transition you want.

Issues to be created

Mode

Choose Multiple issues.

Expression

toStringList(%{issue.components})

with parsing mode set to Text list.

The number of list elements defines the number of issues to be created.

Issue type

Choose Selected issue type.

Specific issue type

Choose Sub-task .

Parent issue

Choose Current issue.

Summary

Enter the following expression 

Bash
"Sub-task related to " + %{seed.text}

with parsing mode set to Advanced text.

Description

To enrich the issue with further information, you might want to add a short description. It is not mandatory, though.


📷 Screenshots

CreateASubTaskForEachComponent.png


📚 Related examples