On this page



Use case

Create a sub-task for every user in a User Picker field and assign every newly created sub-task to a different user. In addition, add a custom summary to every sub-task depending on the assignee.


Configuration


Add a Create issue post function to the workflow transition of your choice.


Issues to be created


Mode

Choose Multiple issues.


Expression

Enter the following expression with the parsing mode set to Text list.

toStringList(%{issue.cfUserPicker})


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 with the expression editor in Advanced text mode:

getMatchingValue(^%, ["user.one", "user.two", "user.three"], ["Summary 01", "Summary 02", "Summary 03"])

The summary of the sub task will vary for every user.

If you need to modify the summary for the issue assigned to user.two, you should edit "Summary 02", that is, the text in the same position in the text list as the text in the first text list.



Additional option


Select the field Assignee


Value

Select Set field value manually (parser expression)


Expression

Write ^% in the expression editor in Advanced text mode to retrieve the seed text.




Add more steps according to your needs.




Related use cases




JWT feature

Workflow function

Create issue

Parser functions

getMatchingValue()

toStringList()

Labelused to mark a use case as staff pick





Status
Tech review

Style guide