I have a custom field that has 30+ values that can be chosen in any combination. So for example the field could have A or A,B or A,B,C....the combinations are rather endless. I have been struggling to update this field via an API for several weeks now. I have read the documentation and have used the following per the documentation:
"customfield_10112": [{"value": "value1" },{"value": "value2"}] or
"customfield_10112": [{"id": 10156}, {"id": 10163}]
Neither of which work. Work was done in Postman. I confirmed that I can update other fields on the Jira ticket, just not this custom field. I have read through various posts and tried a lot of different suggestions but to no avail.
Hi @Claudine Warren -- Welcome to the Atlassian Community!
Either of those syntaxes look correct, assuming they are included with the rest of an issue update call and the field can be edited: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put
Have you checked the metadata to determine if your field can be updated this way? For example, by identifying an example issue with your field and using this call:
yourJiraURL/rest/api/2/issue/exampleIssueKey?expand=editmeta
Then check which operations are available for the field.
Kind regards,
Bill
@Bill Sheboy I did the above.....here is a snippet with the custom field I am trying to update.
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which REST API function are you calling for this message?
Just to confirm, you send the message and it shows no errors AND does not set (or update) the field?
When you checked the metadata with the example issue, did the values appear in the same structure as you expected?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
REST API function....may not totally understand exactly what that means, but this is my what I use to send my request.
https://mycompanydomain.atlassian.net/rest/api/2/issue/AGT-1986?expand=editmeta
Correct, I send the request with the custom field update and I get a successful response, just no update in Jira on that specific field.
The metadata yess, I see the whole list of different 'valid values' and it is what I expect.
Another side note. I did do a GET on a record where I updated this field in JIRA, it returned this:
"customfield_10112": [
{
"self": "https://personifyhealth.atlassian.net/rest/api/2/customFieldOption/10156",
"value": "Accordant",
"id": "10156"
},
{
"self": "https://personifyhealth.atlassian.net/rest/api/2/customFieldOption/10163",
"value": "Centene",
"id": "10163"
}
]
I copied this exactly and pasted into my request to see if it would update. Again, successful response but no update in JIRA for this specific field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It appears you are using Edit Issue one: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put
Sorry, I am out of suggestions on this symptom. The syntax you originally tried for a multi-select custom field seems correct for an update using "fields" to replace the values or "update" with "set" or "add" operations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I appreciate the assist. I will look into submitting a ticket to support.
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.