I am able to retrieve all items of a specific board with the following query, however, it doesn’t seem it is possible to also include items that are non-active (deleted and archived). The query below only return items with state=‘active’:
query Items($board_id: [ID!]) {
boards(ids: $board_id) {
items_page (limit: 500, query_params: { order_by: [{ column_id: \"__last_updated__\", direction: desc }] }) {
cursor items { id name state created_at updated_at board {id} }
}
}
}
In the Items API Reference, I see there is a way to get non-active items by passing exclude_nonactive: false but it only works if I pass the list of item_ids along.
To give more context on why I need the query above to work, I have an ingestion pipeline that executes the mentioned query and gets all items of a board. Additionally, it also orders by last_updated so it will stop pulling pages if it sees there is no other item that was updated after the previous run. Therefore, I cannot afford to pass the list of IDs.
Thanks in advance!