I have Tasks where i need to Set Same Priority to Sub Blocks by Tagging Parent Block.
Eg.
[#C] Theme 1
- TODO Task 1
- TODO Task 2
- TODO Task 3
Tried Two Queries
### {{query (and (task TODO) [[Test]] (priority A B C))}}
#+BEGIN_QUERY
{:title "All Tasks TODO/LATER of Project with Priority A/B"
:query [:find (pull ?b [*])
:where
[?b :block/marker ?marker]
[(contains? #{"TODO" "LATER"} ?marker)]
[?b :block/path-refs ?r]
[?r :page/name ?page]
[(contains? #{"a" "b" "c"} ?page)]
[?b :block/path-refs ?r1]
[?r1 :page/name "test"]
]}
#+END_QUERY
The First Query doesn’t give results of Inherited ones. Only Direct Matched Tasks.
Second Query is giving few spurious Results which have No Priority Tagging direct or on Parent.
Any suggestion on this ?