Help with Query for Tasks by Project #3600
-
I’m using the Obsidian Tasks plugin with a custom filter to show tasks only when the note containing the task has a project property that matches the current project page’s filename. The query worked fine for older notes, but I’m seeing inconsistent behavior with new notes. What I’ve noticed is that when it works, the property in YAML looks like this (a scalar string): But when it fails, the property is saved as a list (array):
My Tasks filter seems to only match the scalar form, not the list form. Is there a way to write the query so it handles both cases? Sometimes I write tasks that belong to multiple projects so I need to be able to use the list form in those cases... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @nbarman2022, I'm happy to try and help, but the more info you can give me the better. What is the query that used to work and does not? As text, please, so I can copy-and-paste it. What is the mode of failure? Do you get an error message? Are tasks just not found? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Solved! Here's what I did:
#3049 (reply in thread)