Hello, I am getting issue with an automation adding users mentioned in a comment to a custom field named 'Participants'. The following is the configuration of the automation:
Trigger = All comment
Then Create Variables to extract account_id in the comment
-Name: CommentUsers
- Value: {{issue.comments.last.body.split(" ").match("(accountid:.*)]").remove("accountid:")}}

Then Advanced Branch: For each smart value
- Name: varAddParticipants
- Value: {{CommentUsers.split("[-,; ]")}}

Then Add action > Edit Issue field > More option > JSON
{
"update": {
"Participants": [
{
"add":{
"id":"{{varAddParticipants}}"
}
}
]
}
}

But if I mention 2 users, A and B, then the automation adds user A first, then removes user A, then add user B
So the actual result is only user B is added, while expected result is both user A and B are added.
Please advise how to add all users. Thank you!