Using Tasks plugin i want to filter returned tasks based on correspondence with frontmatter field "tasks" in current note

What I’m trying to do

using Tasks plugin i want to filter returned tasks based on correspondence with frontmatter field “tasks” in current note. should be simple enough, but can’t seem to get it to work

Things I have tried

this:
TASK
FROM “”
WHERE file.path !=this.path AND contains(text, “#LooseEnds”)
works. however i want the “LooseEnds” part to be dynamic, be linked to the value in the fm field tasks

1 Like

I want to do the same thing. Here’s my use case:
I use Folder Note to make a summary and tracking note for each of my projects (each in its own folder of course). In addition to other things, I’d like to have a summary of all tasks related to the project. I have a unique tag for each of my projects. So, what I want is a folder note that looks something like:

---
tags: [ thisproject, one, two, three]
projectTag: thisproject
---

## Tasks
```tasks
(tag includes {{query.file.frontmatter(projectTag)}}) OR (path includes {{query.file.folder}})
sort by due date
group by status.name
```

whatever else

It’s the {{query.file.frontmatter(projectTag)}} part that I can’t find a solution to.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.