Laurynas Biveinis <laurynas.bivei...@gmail.com> writes: > I am trying to implement the following but I am not really getting > anywhere. I want to have a block in a custom agenda that lists all > "archivable" tasks, where "archivable" means in any of "done" states > and not in a project. In my system projects are subtrees that have > 'project' tag associated with them. This tag is non-inheritable and > I'd rather keep it that way. > > So I would like to have a way to list all items in a done state where > there is no 'project' tag on it nor in any of its (indirect) parents.
Does the following work? --8<---------------cut here---------------start------------->8--- (org-add-agenda-custom-command '("x" "Archivable" ((tags "-project/DONE" ((org-use-tag-inheritance '("project"))))))) --8<---------------cut here---------------end--------------->8--- The local org-use-tag-inheritance binding should override your other tag inheritance settings for this search only. Best, Matt