Show tasks for a page and any subpage it has

I have a page with subpages:

projectA
projectA/topic1
projectA/topic2

On the projectA page I need a query that displays tasks from:

  • projectA
  • projectA/
  • Anywhere I create a todo with TODO [[projectA]]

I have seen all the queries in this great thread, but none of them accomplish my goal:
https://discuss.logseq.com/t/queries-for-task-management/14937/34

Thank you kindly!

I wanted to clarify this a bit so let me update this part:

On the projectA page I need a query that displays tasks from:

  • projectA
  • projectA/topic1 or any other sub page
  • any other page I create a todo with TODO [[projectA]] or TODO [[projectA/topic1]]
  • any other page I create a todo with TODO #projectA or TODO #projectA/topic1

Any luck with this? :slight_smile:

Nope, I gave up using tasks in logseq. I am not ready to learn hack on Datalog. Love it still for the wiki aspect.

Doh. :slight_smile: Had a look at Datalog too, but could only get it to work with tasks tagged with the hierarchy, not on the pages. :-\ Anyone else have any luck? It would rock. :slight_smile: