Hiding substasks from a task. #634
Unanswered
manfrombar
asked this question in
Q&A
Replies: 2 comments 4 replies
-
I don't think this is easily done currently - it will be doable via DataviewJS soon by manual filtering / |
Beta Was this translation helpful? Give feedback.
0 replies
-
This works (you can just use standard JS in the dataview codeblock): ```dataviewjs
const pages = dv.pages('"/"').file.tasks.where(t => !t.completed && t.text.includes("#now"))
pages.values = pages.values.map(t => ({...t, subtasks: t.subtasks.values.filter(st => !st.completed)}))
dv.taskList(pages)
``` In the first line, filter for uncompleted tasks with the tag |
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.
-
I would like to know if there is any way to hide the substacks from specific tasks. I mean keeping the task and hiding the subtasks. Thanks
Beta Was this translation helpful? Give feedback.
All reactions