I have a problem filtering tasks with dataview by tag. Unfortunately I couldn’t finde a solution in the forum.
My goal is to have a list of open tasks where a) a certain hashtag is behind the task or b) in the metadata of the note where the task is written down.
The first condition works fine but the second does not work at all. I use the following code:
TASK
FROM ""
WHERE !completed AND (contains(tags, "#tag/level1")
OR contains(file.tags,"#tag/level1"))
SORT created ASC
GROUP BY file.link
SORT rows.file.ctime ASC
If I use any(contains(file.tags,“#tag/level1”)) instead of contains(file.tags,“#tag/level1”) it shows all tasks where the hashtag appears anywhere in the file (not only in metadata).
Did anyone else had this problem? How can I solve it?