question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tasks checked via Dataview are not marked as completed using Tasks emoji

See original GitHub issue

What 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:closed
  • Created 2 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AB1908commented, Jul 21, 2022

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.

1reaction
blacksmithgucommented, Apr 20, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set completion when modifying tasks · Issue #448 - GitHub
When clicking a task's checkbox to complete it, mark it as completed and add a completion date. The opposite should happen when marking...
Read more >
Dataview | Obsidian Tasks - GitHub Pages
As of Dataview 0.5.43, all Tasks emoji fields except recurrence can be queried through Dataview or dataviewjs. Information is in the Dataview documentation....
Read more >
Dataview - All tasks not completed - Help - Obsidian Forum
dataview task ``` This will display all tasks completed and not. How do I only display not completed tasks?
Read more >
How I Use the Daily Notes Plugin in Obsidian.md
A subpage that tracks all tasks listed in the daily notes. ... If the notes are not showing up in the log note,...
Read more >
How do you feel about using Obsidian as a task manager?
Of course I put a check mark in each completed project heading to get that sense of a job well done. Then I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found