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
Accepted answer

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
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

139 views 3 4
Join discussion

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