Should Query "Done After <date>" include "Not Done"? #672
-
So I recently realized that my daily note queries were showing current unfinished tasks as opposed to the tasks that were actually unfinished as of that particular date, so I rewrote my queries to specify the unfinished tasks as "Done After", and for the older entries, where those tasks had been long completed, this seemed to work just fine. But as I approached tasks that were unfinished, I realized the queries were showing no tasks. Then I realized why: those tasks are not yet done, so they're not being returned by the query. It seems to me that a task that is not finished should still qualify as being done after a particular date, because as of that date, it was not done, but having reviewed the source code for the particular parts of the query in question, I see why it is not responding in the manner I expected. I'm not sure if others expect this sort of functionality, but it would be useful to have, even if just optionally via some other qualifier or with some sort of combinatory query (not done OR done after ). Thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Thank you for the idea @MalignantCarp. The current behavior with regards to done/not done is what most people expect, I think. The current way to have "tasks that are not done" and "tasks that are done" in a daily note is using multiple queries. Something like:
Of course, adapt it to your needs. An older daily agenda example is in the documentation: https://schemar.github.io/obsidian-tasks/advanced/daily-agenda/ |
Beta Was this translation helpful? Give feedback.
-
Hmmm, I'm not quite sure you understood where I was coming from, so allow me to illustrate. So, my daily notes are a snapshot of a particular date. So I always embed that specific date (no today/tomorrow for me) so the queries show the state of tasks as of that date. When I look back on a daily note, I am looking to see what the state of tasks was on that date: Tasks I added, tasks I completed, tasks that were unfinished at the time. Thus what I am looking for is more "tasks that were not done" vs "tasks done" and "tasks not done". Technically speaking, any task that is still unfinished is a task that was not done on that date. Currently, the only way to achieve that is to have two queries:
When combined, these queries show the same thing: a task that started on or before but was not done on May 22. Does that clarify where I'm coming from? |
Beta Was this translation helpful? Give feedback.
-
I think the suggestion is to change 'done after yyyy-mm-dd' so that it also includes tasks that are not done, and therefore have no 'done' date... If I understand this correctly, then I feel it would be a recipe for confusion, and breaking lots of existing searches... My first thought when I saw the task blocks in #672 (comment) was that if there was a problem with those task blocks having separate results lists, then something more general such as boolean combinations of filters would be a good approach? |
Beta Was this translation helpful? Give feedback.
Thank you for the idea @MalignantCarp. The current behavior with regards to done/not done is what most people expect, I think. The current way to have "tasks that are not done" and "tasks that are done" in a daily note is using multiple queries. Something like:
Of course, adapt it to your needs. An older daily agenda example is in the documentation: https://schemar.github.io/obsidian-tasks/advanced/daily-agenda/
But it doesn't use
scheduled
.