Filter tasks with a certain tag

Things I have tried

I tried these two snippets.
In JS:

var source = dv.pages().file.tasks.filter(contains(t => t.contains("#comm"))
dv.taskList(source, false);

and this one, which “seemingly” works but checks whether the tag is present in the entire note, not just the task itself.
TASK FROM #comm WHERE !completed

this doesn’t let me complete the tasks from the table:

table tasks.text AS "Remaining"
flatten file.tasks as tasks
where contains(tasks.text, "#comm")

What I’m trying to do

Filter all uncompleted tasks with a certian tag

Try this DQL query:

WHERE !completed
WHERE contains(text, "#comm")

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