What I’m trying to do
Hi, I’m trying to fix a custom query to display tasks from notes. Presently it only returns tasks from files.
Things I have tried
The query (below) displays tasks with ~subtasks (indented tasks) E.g., in the screenshots, one image is a source file. This works for tasks in files but I can’t seem to populate individual tasks from notes. Any suggestions would be greatly appreciated.
dataview
TASK
WHERE !completed AND !parent
FLATTEN file.link AS Source
FLATTEN “(” + Source + " > " + file.name + " #" + section + “)” AS Display
GROUP BY section AS Section
FLATTEN Section AS Tag
SORT Tag