Things I have tried
Hello, I am new to Obsidian. I searched the forum and found this topic which I want to achieve. I couldn’t get this to work.
What I’m trying to do
I want to filter out tasks and their subtasks based on the text, where text is the link to a page. For example,
- [ ] [[example_note]]
- [ ] some text
I have tried the following queries and both of them give 0 results.
WHERE contains(task.text, [[example_note]])
WHERE contains(task.text, this.file.name)
Could someone please help me with this?
WHERE contains(text, "[[example_note]]")
[[example_note]] is a link (so, it is a kind of path;
"[[example_note]]" you ask for the string part in task text - you can also use
WHERE contains(text, "example_note")
- if in the current note you can use
WHERE contains(text, this.file.name), because
this.file.name is a string.
This works. Thanks for the clarification!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.