Query all tasks related to one common tag

Hello! I have made an advanced query for you to accomplish just that!

#+BEGIN_QUERY
{:title "Work tasks"
 :query [:find (pull ?b [*])
   :where
     [?t :block/name "work"] ; always lowercase
     [?p :block/tags ?t]
     [?b :block/refs ?p]
     [?b :block/marker ?m]
     [(contains? #{"TODO" "DOING"} ?m)]
 ]
}
#+END_QUERY

I will also link this in the task management topic :slight_smile:

1 Like