Skip to content

Instantly share code, notes, and snippets.

@bennewton999
Created September 7, 2021 22:20
Show Gist options
  • Save bennewton999/4a1ca803d9345c3618c0c3b30cf96aa8 to your computer and use it in GitHub Desktop.
Save bennewton999/4a1ca803d9345c3618c0c3b30cf96aa8 to your computer and use it in GitHub Desktop.
My Obsidian Task Dashboard

Tasks

Due Today
not done
due today
Due This Week
not done
due after monday and before friday
Past Due
not done
due before date(today)
No Due Date
not done
no due date

Other Tasks

dv.taskList(dv.pages('-"Templates"').file.tasks
.where(t => !t.completed && !t.text.includes("@frank") &&
!t.text.includes("#task")
))
@apikas
Copy link

apikas commented Jul 8, 2022

This is only the second day I use Obsidian, but I learned a lot from your example and played around with the queries.
I know that there is a caveat if today is Sunday...
Note the use of "next" and "last" with weekdays,
I perfer tasks listed only once, hence the "due after today" in "This week".
Here is my version:

## Tasks
##### Past Due
```tasks
not done
due before today
hide task count
short mode
```
##### Due Today
```tasks
not done
due today
hide task count
short mode
```
##### Due This Week
```tasks
not done
due after today
due before next monday
hide task count
limit 10
```
##### Due in one month
```tasks
not done
due after next sunday
due before in one month
hide task count
limit 10
```
##### No Due Date
```tasks
not done
no due date
hide task count
limit 10
```
#### Other Tasks
```dataviewjs
dv.taskList(dv.pages('-"Templates"').file.tasks
.where(t => !t.completed &&
!t.text.includes("#task")
))
```
Credit: https://medium.com/geekculture/how-i-track-my-tasks-in-obsidian-47fd7ad80364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment