hi folks, hope all are doing well. i am working on monday apis in nodeJs using monday SDK, i got into a problem of fetching the subitems. i tried every possible way to fetch the data but no success
i am trying to get sub1 and sub 2, i have ids for “Legal Information” which is a group, then “Power of attorney” as subItem.
actually i want to get 3rd level items.
{
boards(ids: [board_id]) {
name
id
items(ids: some_item_id) {
id
name
column_values(ids: "subitem_column_id") {
id
title
value
}
}
}
}
Welcome to the community. Not sure what you mean with 3rd level items, there are items and subitems and there is no third level. When you run your query the value from the subitems column should return something like this
thanks @basdebruin for looking into issue, but it does not work, it i query the items using the values from linkedPulseIds, then it is not showing any item.
{
boards(ids: [board_id]) {
name
id
items(ids: "value_from_linkedPulseId") {
id
name
}
}
}
hi @abdul
You can’t query linkedPulseIds, you query the column_values (ids: “the-id-of-the-subitems column”) {value}. That returns: data.boards[0].items[0].column_values[0].value
You need to JSON.parse that into let’s say mySubitems, and then you can access: mySubitems.linkedPulseIds[ x ].linkedPulseId