Numbers are ignored for dropdown

Hi everybody,
It seems that I cannot insert numbers to dropdown programmatically.
It works when I insert them from UI. Of course, I convert number to string before calling mutation “create_item”. So I add “ID_” before number and it works.
Examles:
“100” - doesn’t insert
“ID_100” - inserts
I think it’s a bug.
Is there any workaround for this?

Thanks, Sergey.

Hello @snb,

Try sending the number as a string
Example

{boardId: 123, itemId: 123, columnValues: "{"dropdown":{"labels":["2"]}}"}

where dropdown is the Dropdown column ID and 2 is the value you are sending

I tried it, it doesn’t works too ((

Hello @snb!

It looks like this might be an issue on your end.

I have opened a report so that our team can take a look into it.

I will circle back to you when I have news about it :slightly_smiling_face:

Cheers,
Matias

Hello @snb and @kolaai!

You can use a mutation like this one for this:

mutation {
  change_multiple_column_values(board_id: 2773111111, item_id: 2773111111, column_values: "{\"dropdown\":{\"labels\":[\"123\"]}}", create_labels_if_missing: true) {
    id
  }
}

Cheers,
Matias