Tasks with start date not filtered out by "no happens date"? #1205
-
Hi, I'm trying to filter out tasks that have a start date within the current week from my backlog like this:
But although the tasks are shown in my "Today" or "This week" lists (which use specific Is this a bug or am I doing something wrong here? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi Wolfgang @wowo101
It's impossible to say. I can't tell the dates on any of your tasks. There is no text showing your actual tasks query block. And even if the info were there, I would have to re-type it myself. Plus, often the problem is a subtle typo which would not show up if i re-typed it. Please could you:
Thanks - looking forward to hearing from you. |
Beta Was this translation helpful? Give feedback.
-
Hi @wowo101 I think that I may understand, from the title of your question, what may be the cause of the confusion. The library used by Tasks to interpret text like If you look at the following issue, you will see some related discussion, and also that the behaviour in this area may change when we update chrono. #1176 happens after this weekYou seem to be interpreting See the dates docs for how you can experiment with relative dates in your queries are interpreted. For example, I did the following, to find out that today
happens this weekKnowing that How to test your filtersI recommend writing a series of tasks something like the following - but covering perhaps from 10 days ago to 10 days time, and confirming that your filters really do give the results you expect.
Other useful links:
I'm sorry this is so confusing, but it's best I've got right now. I think that Tasks has more often been used by people who are use templates to create daily notes, and so able to use fixed dates. |
Beta Was this translation helpful? Give feedback.
-
Thanks Clare, this is extremely helpful! 🙌🏻 Understanding that a This week: Backlog: I.e. I'm now explicitly using the dates represented by Your examples and explanation helped me test my new solution thoroughly and understand better how Tasks is working internally, so a win all around! 🙏🏻 |
Beta Was this translation helpful? Give feedback.
Hi @wowo101
I think that I may understand, from the title of your question, what may be the cause of the confusion.
The library used by Tasks to interpret text like
after this week
- chrono - does not always do what users might expect it to do, and so it can lead to some confusing results.If you look at the following issue, you will see some related discussion, and also that the behaviour in this area may change when we update chrono.
#1176
Can days of week in a query remain constant during the week?
happens after this week
You seem to be interpreting
(happens after this week) OR (no happens date)
as meaning thatno happens date
passed. However, it is much more likely thathappens after …