I'm currently following this https://community.atlassian.com/t5/Automation-questions/So-close-Add-multiple-accountID-Strings-to-User-Picker-Multi/qaq-p/1857730 to add multiple @mention users into the Request Participants field. The only trouble is that I can't seem to get this smart value into a JSON array or a comma separated list like the person in the guide did. Here's what my inputs and outputs looks like:
Input: @UserA@UserB
Condition: If: Compare two values - {{issue.comments.last.body}} contains \[~accountid:.+\]
Then Create: {{issue.comments.last.body.match("(\[~accountid:.+\])").remove("[~accountid:").remove("]")
Output: 62a74956f8cf79079d6f3f5 61e707b338911c0768543139
Desired: [62a74956f8cf79079d6f3f5, 61e707b338911c0768543139]
Did Atlassian change the way the match function work since the guide was posted?
Hi @Jun Koo -- Welcome to the Atlassian Community!
I believe the part you are missing is to split the result on spaces, and then add the commas. You could also use the asJsonObject() function, as described in the post you linked to.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.