Troubleshooting query to include tasks from notes

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

Screenshot 2024-06-25 at 4.06.38 PM

Screenshot 2024-06-25 at 4.06.29 PM

Clarification (since I can’t change the subject header): I meant cards, not notes.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.