I’m trying to retrieve all the items from a specific group in a board.
What I’ve found so far is that you indeed can retrieve all board items, but this will retrieve it from all groups. So now, how can you retrieve all the board items from one specified group instead of all of them?
Hi @Paulo,
Welcome to the community!
Just as a head’s up, I moved your post to the apps and developers section of the community since you’re asking about the API. Feel free to post in there for any future questions!
To query items from a specific group, you can use a query like the following:
query {
boards (ids: 1234567890) {
groups (ids: "group_1") {
items_page {
items {
id
}
}
}
}
complexity {
query
}
}
This returns up to 500 items at a time. If you have a larger data set, you can then paginate through the results to retrieve them all.
Please also keep complexity in mind when running these queries! You can determine the complexity of each call by querying complexity
like in the example.
Let us know if you have any other questions!
Best,
Rachel