Query for all tasks Scheduled or deadlined for today. Can anyone help with this?

Hi there,

I have been looking for hours but couldn’t find how to achieve it. Anyone knows how to query for all tasks scheduled or deadlined for today?

Thanks very much!

There’s a lot of task related queries here:

Though I don’t think this one specifically.

So here’s your specific one:

{:title [:b "Today's tasks"]
 :query [:find (pull ?b [*])
  :in $ ?day
   [?b :block/marker ?m]
   [(contains? #{"TODO" "DOING"} ?m)]
     [?b :block/scheduled ?day]
     [?b :block/deadline ?day]
 :inputs [:today]