Querying active kanban tasks with dataview – help/possible bug

What I’m trying to do

I want to query only active (incomplete) tasks from a kanban file. My query is as below, and the behaviour I expect is that it only picks up undone tasks :

FROM "personal/kanban_todo.md"
WHERE contains(text, "priority") AND !Tasks.completed
SORT priority DESC

However, this script also seems to be picking up done tasks
Screenshot 2023-04-24 at 3.11.54 PM

The kanban board is shown here

and the plain .md file is as in this screenshot :

I am not sure if this is the intended behaviour, but this is not what I want. Any help to remove the annoying completed tasks from showing up is appreciated!

Try replacing !Tasks.completed with just !completed.

1 Like

That did the trick, thank you!

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