Skip to content
Discussion options

You must be logged in to vote

Tasks in specific section

For your first example, you can't filter tasks by a tag above the tasks list. But you can use a header. For example

### tasks today
- [ ] task 1
  - [ ] subtask 1
- [ ] task 2

DQL query:

TASK
WHERE meta(section).subpath = "tasks today"

DVJS query:

dv.taskList(dv.pages().file.tasks.where(t => t.section.subpath == "tasks today"))

Tasks nested in a main task with a specific tag

For

- [ ] #task/merge
  - [ ] task 1
    - [ ] subtask 1
  - [ ] task 2

DVJS query:

dv.taskList(dv.pages('#task/merge').file.tasks.where(t => t.tags.includes("#task/merge")).children)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AB1908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants