* Hiding "blocked" TODO items
@ 2015-04-07 3:18 Nikolaus Rath
2015-04-07 7:33 ` Samuel Loury
0 siblings, 1 reply; 2+ messages in thread
From: Nikolaus Rath @ 2015-04-07 3:18 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Is there a way to have TODO items "blocking" each other?
For example, if I have this document:
* TODO Pay water
:PROPERTIES:
:blocked-on: checks
:END:
* TODO Pay electricity
:PROPERTIES:
:blocked-on: checks
:END:
* TODO Get new checks
:PROPERTIES:
:id: checks
:END:
Then I'd like the first two TODO items not to show up in the agenda
until the third one is DONE (but I don't much care if the items can be
manually switched to DONE or not).
I looked at org-depend.el but as far as I can tell, it only allows to
set up chains of dependencies, i.e. I could have "Pay Water" and "Pay
electricity" in state NEXT, and have a trigger in "Get new checks" that
would switch one, but not both, of the NEXT items to TODO.
Do I understand that correctly? Is there some other way to achieve what
I want?
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Hiding "blocked" TODO items
2015-04-07 3:18 Hiding "blocked" TODO items Nikolaus Rath
@ 2015-04-07 7:33 ` Samuel Loury
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Loury @ 2015-04-07 7:33 UTC (permalink / raw)
To: Nikolaus Rath, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2111 bytes --]
Dear Nikolaus,
Nikolaus Rath <Nikolaus@rath.org> writes:
> Is there a way to have TODO items "blocking" each other?
>
> For example, if I have this document:
>
> * TODO Pay water
> :PROPERTIES:
> :blocked-on: checks
> :END:
> * TODO Pay electricity
> :PROPERTIES:
> :blocked-on: checks
> :END:
> * TODO Get new checks
> :PROPERTIES:
> :id: checks
> :END:
>
> Then I'd like the first two TODO items not to show up in the agenda
> until the third one is DONE (but I don't much care if the items can be
> manually switched to DONE or not).
>
> I looked at org-depend.el but as far as I can tell, it only allows to
> set up chains of dependencies, i.e. I could have "Pay Water" and "Pay
> electricity" in state NEXT, and have a trigger in "Get new checks" that
> would switch one, but not both, of the NEXT items to TODO.
>
> Do I understand that correctly? Is there some other way to achieve what
> I want?
I think that the dependency could be declared using org-depend but with
the BLOCKER keyword instead of the TRIGGER one. To allow the elements to
still be set to DONE, you could use the NOBLOCKING keyword.
Then, in the agenda view, you could use the org-agenda-skip-function
variable and put something like org-depend-block-todo that would
indicate to skip the blocked items. Sorry to be to lazy to write the
code here...
The outline would look like this:
--8<---------------cut here---------------start------------->8---
* TODO Pay water
:PROPERTIES:
:BLOCKER: checks
:NOBLOCKING: t
:END:
* TODO Pay electricity
:PROPERTIES:
:BLOCKER: checks
:NOBLOCKING: t
:END:
* TODO Get new checks
:PROPERTIES:
:id: checks
:END:
--8<---------------cut here---------------end--------------->8---
Having at the same time BLOCKER and NOBLOCKING appears a bit confusing
to me. May be it is not a so good solution and an org-mode guru will
probably correct me :-).
Hoping this was useful.
Best regards,
--
Konubinix
GPG Key : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-07 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-07 3:18 Hiding "blocked" TODO items Nikolaus Rath
2015-04-07 7:33 ` Samuel Loury
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).