Tasks checked via Dataview are not marked as completed using Tasks emoji
See original GitHub issueWhat happened?
I’m using Dataview in conjunction with the Tasks plugin to collect tasks from across all my notes. When I check off a scheduled task (e.g. one containing the string 📅 YYYY-MM-DD, such as Tasks uses) directly in the original note, a checkbox emoji and the completion date are appended to the task, i.e. ✅ YYYY-MM-DD.
If I check off a scheduled task via Dataview, the task is marked with strikethrough, but the ✅ YYYY-MM-DD string isn’t appended.
Additionally, I’m using WHERE !completed to filter out completed tasks from my task view. Scheduled tasks that contain the ✅ YYYY-MM-DD string are skipped by my Dataview queries that contain WHERE !completed. However, completed scheduled tasks that contain the 📅 YYYY-MM-DD string but not the ✅ YYYY-MM-DD string are still being collected by the queries that contain WHERE !completed.
The behaviour I expect would be for scheduled tasks to disappear from these queries when they’re checked off, but as it is, the completed tasks remain visible. Non-scheduled tasks (i.e., those that don’t include the 📅 YYYY-MM-DD string) do disappear as they’re checked off.
DQL
TASK
WHERE contains(text, "today") OR due = date(today) AND !completed
GROUP BY project
JS
No response
Dataview Version
0.4.22
Obsidian Version
0.13.19
OS
Windows
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (3 by maintainers)
Top GitHub Comments
Also related is #1273, I think. You can attempt a draft PR and I’ll provide feedback if there’s any scope for improvement (I doubt you’d need my help haha). Eventually I’ll defer to blacksmithgu to merge.
This feature is doable and is an extension of the existing functionality. I don’t think it will be too bad; will see if I can get around to it as part of 0.5 stable. Also happy to accept PRs for this.