Oops... PR #43 broke support for dropdown custom fields, which don't include a value attribute. The earlier code only supported those kinds of fields, hence the confusion. Looks like we'll need a solution which addresses both.
Here's a card on a public board which has both types of fields.
The first item in the array below is a dropdown which corresponds to the choice Chooser Option 2. It doesn't include a value attribute... we have to extract it from the /boards/:id/customFields API call.
hmm... that's really tricky.
The solution I presented in #43 also using me for INSERTING data to trello, so that's two birds in a row.
I have no idea how can we achieve that w/ dropdown :O (this API really suck)
Reverts adlio/trello#43.
Oops... PR #43 broke support for dropdown custom fields, which don't include a
value
attribute. The earlier code only supported those kinds of fields, hence the confusion. Looks like we'll need a solution which addresses both.Here's a card on a public board which has both types of fields.
Relevant API Calls
https://trello.com/1/boards/QB4oHV5k/customFields https://trello.com/1/cards/5cdc677dd4ee240932e119ca?customFieldItems=true https://trello.com/1/boards/QB4oHV5k/cards?customFieldItems=true
JSON Excerpt
The first item in the array below is a dropdown which corresponds to the choice
Chooser Option 2
. It doesn't include avalue
attribute... we have to extract it from the /boards/:id/customFields API call.