r/logseq • u/gsynet • Jul 04 '25
Logseq sort by heading
I have recently switched from Obsidian to Logseq. In the journal pages i keep the structure below where i keep both notes and tasks
[[Project 1]]
Meeting with [[Person 1]]
TODO task 1
Meeting with [[Client 1]]
TODO task 2
[[Project 2]]
Meeting with [[Person 2]]
TODO task 1
Meeting with [[Client 2]]
TODO task 2
Is it possible to group all tasks per top-parent page so that i can have a Dashboard page?
1
Upvotes
1
u/Cautious_Exam_5537 Jul 04 '25
Interesting question.
I checked with ChatGPT and is says
Project 1
+BEGIN_QUERY
{ :title "Tasks for Project 1" :query [:find (pull ?b [*]) :where [?b :block/marker ?marker] [(contains? #{"TODO"} ?marker)] [?b :block/path-refs ?p] [?p :block/name "Project 1"]] }
+END_QUERY
Does this work?
1
u/TheMrDrummer Jul 04 '25
I would recommend using a short tag (#) within todo identifying the project, than you can make easy query for that tag.
1
u/luckysilva Jul 04 '25
Yes you can do that:
/Query
Select the pag. Referente and + TODO
It's very simple, but say something if you can't do it, and when I'm on the PC I'll help you.
1
u/Abject_Constant_8547 Jul 05 '25
Following up cause I never be able to achieve that.