Ability to update multi-user picker over API (only additions)

Matus Klaudiny April 23, 2024

Hello Team,

I struggle to find a right syntax for my Custom API Request. Goal is to update multiuser picker without removing current values of the field:

I can confirm that the "fields" method works for SET setting up the field.
____
{
"fields": {
"customfield_10003": [
{
"id": "XYZaccountId1"
},
{
"id": "XYZaccountId2"
},
{
"id": "XYZaccountId3"
}
]
}
}
___


However I want to add values without removal using update method. Which seems to not work, my current syntax for the body is:


{
"update": {
"customfield_10003": [
{
"add": "XYZaccountId1"
},
{
"add": "XYZaccountId2"
},
{
"add": "XYZaccountId3"
}
]
}
}
__

Would you like to help me find the right syntax for this to work? 

1 answer

1 accepted

0 votes
Answer accepted
Matus Klaudiny April 23, 2024


After some testing I have found the correct syntax. 


{
"update": {
"customfield_10003": [
{
"add": {
"id": "XYZ1"
}
},
{
"add": {
"id": "XYZ2"
}
},
{
"add": {
"id": "XYZ3"
}
}
]
}
}

Federico Boldrini June 13, 2024

Hi @Matus Klaudiny ,

 

Thank you so much for this info, it was very useful to me!

 

Kind regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events