I'm trying to set a custom field via Jira API by using an automation tool. In particular, I have a custom field (customfield_10490) with three values (IDs: 12379, 12380, 12381).
When particular conditions occur, this process updates the custom field of the related Jira ticket. So, the problem is when I set the field value (Custom field customfield_10490 and value 11381) I get the following error:
400 - {"errorMessages":[],"errors":{"customfield_10490":"Specify a valid 'id' or 'name' for CUSTOM_FIELD_NAME"}}
It seems you set select list cf.
Use one of them:
OR
Also, check this link.
If it doesn't work, please share your json body.
Alternatively, you can set a field via automation instead of sending a web request.
Within the API call the code should be like this
"customfield_10200": { "value": "a"}
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.