Include Tasks Before Date Of Note #2728
-
@claremacrae I have created this discussion per your request in #1082 I currently have templates for my daily, weekly, monthly and annual notes. I generate them through the command palette (or keyboard shortcut) using the Periodic Notes plugin which uses my template files which I will outline the relevant pieces my daily and weekly template below for reference. What I need to figure out is how to do similar date comparisons using the tasks plugin The reason I would like to make the move is so that I can have the added features offered by the tasks plugin such as created, completed dates etc. Please let me know if you need me to provide you with any more data/information. What I am trying to accomplish. In my daily template I want to see a list of incomplete tasks, these could be tasks from any time in the past without a time limit. The files generated for daily notes have the filename format of My Daily Template
In my weekly template I would like to see a list of all tasks that are not complete that were created before the weekly template was created. These templates create files with the names such as When it comes to trhe completed tasks it should only show tasks that were completed during that week, including the day the weekly note was generated. My Weekly Template
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
Hi @josephcrawfordSRH - many thanks for the extra info. I've tried to find the questions, but may have missed some. Daily NotesSince you use the Periodic Notes plugin, you can base your daily note content on the 'Example Daily Agenda template' given in this page of the Tasks docs: Daily Agenda - Tasks User Guide - Obsidian Publish
Something like this should work - where the Periodic Notes plugin expands the text in {{}}:
You could also try this - where the Tasks plugin interprets the text between {{}} - so you will need to figure out how to prevent Periodic Notes from trying to expand it:
Where Tasks would expand Dataview
You can make dataview add a Tasks-style completion date (the only limitation is it does not understand recurring tasks.) See these docs: Dataview - Tasks User Guide - Obsidian Publish Weekly NotesI don't understand this fully, for example, how exactly is the search supposed to know the day the note was created:
But I hope that the following might help: Tasks supports Searching date ranges and it also supports Numbered date ranges If you can read the whole 'Searching date ranges' section carefully, you will get a good understanding. So you can use
There are too many negatives in that for me to parse it in a reasonable amount of time, so here is an example for you to experiment with:
In a file called
IMPORTANT: For all your queries, please be sure to use the 'explain' query to carefully confirm your understanding of the date queries. What next?Good luck - I hope that helps. If you have any more questions, please try to format them so that they are easy to spot - perhaps with questions in bold - or at least, separate from descriptive paragraphs. Thanks. |
Beta Was this translation helpful? Give feedback.
-
@claremacrae Thanks for the info and sorry for the late reply, everything is working properly. I was having issues until I found that some of my tasks were lacking a created date hence why they were not being found. |
Beta Was this translation helpful? Give feedback.
-
@claremacrae I was generating my monthly note today and came up with an issue in the queries that I generated prior.
The filename is |
Beta Was this translation helpful? Give feedback.
-
@claremacrae I have found that I am able to use dataview to query for a count of items in a bullet list, are you sure there is not a way to query the list of tasks for a count using dataview? This is what I have done for my Code Reviews and Meetings.
|
Beta Was this translation helpful? Give feedback.
Hi @josephcrawfordSRH - many thanks for the extra info.
I've tried to find the questions, but may have missed some.
Daily Notes
Since you use the Periodic Notes plugin, you can base your daily note content on the 'Example Daily Agenda template' given in this page of the Tasks docs:
Daily Agenda - Tasks User Guide - Obsidian Publish
Something like this should work - where the Periodic Notes plugin expands the text in {{}}:
You could also try this - where the Tasks plugin interprets the text between {{}} - so you will need to figure out how to prevent Periodic …