Hello all,
I am pretty new to logseq and I am trying to get all “Later/Now” tasks in a certain hierarchy. I have mixed private and work in one Journal. To distinguish both I usually start every workday with a block [[work/projectA]] or [[personal]] or [[personal/projectX]].
I am trying to setup two distinct pages “work/tasks” and “personal/tasks”, for doing so have to merge somehow two working queries, and I am asking here for help on how to achieve this.
The following queries both work independently:
#+BEGIN_QUERY
{:title "Find tasks: personal"
:query [
:find (pull ?b [*])
:where
[?b :block/marker ?marker]
[(contains? #{"LATER" "NOW"} ?marker)]
[?p :block/name "personal"]
]
}
#+END_QUERY
#+BEGIN_QUERY
{:query [:find (pull ?b [*])
:where
[?b :block/ref-pages ?p]
[?p :block/name ?tag]
[(clojure.string/starts-with? ?tag "personal")]]
}
#+END_QUERY
How to combine both into one. The goal is to only show tasks from blocks marked as “personal”.
Cheers,
Peter