On this page
Use case
Add the users selected in a User Picker (multiple users) custom field as request participants.
Configuration steps
Create a remote action
In Expert mode, create a new action with the following parameters:
Name
Enter Add request participants as the name of the new action.
Method
Select the POST method.
Default connection
Select the connection with the current instance.
REST path
Enter the following REST path.
/rest/servicedeskapi/request/{issueIdOrKey}/participant
REST path parameter
Set the field Issue key for the issueIdOrKey parameter.
Action body
Enter this expression in for the Action body section.
{ "accountIds": [%{jiraExpression("issue?.customfield_nnnnn?.map(u =>'\"' + u.accountId + '\"')")}], "usernames": [] }
It is required to replace nnnnn with the ID of the User Picker (multiple users) field in the above expression.
Related examples
If you still have questions, feel free to refer to our support team.