Possible to query tasks only from files with certain tags [in frontmatter]? #442
-
I have a number of files that have all been tagged I was able to see how I could search by tag, but that seemed to require me to tag each individual task with |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 4 replies
-
@nateswart: It depends on what you mean by having "assigned" the Is the -- if so, then the following query will display the tasks from those notes: ``` But if these notes only include the |
Beta Was this translation helpful? Give feedback.
-
Unfortunately no, it's not part of the title. I have the tag in the standard frontmatter of the file like this:
in this case, I was hoping I could filter like this:
|
Beta Was this translation helpful? Give feedback.
-
Cool, I'll give it a shot - thanks! |
Beta Was this translation helpful? Give feedback.
-
Note: there is a feature request for this functionality #232 (filter by YAML tag) |
Beta Was this translation helpful? Give feedback.
-
I too would love this feature. My use case is that I have tasks lists for work and lists for home. And lists for other side projects. I keep them separated with tags in the first line of the files. My current workaround is by using headers but that disconnects it from my tag views.. Unfortunately I can't seem to get placing the tag in the header and querying that directly to work. |
Beta Was this translation helpful? Give feedback.
-
This is not currently possible in Tasks directly, but we can get dataview to do the search for us and create a Tasks query.
You need to enable 'Enable JavaScript Queries' in Dataview's settings. Credit: jonlemon in For details on how this works, see the Tasks docs: |
Beta Was this translation helpful? Give feedback.
-
@claremacrae , is it possible nowadays to filter by tag using Tasks? When the tag is at the frontmatter. filter by function task.file.tags.include('todo') Thank you. |
Beta Was this translation helpful? Give feedback.
This is not currently possible in Tasks directly, but we can get dataview to do the search for us and create a Tasks query.
You need to enable 'Enable JavaScript Queries' in Dataview's settings.
Credit: jonlemon in
https://forum…