Hello.
I am trying to fetch an item along with its subtasks and their column values. Currently, this does not seem to be supported
Is there a way in which I can fetch the subitems’ column values along with its parent in the same query?
hi @gmahima
With the ... on SubtaskValue
fragment you can retrieve data in the subitems column (in the parent), such as the settings_str that gives you the board where the subitems live.
To get to the subitems and their column values try something like this
{
boards(ids: [4738294968]) {
items_page {
items {
id
column_values {
id
text
column {
title
}
}
subitems {
column_values {
value
}
}
}
}
}
}
2 Likes
Thank you @basdebruin !!!
@basdebruin That works! Thank you