Getting column title of subitems

Hello I am trying to get the column titels of of my subitems. I know you can get the column names for your board via:
columns {
title
}
But for subitems i can only get the value, name (only gives the content as text not the column title) and id.
Am I missing something?

Hello @Henning,
Welcome to the community :slight_smile:

How are you querying for the subitems? Could you show a sample of your query?

Subitems are located on a subitems board and all the queries for ‘main’ boards should also work for subitem boards as far as I know

Hello thanks for the quick answer.
I am querying for subitmes insinde of groups. Like this:

query {
boards (ids: 12345) {
groups (ids: example){
subitems{
id
name
column_values {
description
id
value
text
}
}
}
}
}
}

I don’t think that it is possible to query subitems from groups. Looking at the groups fields in the documentation, there is no subitems.
What you can do to get the column values for subitems is, provided you have the subitem board id, you can query column values as part of the items.
Your query will look like this:

query {
  boards (ids: SubItemBoardID) {
    items {
      column_values {
        text
        value
     }
   }
  }
}
1 Like

i just saw i missed a thing i query it from items which is in groups so
groups { items { subitems {} } }

But i am trying your way now.

Edit: i tryed it and it worked thanks alot :slight_smile:

1 Like

Hello everyone,

I am glad you could find the answer to your question!

Thank you @kolaai!!