Get all tasks in current file #444
-
Hello, I want to filter all tasks of my current note, cause while I write my notes I create "randomly" new tasks. Therefore I need something like a "Task-Summary" on the Top of the note where all tasks of the note are shown. Thanks already for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
@link-d: Tasks doesn't support a dynamic field or variable for the current note's name, but if your filenames are unique* you can insert the name of the current note within a "path includes" filter:
* (If your note names are not unique, then you'll need to specify the relative file path and name) WARNING: if you edit the name of the file later, you'll need to remember to update filename in the Tasks query to match. The same will be true if you specify the relative file path and move the file later. |
Beta Was this translation helpful? Give feedback.
-
I would like to do something like this -- basically:
Is this possible with tasks or dataview? Thanks |
Beta Was this translation helpful? Give feedback.
-
I have attempted to document an approach I've been using that:
How to get all tasks in the current file You want to scroll down to the section |
Beta Was this translation helpful? Give feedback.
I have attempted to document an approach I've been using that:
How to get all tasks in the current file
https://obsidian-tasks-group.github.io/obsidian-tasks/how-to/get-tasks-in-current-file/
You want to scroll down to the section
Using Dataview to generate Tasks blocks - safe and convenient
.