Steps to reproduce:
I create a board from scratch. Then I create ONE subitem under one of the items. I fetch the subitem board ID from API.
Then I run a following query:
{
complexity {
query
after
}
boards(ids: [6997930813, 6997933818]) {
type
items_page(limit: 500) {
cursor
items {
id
updated_at
name
parent_item {
id
}
}
}
}
}
This gives me the response:
{
"data": {
"complexity": {
"query": 22032,
"after": 9966936
},
"boards": [
{
"type": "sub_items_board",
"items_page": {
"cursor": null,
"items": [
{
"id": "6997933892",
"updated_at": "2020-02-18T13:35:36Z",
"name": "Subitem",
"parent_item": null
},
{
"id": "6997934351",
"updated_at": "2024-07-10T13:21:53Z",
"name": "aaaa",
"parent_item": {
"id": "6997930964"
}
}
]
}
},
{
"type": "board",
"items_page": {
"cursor": null,
"items": [
{
"id": "6997930964",
"updated_at": "2024-07-10T13:21:53Z",
"name": "Item 1",
"parent_item": null
},
{
"id": "6997930997",
"updated_at": "2024-07-10T13:21:23Z",
"name": "Item 2",
"parent_item": null
},
{
"id": "6997931029",
"updated_at": "2024-07-10T13:21:24Z",
"name": "Item 3",
"parent_item": null
},
{
"id": "6997931119",
"updated_at": "2024-07-10T13:21:23Z",
"name": "Item 4",
"parent_item": null
},
{
"id": "6997931048",
"updated_at": "2024-07-10T13:21:24Z",
"name": "Item 5",
"parent_item": null
}
]
}
}
]
},
"account_id": 12787730
}
As you can see there are TWO subitems under the subitem board, one I created and another one called “Subitem” with no parent.
I see no other way to filter it out than checking, if it is on subitem_board and has no parent. But I don’t really need a parent data on this query and it doubles my query complexity.