Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Adding Multiple Account IDs To the Request Participants Field

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? 

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 28, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events