Change dropdown option on custom field

 

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

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.

Thanks, that's worked.

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

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

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
Community showcase
Published Feb 20, 2019 in Trello

Using Trello To Facilitate Skillsharing

I work with a lot of really smart people, and chances are, you do, too! Our company encourages learning, even outside of things that relate to our jobs, so a friend of mine and I decided to find a wa...

308 views 1 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you