Filter Tasks Where Query Property "Projects" Shares Value With Task Property "Projects" #3486
Replies: 2 comments 3 replies
-
I realised there was actually a whole property there, but it wasn't in a fenced code block, so wasn't visible as a property sample. I have fixed formatting in the original post. |
Beta Was this translation helpful? Give feedback.
-
Failing queryThis fails, because it is asking if the two files are the same object in memory, which they are not, because they were read at different times:
Working queryThis works because the two properties are converted to strings, which can then easily be compared for equality:
The JSON.stringify() call stringifies the query property for every task that is searched, which is a bit wasteful, but I doubt you will get measurable performance problems. However, putting the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello - I have a similar situation from this item but different enough I think it needs its own discussion.
I'm trying to get a query that compares a property in the query file with the same property in the task file. I'll include the queries I've tried but honestly it's just me throwing spaghetti at the problem and not getting anywhere with AI.
I think (fingers crossed) this should be a straight forward query, but I can't figure out why I can't compare the values. Is it an issue with how the property is being onto the file?
Thank you :)
The properties on both files look like this:
Beta Was this translation helpful? Give feedback.
All reactions