Dataviewjs task query shows up blank

This query gives a blank result .

	.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:

	.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:

- [ ] this is the parent task
   - [ ] this is the child task with a #work tag

- 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:

	.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



Thanks !

1 Like

Yes. For now tasks and sub-tasks work in this way.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.