The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JSM Automation - Multiple Request Participants from comma-separated emails using an Advanced Branch

Lucas Cardoso Soares
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 11, 2026

Hi everyone,

I am investigating an issue in Jira Service Management Cloud related to populating the Request participants field from a text field containing multiple email addresses separated by commas.

I was able to reproduce the behavior in a test environment and isolate the issue.

The automation flow is:

  1. A text field receives multiple email addresses separated by commas.
  2. An Advanced Branch iterates over the values using a smart value similar to:{{issue.FIELD_NAME.replace(" ","").split(",")}}
  3. For each email, the automation calls:
    GET /rest/api/3/user/search?query={{emailParticipante.urlEncode}}
  4. The request returns HTTP 200 and a valid accountId.
  5. The automation then calls:
    POST /rest/servicedeskapi/request/{{issue.key}}/participant

 

Request body:

{ "accountIds": [ "{{webResponse.body.first.accountId}}" ] }

The issue is that when multiple emails are processed, only one participant remains in Request participants, even though both GET requests return valid users and both POST requests return HTTP 200.

I also tested storing the accountId in a variable inside the branch:

accountIdParticipante = {{webResponse.body.first.accountId}}

 

Then I used:

{ "accountIds": [ "{{accountIdParticipante}}" ] }

In this case, each branch preserved the correct accountId, but the final result still contained only one participant.

As a comparison, I tested a single POST request with multiple fixed accountIds:

{ "accountIds": [ "accountId1", "accountId2" ] }

This worked correctly.

 

HTTP 200 was returned, the response showed size=2, and both participants were successfully added to Request participants.

Because of this, my current hypothesis is that the issue is related to parallel execution of Advanced Branch iterations, where multiple updates to the same request may interfere with each other.

 

I also tested using an auxiliary text field to accumulate the accountIds before performing a single POST request, but the updates inside the branch were still inconsistent.

Has anyone successfully implemented a similar scenario?

I am mainly looking for guidance on:

  1. How to reliably resolve multiple email addresses into accountIds and then perform one single POST.
  2. Whether an Advanced Branch can be processed sequentially.
  3. Whether there is a recommended way to collect values from multiple branch iterations.
  4. Whether using two chained automation rules would be a better approach.
  5. Whether there is any known limitation involving webResponse, variables, or updates performed inside parallel branches.

Any examples or guidance would be greatly appreciated.

Thanks!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Andrea Robbins
Community Champion
September 11, 2026

Hello! 

 

Here is a link to a documented solution:

https://support.atlassian.com/jira/kb/add-update-remove-request-participants-using-automation-in-jsm-cloud/ 

 

In other words, keep the advanced branch so it loops through each user to get the email address, and use the advanced JSON within the edit work item action to just add the user incrementally (currently based on what you are experiencing, it is being set instead of just updated/added):

{"update": {  "Request participants": [  {  "add": {"id":"<accountId>"}  }  ]  } }

 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events