Happens on or before this day of the week, recurrence does not exclude the day of the week #3260
-
I know you can use Is there a way to get tasks where the recurrence rule does not exclude Sunday, or is that beyond the tasks plugin? For example, given the following list, assuming valid happens dates:
Is there a simple query that would filter out tasks with recurrence rules that exclude this day of the week?
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
The available queries for filtering recurrence rules are shown here: https://publish.obsidian.md/tasks/Queries/Filters#Recurrence Be sure to read about the standardisation of the rules, but the instructions of interest are:
So if you can figure out the text you want to either include or exclude, then yes, it can be done... |
Beta Was this translation helpful? Give feedback.
-
Thank you. I had read the standardisation of the rules but the significance, especially for this, had not dawned on me. I had been forming a very convoluted filter by function statement going that sort of seemed to work but broke the more I fixed it. 😆 This seems to work: I am also experimenting with tags (such as BTW, in case someone is interested, in a daily notes template, with Templater installed, one can do |
Beta Was this translation helpful? Give feedback.
-
In trying to expand this to include tasks that are not recurring For anyone else wanting to display all tasks that could be done on Sunday, 2025-01-05,
|
Beta Was this translation helpful? Give feedback.
-
@dictionarymouse I have just noticed the error, and why you are likely having trouble with your queries, which should not normally need to be so complicated. You have not put a due, scheduled or start date on your tasks - so they are not functioning properly as recurring tasks:
|
Beta Was this translation helpful? Give feedback.
-
Hm... I threw those lines together quickly to explain the idea. Then, without thinking about it I pasted them into the daily note. Experimenting, using the edit dialog, the date will not be added to the line unless I pick a date other than the file date. After that I can change it back to the file date, and it will show on the line. A quirk to be aware of if it is affecting the query results. Interestingly, the above search does work if the task line is moved to another file, but of course, problems would ensue if one didn't notice and the task is copied to a date-less file. Out of curiosity, I tested it, and one gets a sort of a never-ending repeat. Repeat multiple times a day implemented 🤣 Update: I found the dialog behavior documented here. I don't know if the absence of a directly specified date was affecting the results or not, as I deleted the testing tasks and don't want to take the time to rebuild the tests, as I seem to have something that works. |
Beta Was this translation helpful? Give feedback.
@dictionarymouse I have just noticed the error, and why you are likely having trouble with your queries, which should not normally need to be so complicated.
You have not put a due, scheduled or start date on your tasks - so they are not functioning properly as recurring tasks:
See Recurring tasks must have at least one date .