Unable to get the value from one column

Hi! I’m trying to make a call similar to the one below, where label is a column that contains the status of something and can have three different values. I get the error “Field ‘label’ doesn’t exist on type ‘Item’.” I’m very new to GraphQL, how do I write a query that gets the value of the label column?

query {items (ids: 3456730182) {id name label } }

Hello @Malte,

Welcome to the community.

To get the values of the label column, you need to get the column id and use the column_values argument to get the data in that column.

For example, if you label column has an id of status, your query will look something like this:

query {
  items(ids: 3456730182) {
    column_values(ids: ["status"]) {
      text
    }
  }
}

This is the query to get column ids in a board:

query {
  boards(ids: BOARD_ID_HERE) {
    columns {
      id
    }
  }
}

Here is the link to the documentation on how to work with column values.

Thank you so much! We had not used the [“label”] before.

1 Like