I want to set a custom field (group picker field - single group) to a particular user group.
My automation looks like this:
{
"fields": {
"customfield_10140": {"id":"35911a95-667e-4fb6-a5e5-9b4550ce1cc7"}
}
}
Error: (Unrecognized field "id" (Class com.atlassian.jira.issue.fields.rest.json.beans.GroupJsonBean), not marked as ignorable at [Source: N/A; line: -1, column: -1] (through reference chain: com.atlassian.jira.issue.fields.rest.json.beans.GroupJsonBean["id"]) (customfield_10140))
When I tried this:
{
"fields": {
"customfield_10140": {{"id": "35911a95-667e-4fb6-a5e5-9b4550ce1cc7" }}
}
}
I get the error:
(Can not deserialize instance of com.atlassian.jira.issue.fields.rest.json.beans.GroupJsonBean out of START_ARRAY token at [Source: N/A; line: -1, column: -1] (customfield_10140))
Can someone help me with the context?
This is very strange... now all of sudden I can see my custom field within the Edit Issue. I didn't see it before and was trying to set the value within the Advanced. So no issues and resolved!
I am glad to see you figured it out. For future reference, please take a look at this documentation page; it shows examples similar to what you were trying to do:
https://support.atlassian.com/jira-software-cloud/docs/advanced-field-editing-json/
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill!
This reference you gave is almost enough. I didn't find there how to update custom field: Group picker...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you mean a multi-user selection like this: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-user-picker-custom-field
Or something else?
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.
Hi @Bill Sheboy
No, I'm trying to execute the exact thing that is in the original request:
"I want to set a custom field (group picker field - single group) to a particular user group."
When I tried this:
{
"fields": {
"customfield_10620": {{
"value": "DLS_JIRA_AXO" }}
}
}
I still got an error in my automation rule.
How can I find the id of a group as it shown in the original Kathi request?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are several ways to do this. First find an example issue which uses that field, and then:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the JSON structure that worked for me... Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Cooper Latham, yes, this works! Thanks. Here is a JSON if you have multiple group selection field and want to add a group (not owerwrite current one):
{
"update": {
"customfield_10xxx": [
{
"add": {"groupId":"xxx-xxx...xxx"}
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.