Skip to main content Link Search Menu Expand Document (external link)

Combining Dataview and Tasks

Table of contents
  1. Combining Dataview and Tasks
    1. Automatic Task Completion
    2. Related pages

The Dataview plugin provides many data analysis features for Obsidian vaults, including queries about tasks. This page only describes settings to maximize compatibility between Dataview and Tasks; for all other information on Dataview, including Dataview’s names for the task emoji fields, please see its documentation.

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.

Automatic Task Completion

Introduced in Dataview 0.5.42

If you use the “Set Done Date on every completed task” option in Tasks, you can configure Dataview so that clicking a task’s checkbox from a Dataview query result will add or remove the ✅ YYYY-MM-DD completion date just like clicking the checkbox in a Task query result or using the command Tasks: Toggle Done.

  1. Make sure Dataview is up to date by checking for updates in “Settings” -> “Community Plugins” -> “Check for Updates”.
  2. In “Settings” -> “Dataview”, scroll down to and enable the “Automatic Task Completion” setting.
  3. Just below the “Automatic Task Completion” setting, enable the “Use Emoji Shortcut for Completion” setting.
  4. Close and then reopen Obsidian.

Dataview settings page with Tasks-style done dates enabled Note: This is the Dataview settings page, not the Tasks settings page.


Warning

Dataview does not understand recurring tasks. Checking off a recurring task from a Dataview TASK query will add a done date but will not generate a new instance of that recurring task. To get the correct behavior for recurring tasks from Dataview TASK query results, click the text of the task (not the checkbox) to go to the file where the task is written, and then use the “Tasks: Toggle Done” command or click the checkbox from there.