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

Ashley Abell May 08, 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 May 08, 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 08, 2018

Thanks, that's worked.

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

0 votes
Christopher Stewart Sep 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"},
     }
}

Christopher Stewart Sep 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Trello

My e-portfolio: using Trello to keep track of skills and experiences

The days are flying by so fast, I can’t seem to slow things down no matter how hard I try. My memory is great; however, I can’t seem to remember vivid details or even highlights from each year of my ...

1,158 views 13 17
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