Scheduled tasks on future daily notes

Hi, I like to have the tasks that I have distributed in various notes shown on my daily note and have recently implemented this Obsidian Daily Notes Template(Task Edition) – Obsidian Ninja.

However, one issue I’ve found is that if a task is scheduled for a date in the future, and I create the daily note for that date in advance, the scheduled task is not shown. The reason is that the query uses (today’s date), not the future date (see line 4 in code below).

Can someone please suggest how I might fix this?

Maybe using the title of the future daily note, which is that days date in YYYY-MM-DD format may be an option?

PS - I not great at coding so be gentle :slight_smile:

[!todo]+ Today’s Tasks

not done
due <%"YYYY-MM-DD") %>
sort by priority
hide due date
hide backlink
limit 5

Thanks in advance

Thank you Siiraa! Works a treat!

Can I ask another question please…If I wanted to show tasks due today and at anypoint before today (ie overdue) in the same query, how would I do this please?

I think I sussed it …

due <%“YYYY-MM-DD”, 0, tp.file.title, “YYYY-MM-DD”)%> OR due before“YYYY-MM-DD”) %>

Thank you Sir!

err, one final question (please). What if I wanted to combine your query with or priority is highest.

Basically I need a single query that find task due today, before today OR that are highest priority.


Thanks Siira. Sorry but this doesn’t work, due to a ‘malformed boolean query’. This is what I have…

Thanks again. I will try this later and report back.
Much appreciated Siiraa!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.