How do I make a list of all tasks with a certain tag in them?

I guess you are not yet in beta version of dataview. Then, you need to use this:

TASK
WHERE contains(text, "#context/XYZ")

In a future release you can use this:

TASK
WHERE contains(tags, "#context/XYZ")
4 Likes