emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with defining stuck projects


From: Ihor Radchenko
Subject: Re: Problem with defining stuck projects
Date: Fri, 08 Jul 2022 12:51:47 +0800

Bob Heffernan <bob.heffernan@gmail.com> writes:

> I want the following:
>   1. A project is a level 1 header marked as TODO
>   2. A project is not stuck if it has any sub-header that is scheduled but 
> not closed.
>
> So, in the example above Project 1 counts as stuck, but Project 2 does not.
>
> What I've got so far is this:
> (setq org-stuck-projects
>           '("+LEVEL=1/TODO-DONE" nil nil "SCHEDULED:")
>
> But this will clearly mark both projects 1 and 2 as stuck.
> I need some way of specifying the "but not closed" part, but am at a loss as 
> to how I can do this.

If you have org-log-done set to 'time, your completed (closed) tasks
will contain CLOSED: ... in their planning line:

* DONE headline
CLOSED: [timestamp] SCHEDULED: [timestamp]

So, you can try the following regexp instead of "SCHEDULED:":

"^[ \t]*\\(SCHEDULED:\\|DEADLINE:\\)"

Best,
Ihor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]