It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 in Trello

There's a lot to love about the next evolution of Trello Community

Hi, team, Whether you've been hanging out here in the Trello collection for awhile, or whether you're just now joining us from the Trello Slack Community, we’ve got some exciting news about th...

2,238 views 22 44
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you