Way to query a "Subitems" type column?

Hi there,

I’m wondering if there is a way for me to use the API to query all of the subitems on a particular board that returns the parent pulse of the subitem.

I noticed that the Subitems column on my board (board A), has its own board ID, so I queried for all of the items on that “board” (board B), but I can’t see a way to ascertain which parent pulse on board A each subitem on board B belongs to. Is this something that I can do?

Please let me know if I can clarify anything. Thank you!

Hey @chdastolfoas at this time API calls are not supported with subitems but we are working on this for coming iterations.

You would then be able to use the ID to query :slight_smile: Let me know if you have any additional questions in the meantime.

Cheers

Ah ok, that’s too bad. On a semi-related note, so happy you guys released a changelog for the API! Will be watching that for updates on this! Thanks again.

If subitems are not supported why does the API returns them as boards ?
I really wish it just wouldn’t or it would give us a way to filter them from “real” boards. For now my script is useless not being apple to discriminate…

Could you give an ETA about when this would be resolved ?

thanks
Sam

I may have found a solution to this. All Subitems of a board are in another board named "Subitems of [board name]. You can find the board id by listing all boards.

The way they are linked to their parent items is via groups in the subitem board. The group names are “subitems_of_[parent item id]”.

So in your case you would search for all items in that board and query them about their group to get the parent item id.

Thanks for your input :slight_smile: but this would be just a hack, we can’t use it in production.
We need a way to discriminate sub-items from boards, this is sine qua non.

Hi Brett,

you didn’t reply to my question : could you give me an update please ?

Is there a way to filter out subitems when querying boards ? Right now the API returns subitems as boards and that does bot make sense, moreover we cannot discriminate if it is a board or a subitem. This is blocking us from syncing with an external service…

Thanks

Hey @Contreforme – Dipro here!

If I’m understanding correctly, you’re looking for a subitems field in our GraphQL schema so you can query subitems in a more intuitive way. Is that correct?

Our team is working on ways to add more subitem support to our API, so I’ll pass this along as feedback for that task.

Sorry if i was not clear enough : i need to select boards WITHOUT subitems popping in the result.
Right now if i do

query {
    boards (board_kind:share) {
        id,
        name
    }
} 

I end up with boards AND subitems : when i need only the shared boards
I hope it is better :slight_smile:

Thanks for your help

1 Like

Ah I see! Thanks for clarifying. I’ll pass this along as feedback.

Hi,

Two ways to do this.
I am sure it will change some as Monday matures subitems.

query {
complexity {
before
query
after
}
boards (ids: SubitemBoardID) {
groups {
id
, items {
id
}
}
}
}
Returns values:
{
“id”: “subitems_of_(parent pulse id)”,
“items”: [
{
“id”: “(subitem pulse id)”
},

query {
complexity {
before
query
after
}
boards (ids: ParentBoardID, limit: 50) {
items {
id
, column_values {
id
, value
}
}
}}
.
.

Returns: “boards”: [
{
“items”: [
{
“id”: “ParentPulseID”,
“column_values”: [
{
“id”: “subitems”,
“value”: “{“linkedPulseIds”:[{“linkedPulseId”:ChildPulseID},{“linkedPulseId”:ChildPulseID},{“linkedPulseId”:ChildPulseID},{“linkedPulseId”:ChildPulseID}]}”
}

Hello dipro,

i come back on that subject to know if anything new is planned about filtering out subitems boards in the API ?
We are still struggling with this issue: Without the ability to bypass subitems in a general boards query we cannot sync our work with other Saas and have to manually do it…

Thanks for your feedback!