All tasks from all files that link to this file, even indirectly? #1084
Unanswered
spencercook
asked this question in
Q&A
Replies: 1 comment 4 replies
-
This is a task for DataviewJS: let page = dv.current().file.path;
let pages = new Set([page]);
let stack = [page];
while (stack.length > 0) {
let elem = stack.pop();
let meta = dv.page(elem);
if (!meta) continue;
for (let inlink of meta.file.inlinks.concat(meta.file.outlinks).array()) {
if (pages.has(inlink.path)) continue;
pages.add(inlink.path);
stack.push(inlink.path);
}
}
let data = dv.array(Array.from(pages)).map(p => dv.page(p)).where(p => !!p).file.tasks;
dv.taskList(data); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is probably too complicated but, is it possible to list all tasks in all notes that branch out from a central note? The "branches" not all the same length. The task list would live in the central note.
So far, I have this but it's obviously a long way off.
dataview task from "" where contains(file.inlinks.file.name, "CENTRAL FILE") or contains(file.outlinks.file.name, "CENTRAL FILE")
Thanks for any help-
Beta Was this translation helpful? Give feedback.
All reactions