Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot set custom field value

Nicolas Gomez July 26, 2023

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"}}

Is it needed another nomenclature like id.12379 or something like that? I also tried with the name (string) of the field but it did not work.
The HTTP error is 400.

2 answers

2 votes
Tansu Akdeniz
Community Champion
July 26, 2023

Hi @Nicolas Gomez 

It seems you set select list cf.

Use one of them:

  • "customfield_11449" : { "value": "option3" }

OR

  • "customfield_11449" : { "id": 10112 }

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.

1 vote
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2023

Hi @Nicolas Gomez 

Within the API call the code should be like this

"customfield_10200": { "value": "a"}

Suggest an answer

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

Atlassian Community Events