Required help for my Tasks

i have a pretty common request, but i don’t find the answer that fits for me. on my working computer i can only use the demo web version, so i can’t install any plugins. by the way: a real webversion would be great :slight_smile:

i use a lot TODO with schedule date. the standard schedule and deadline query is the right direction but not exactly. all overdue scheduled todos (<today) are not in this standard query. only from today +7d. i tried to edit the query, but didn’t find the answer.

my requirement:
a query in my journal template with all overdue TODO (based on schedule date) and all upcoming TODO from today +7d

thanks for your help

Welcome. Please provide your current query, as it is not clear what you are trying to edit.

hi mentaloid

i don’t have a own query. this is the standard query from the config file

:default-queries
{:journals
[{:title “:hammer: NOW”
:query [:find (pull ?h [])
:in $ ?start ?today
:where
[?h :block/marker ?marker]
[(contains? #{“NOW” “DOING”} ?marker)]
[?h :block/page ?p]
[?p :block/journal? true]
[?p :block/journal-day ?d]
[(>= ?d ?start)]
[(<= ?d ?today)]]
:inputs [:14d :today]
:result-transform (fn [result]
(sort-by (fn [h]
(get h :block/priority “Z”)) result))
:group-by-page? false
:collapsed? false}
{:title “:date: NEXT”
:query [:find (pull ?h [
])
:in $ ?start ?next
:where
[?h :block/marker ?marker]
[(contains? #{“NOW” “LATER” “TODO”} ?marker)]
[?h :block/page ?p]
[?p :block/journal? true]
[?p :block/journal-day ?d]
[(> ?d ?start)]
[(< ?d ?next)]]
:inputs [:today :7d-after]
:group-by-page? false
:collapsed? false}]}

  • These are two queries (NOW and NEXT).
  • In these queries, there is no mention of schedule or deadline.
  • If all you want is to include everything in the past, just remove the respective line:
    • [(>= ?d ?start)]
    • [(> ?d ?start)]