List tasks from a specific file and every task in the vault that is marked with #todo

I am using the Tasks Plugin and i want to list all tasks from a specific task directory and every other task in my vault that is labeled as #todo.

I am using this query

dv.taskList(dv.pages('"_data_/pinned" and #todo').file.tasks .where(t=> !t.completed))

The tasks from the “pinned” directory are shown correctly. The other tasks do not appear. Does someone know the correct syntax for this?

That’s a dataview query, not a Tasks query.

Using Tasks, you could do:

not done
(tags include #todo) OR (path includes pinned)
1 Like

You could also get the dataview query to behave as expected by changing and to or.

1 Like

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