Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Change dropdown option on custom field

Ashley_Abell May 8, 2018

 

I keep getting the following response: Invalid custom field item value.

 

I’ve tried using both of these in the request body but neither work

{"value":{"dropdown":"text"}}

{"value":{"list":"text"}}

{"value":{"list":"{idOfDropdownOption}"}}

{"value":{"dropdown":"{idOfDropdownOption}"}}

 

A normal text/number field works perfectly but can’t figure out why the dropdown one doesn’t work at all.

2 answers

1 accepted

0 votes
Answer accepted
Oscar Triscon
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.
May 8, 2018

Hi Ashley,

Try it like this:

PUT 1/cards/<card_id>/customField/<field_id>/item

With payload:

{ "idValue": "<value_id>" }

 I.e. for options, you need to set idValue instead of value.

Ashley_Abell May 8, 2018

Thanks, that's worked.

Bit confusing as there's nothing in the documentation about this changing.

0 votes
Chris_Stewart September 11, 2018

I have a similar problem. Below is a small snipit of what I currently have. Customfield 11111is multi-select field that works as is but I keep getting errors on the dropdown (customfield 33333). Where am I going wrong?

{
"fields": {
     "project": { "key": "PROJECT" },
     "customfield_11111": [ {"id":"22222"} ],
     "customfield_33333": {"idValue":"44444"},
     }
}

Chris_Stewart September 11, 2018

I found my error. I just had to remove Value from idValue and it worked. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events