Skip to main content

Query for all items and subitems in a board

  • November 17, 2024
  • 1 reply
  • 10 views

I need a graphQL query to pull all items and subitems for all columns in a specific group id “topics” In a specific board

1 reply

dvdsmpsn
Forum|alt.badge.img+1
  • Participating Frequently
  • 425 replies
  • November 17, 2024

Try this:

query getItemsAndSubItems($boardIds: [ID!]!, $groupIds: [String!]!) {
  boards(ids: $boardIds) {
    groups(ids: $groupIds) {
      items_page {
        items {
          id
          name
          subitems {
            id
            name
          }
        }
      }
    }
  }
}

Add the variables as required:

{
  "boardIds": [1234],
  "groupIds": ["topics"]
}

In the API playground, it will look like this:

Try there first.