Update criteria for stuck projects

Previously, a project was not stuck if any subtask was tagged NOP (no-project).
However, this led constellations like the following to be hidden from the stuck
project list:

  * Test               :NOP:
  ** TestTest
  *** TestTestTest     :NOP:

In this case, the NOP at TestTestTest would result in hiding TestTest, which,
however, does not have any more things to do and should thus be marked stuck.
The new configuration will check NOP only at the top headline, and not at any
other sub-headlines.  For this, a property search TAGS={NOP} is necessary,
because otherwise tag inheritance would result in wrong false negatives.
This commit is contained in:
Daniel Borchmann 2020-01-10 18:23:11 +01:00
parent a4f2428e49
commit a63210a336
Signed by: exot
GPG Key ID: 1C7071A75BB72D64

View File

@ -1052,9 +1052,9 @@ in the main agenda view."
'(:link t :maxlevel 4 :compact t :narrow 60 :fileskip0 t)
org-stuck-projects
'("-DATE-HOLD-REGULAR-HOLD-NOTE+TODO=\"\""
'("+TODO=\"\"-DATE-REGULAR-HOLD-NOTE-TAGS={NOP}"
("CONT" "TODO" "READ" "WAIT" "GOTO" "DELG")
("NOP")
()
"")
org-agenda-prefix-format