Skip to main content

Through the API -

I can get the color of the Group, but how do I get the color of the individual item?


Or,

how do I get the colors for all the labels?

Hey @GrandPa

Items have no color, they inherit the color from the group.

If you want to get the color of Status labels, you need to query the column.


https://api.developer.monday.com/docs/columns-queries-1#fields


I understand all that. I don’t see how to get the color of the Status labels.


For example, this column


           "column_values":"
{
"title":"RESOURCE",
"id":"status5",
"type":"color",
"text":"SHOP: STRUCTURAL"
},


Blockquote

has a color, but how do I find it?



Query:


{
boards(ids: 0000) {
columns(ids: status) {
settings_str
}
}
}

Result:


{
"data": {
"boards": [
{
"columns": [
{
"settings_str": "{\\"labels\\":{\\"0\\":\\"Working on it\\",\\"1\\":\\"Done\\",\\"2\\":\\"Stuck\\"},\\"labels_positions_v2\\":{\\"0\\":0,\\"1\\":2,\\"2\\":1,\\"5\\":3},\\"labels_colors\\":{\\"0\\":{\\"color\\":\\"#fdab3d\\",\\"border\\":\\"#E99729\\",\\"var_name\\":\\"orange\\"},\\"1\\":{\\"color\\":\\"#00c875\\",\\"border\\":\\"#00B461\\",\\"var_name\\":\\"green-shadow\\"},\\"2\\":{\\"color\\":\\"#e2445c\\",\\"border\\":\\"#CE3048\\",\\"var_name\\":\\"red-shadow\\"}}}"
}
]
}
]
}
}

Thanks, I will look at that.


Reply