I have a custom field called "Freelance Linguists" which has the ID Customfield_10118. The field is a multi-select People field. I'm trying to add a specific user to the field (and not overwrite users also selected there) but the below is not working. Can anyone tell why?
Thanks!
{
"update": {
"Customfield_10118": [
{
"add": {
"id": "4135de02-8374-4828-a758-4cb1e1939d69"
}
}
]
}
}
I got this work!
Turns out the User ID was formatted wrong.
Sorry for taking your time!
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
It appears your syntax is correct for a multiple select, user field: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-user-picker-custom-field
You note this is a People field, and not a User field: there are definitely differences in behavior between those. Seeing your rule and audit log may help to narrow down the cause.
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.
Sorry for not providing more context.
The trigger is "New issue created" and then the automation looks at the description of the issue and checks whether it contains "French".
The first Action contains this:
{
"update": {
"customfield_10111": [
{
"add": {
"value": "French (fr-FR)"
}
}
]
}
}
This action also updates the content of a multi-select field and selects "French (fr-FR)" in that field. This part of the automation works like a charm.
I'm then trying to add another Action step to add a specific Jira user to a field called "Freelance Linguists" – still based on the presence of "French" in the description. This second Action step contains this:
{
"update": {
"customfield_10118": [
{
"add": {
"id": "4135de02-8374-4828-a758-4cb1e1939d69"
}
}
]
}
}
The user ID is the ID of our French freelancer, so that's the person who needs to be added to the multi-select People field.
I'm working in Jira Work Management, and don't see options for a User field vs. a People field. I only see the option for a People field, so that's what this field is.
I hope this helps and that maybe someone out there can point me in the right direction :)
Thank you and have a wonderful weekend!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Not sure if this is going to be the fix but can you try without capital C of customfield_10118?
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.