On Tue, Mar 15, 2011 at 14:35, Christian Zang <christian.z...@googlemail.com> wrote: > 2011/3/15 Christian Zang <christian.z...@googlemail.com>: >> 2011/3/15 Manish <mailtomanish.sha...@gmail.com>: >>> On Tue, Mar 15, 2011 at 11:54 AM, Christian Zang wrote: >>>> 2011/3/15 Manish: >>>>> On Tue, Mar 15, 2011 at 12:54 AM, Christian Zang wrote: >>>>>> Dear all, >>>>>> >>>>>> I might be overlooking something very obvious, but I cannot find the >>>>>> solution: I have various org files, in which "projects" (anything >>>>>> requiring more than one action step...) are first level headings >>>>>> marked using the TODO kwd PROJ. If I tell my agenda to list all items >>>>>> with kwd PROJ (either via C-a T PROJ or as a custom agenda view via >>>>>> "tags-todo "LEVEL=1""), only the ones without siblings are returned. >>>>>> I've looked into "org-tags-match-list-sublevels" but this is not quite >>>>>> the right thing to calibrate... ... > Update: I found the culprit in "org-enforce-todo-dependencies", set to > nil and all projects labeled as PROJ are displayed again. Have to > think about why this affects the agenda views in that way...
Someone correct me if I'm wrong, but: I think org considers child tasks to be dependencies of the parent task -- so if a parent task (such as your PROJ) has children, it won't be displayed in a tags-todo agenda view, because that takes dependencies into account. Have you tried just a "tags" view with a match of "TODO=\"PROJ\""? IIRC this will do what you want. So it would be: ("P" "Projects" tags "TODO=\"PROJ\"" ((org-agenda-overriding-header "List of Projects"))) -- Josh