Filter by links elsewhere in the note containing the task #173
Replies: 4 comments 11 replies
-
Have you tried |
Beta Was this translation helpful? Give feedback.
-
I've edited the title, to make it clear that this is about searching for tasks based on linked notes elsewhere in the note they are in. |
Beta Was this translation helpful? Give feedback.
-
Just so you know it should be pretty simple to use dataview to perform this query if you're experienced with that plugin (or if you know how to use javascript and are willing to play around with the plugin for 30 mins). There is an example in the tasks plug-in's documentation for how to use dataview to do a query where you search for tasks in a single file. You can use that as a starting point and then:
I think this should make sense if you're familiar with the dataview plugin. If you are, I think you'll be able to generate this query pretty easily. If you want help I can create a sample for you. But if you have no familiarity at all with javascript or dataview, it might be a bit opaque and hard to modify in the future for your own purposes. But happy to help if this is something you'd find useful Separately I know this was from a while ago but figured can't hurt :) And finally, to the developer, thanks SO much for this plugin! I no longer need to use any task management app at all. Obsidian is more powerful than any of them now (not necessarily in terms of all integrations but in terms of functionality for sure). |
Beta Was this translation helpful? Give feedback.
-
I figured I could probably write a query pretty quickly, so here one is! This query will show you all incomplete tasks on pages that have the link I can explain it in more detail if necessary, but basically, the heart of it is the const pages = dv.pages('[[DailyNotes]]');
const filters = pages.map(p => `(path includes ${p.file.path})`).join(" OR ");
const query = `
not done
${filters}
group by heading
`;
dv.paragraph('```tasks\n' + query + '\n```'); |
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.
-
Is it possible to filter all task in notes with a certain link?
Exemple
Or something like it?
Beta Was this translation helpful? Give feedback.
All reactions