This query gives a blank result .
dv.taskList(dv.pages("#work").file.tasks
.where(t => t.text.includes("#work"))
.where(t => !t.completed))
The query kinda disappears . No error messages or anything.
This query gives a blank result .
dv.taskList(dv.pages("#work").file.tasks
.where(t => t.text.includes("#work"))
.where(t => !t.completed))
The query kinda disappears . No error messages or anything.
You can use your query or this:
dv.taskList(dv.pages("#work").file.tasks
.where(t => t.text.includes("#work") && !t.completed))
But if gives you a blank result, I ask: your target tasks are (a) subtasks or (b) “pseudo” tasks under a list like:
a)
- [ ] this is the parent task
- [ ] this is the child task with a #work tag
b)
- this is a list
- [ ] this is the nested task with a #work tag
If one of this cases, you need to target the sub-level subtasks
I would say mostly A. Sometimes B. Thank you!
Then you need to use something like:
dv.taskList(dv.pages("#work").file.tasks.subtasks
.where(t => t.text.includes("#work") && !t.completed))
(this for the first sub-level of subtasks. if subtasks nested in other subtasks, then you need to add another sub-level… and so on)
Worked great !!
Now if I wanted another sub level
Would it be
dv.taskList(dv.pages(“#work”).file.tasks.subtasks.subtasks
?
Thanks !
Yes. For now tasks and sub-tasks work in this way.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.