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
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.
Related use cases
If you still have questions, feel free to refer to our support team.