I’ve searched far and wide and I’m not sure if I messed up my plugins setup or what because this should be simple. It certainly looks that way from this tutorial (9min mark)
I have a main page where I track TODOs, which I have separated into blocks with a unique tag (#todo/TYPE-OF-TODO
). I installed the Checklist plugin and left the #todo
default global keyword.
It looks like this, and I do have newlines separating the blocks
#todo/project-name
- [ ] do this
- [ ] and this
- [ ] and this, too
#todo/another-project
- [ ] something else to do
I see tasks separated by tag in the sidebar, so I think Checklist is doing what it’s supposed to.
I want to, in another page, grab all of the tasks for a given tag, even if they don’t come from that main TODO page. In the tutorial, and using Dataview, it seems the query should be (imagine I am closing the following code block with ```)
``` dataview
TASK FROM #todo/project-name
That’s pretty and simple. But what happens to me is that all tasks get pulled in, seemingly ignoring the tag I specified. My guess is that the query grabs every task on a page because the tag exists there.
But I only want the tasks within a block. Is this functionality not available? Seems like it should be based on that YouTube tutorial.
I found this solved question, which specifies a page and uses WHERE contains(tags,"todo/project-name")
which returned an error message. I also tried using contains(text)
per this other solved question which also didn’t work. They seem to be looking at the text for each task, anyway, instead of the block they are in.
I tried using the native query language from this question and did block:("todo/project-name")
but that didn’t work, either.
All I can think of is that some plugins are conflicting with each other, but I disabled everything else I have (Reminder, Tasks and Natural Language Date) and that didn’t get the queries to work.
What did work was repeating the tag for each task
- [ ] do this #todo/project-name
- [ ] and this #todo/project-name
- [ ] etc this #todo/project-name
And then querying with dataview
TASK FROM #todo/project-name
WHERE contains(tags, “#todo/project-name”)
But this is not what I want…
Please. Help