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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,903
Community Members
 
Community Events
184
Community Groups

How to append a user to a multi select user field in Jira Automation

I have an automation that checks for updates on a series of fields. I would like to append the initiator of the field changes to a multi-select user picker called Transport Approvers.

I wanted to use this Transport Approvers field to capture all users who initiate the field changes.  However when I run the automation, and test with different users, I can only write over the previous user in the Transport Approvers multi-select field only allows me to write over the previous value, not append an additional one to the field. 

Is there a way this can be done? Thanks in advance.

Screen Shot 2022-04-07 at 7.28.30 AM.png

1 answer

1 accepted

1 vote
Answer accepted

Using the advanced option, I added this code snippet and it works perfectly:

 

{
    "update": {
        "MultiUserPicker": [{
                "add": {"accountId":"{{initiator.accountId}}"}
        }]
    }
}

 Where "MultiUserPicker" is the name of my field.

This doesn't work for me. I have a multi-user field called "Contributors".

Screenshot 2023-03-28 141418.png

My json is identical to yours:

 

{
"update": {
"Contributors" : [{
"add": {"accountId":"{{initiator.accountId}}"}
}]
}
}

 

but I get this error 

Additional fields contains invalid field(s) in 'update' or 'fields' section: Contributors

 

Any ideas on what am I doing wrong? 

 

KR, Ilia

Melanie Muschick
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!
Apr 05, 2023

If your field is a custom field, you most likely need to use its id like "customfield_12345"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events