Hi, please help me with the following example.
I want to get all task DOING, but I want to leave apart any task that have a reference to books page ().
Its easy to get all tasks that make reference to books, but just using a not clause will retrieve any task with any reference to a page that is not , even if other tag in the same block makes reference to .
Sorry if Iām not explaining well, english is a bit intrincated question and english is not my main language. Thanks!
#+BEGIN_QUERY
{
:query [
:find (pull ?b [*])
:where
(task ?b #{"DOING"})
[?badRef :block/name "š"]
[?b :block/refs ?refs]
[(not (contains? ?refs ?badRef))]
]
}
#+END_QUERY