Hi,
I am trying to create column of type “status” using the api.
As part of the creation, I am trying to create the labels in a fixed order. For that, I am trying to use the “labels_positions_v2” property in the defaults field (is it even the correct property? there’s no reference to any of the allowed default fields in your documentation).
When I’m creating the column, this is the api mutation that I use:
mutation {
create_column(
board_id: 1234,
title: "Test column123",
column_type: status,
defaults: "{\"done_colors\":[],\"labels\":{\"1\":\"Ready\",\"4\":\"Working...\",\"17\":\"Not Found\",\"5\":\"\"}, \"labels_positions_v2\": {\"4\":0,\"17\":1,\"1\":2,\"5\":3}}"
) {
id
title
description
}
}
when retrieving the column from the api, I get a column with the correct order settings:
{
"id": "test_column123__1",
"title": "Test column123",
"settings_str": "{\"done_colors\":[1],\"labels\":{\"1\":\"Ready\",\"4\":\"Working...\",\"17\":\"Not Found\",\"5\":\"\"},\"labels_positions_v2\":{\"4\":0,\"17\":1,\"1\":2,\"5\":3},\"labels_colors\":{\"1\":{\"color\":\"#00c875\",\"border\":\"#00b461\",\"var_name\":\"green-shadow\"},\"4\":{\"color\":\"#9d50dd\",\"border\":\"#9238af\",\"var_name\":\"purple\"},\"17\":{\"color\":\"#757575\",\"border\":\"#707070\",\"var_name\":\"trolley-grey\"},\"5\":{\"color\":\"#c4c4c4\",\"border\":\"#b0b0b0\",\"var_name\":\"grey\"}}}",
"type": "status"
}
but when looking at the UI, the real order of the labels is this:
My question is - why is the actual order of the labels is incorrect? What should I change in my request in order to create all the labels and make them appear in the same order I want (first Working, then Not Found, then Ready and for last the empty one).
Thanks in advance