Hello,
I want to rewrite the query below to do what it does now but filter OUT those TODO blocks that meet two criteria at the same time:
- Contain/inherit one or more page refs with the page property “status::”
- But none of them have a page property status = NOT {canceled, done, waiting, blank}.
So, for example, if one of the page refs contained/inherited has a property status = DOING, then the block is included regardless of the property status of the other page refs.
Thanks!
#+BEGIN_QUERY
{:title [:h4 "Current page relevant TODOs"]
:query
(and
[[important]]
(not [[postponed]])
(not [[later]] )
(task NOW LATER DOING IN-PROGRESS TODO WAIT WAITING)
<%current page%>
)
:result-transform (fn [result]
(sort-by (fn [b]
(get b :block/priority "Z")) result))
:breadcrumb-show? true
:collapsed? false
}
#+END_QUERY