⚡️ Ideas
Darren Brierton Darren Brierton Nov 22, 2023

An ANCESTOR WITH TAG field value in live queries

Explain the problem as you see it

The problem with PARENT and GRANDPARENT is not merely their limited scope but also their fragility, simply changing indentation can break live queries (and that also holds for some requested enhancements like GREATGRANDPARENT or ANCESTOR_1, ANCESTOR_2 etc.).

Why is this a problem for you?

Side menu and tabs allow us to create pleasing UIs in Tana, but my ability to use them is greatly limited if they are to contain live queries. For example, a project template like this

Project A #project
    Dashboard
        Tab 1
            Side menu live query for all tasks related to Project A

is not possible because Project A is beyond the reach of GRANDPARENT.

Suggest a solution

I suggest a new ANCESTOR WITH TAG field value that, like FOR RELATIVE DATE, accepts a single argument, in this case a tag name. This field value would match the closest ancestor node with that tag.

So instead of a live query like this, which cannot have its nesting level changed:

#task
>Project PARENT

you could do

#task
>Project ANCESTOR WITH TAG #project

⁨1⁩ ⁨Comment⁩