Is it possible to auto create sub-tasks for each of the users tagged in the Requested Participants field (or any other multiple select user field really)? I see the ability to create a sub-task in the automation actions but is it possible to phrase out the users in a multi-user field and create sub-task for each of those users?
Hi @Sara T,
Developer from Automation here.
You should be able to achieve this use-case by using smart values in combination with our "Advanced branch", which allows you to branch on any list attribute such as user fields or request participants.
Basically how it works is in the top field you provide the smart value you are looking to iterate over in this case it could be {{issue.Request Participants}} or for other user fields {{issue.My User Field}}. The second variable is what you will refer to the current user field in the iteration/loop such as participant, then you can access with {{participant}} . In my example below I just iterate over each user in request participant and log out their display name:
Try testing that out on a rule, then you can switch out the Log Action with whatever actions you desire e.g. Create Task/Sub-task.
If you require additional help, you can get in contact with support: https://support.atlassian.com/
Hope this helps.
Cheers.
Hi @Sara T
With jira automation it would be very tricky.
I would recommend you get one of the scripting plugins such as jmwe, power scripts or scritprunner to accomplish this with a postfuntion in your workflow.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.