Skip to main content

ItemsQuery to filter on group?

  • December 9, 2024
  • 3 replies
  • 19 views

Is it possible to use an ItemsQuery to only select items based on group membership? I know I can have a board query and use groups(ids:) to return only certain groups, but I’m looking to do this at the item level.

3 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • December 11, 2024

Hello there @PanP and welcome to the community!

I hope you like it here 💪

What about something like this:

{
  boards(ids: 1234567890) {
    items_page(
      query_params: {rules: [{column_id: "group", compare_value: ["new_group1"], operator: any_of}]}
    ) {
      cursor
      items {
        id
        name
      }
    }
  }
}

  • Author
  • New Participant
  • December 11, 2024

Thank you! Very useful. The query_params documentation would really benefit from some more examples - like this one.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • December 12, 2024

I am glad this helps @PanP !!

This example can be found here (it has a few more things in the example) 😀