From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Heller Subject: Re: Contracts in Orgmode Date: Tue, 22 Dec 2009 13:49:07 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNCci-00042R-N7 for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 16:50:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNCce-0003wV-Sj for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 16:50:32 -0500 Received: from [199.232.76.173] (port=60755 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNCce-0003wG-AD for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 16:50:28 -0500 Received: from lo.gmane.org ([80.91.229.12]:37327) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NNCcd-0001Hn-QH for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 16:50:28 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NNCcN-0006aE-UF for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 22:50:11 +0100 Received: from mail.cdrd.ca ([142.103.191.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Dec 2009 22:50:11 +0100 Received: from hellerm2 by mail.cdrd.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Dec 2009 22:50:11 +0100 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 12/21/2009 11:16 AM, Markus Heller wrote: > Hello all, > > please consider the following scenario: > > I have a contract with Client A; the contract is valid from January 1, > 2010 until March 31, 2010. I want to clock all my work on tasks under > this contract, and of course *only* while the contract is valid. 30 days > before the expiry date, I'd like to get a reminder. > [snip] After some more googling and having a closer look at the org manual, I came up with a solution that might work. It uses dependencies and org-depend.el. I've pasted it below, and as usual, I'd appreciate any comments/improvement :) I realize that this is not exactly an elegant solution, but it might work for me. I'd still like to see a way in orgmode to allow clocking in on certain tasks only during a specific period of time, maybe something like ** Contract for Client A :PROPERTIES: :START: 01-01-2010 :EXPIRY: 03-31-2010 :END: Then, when the START date is reached, the task state gets changed to the TODO or STARTED, and once the expiry date is reached, it gets marked DONE, and cannot be clocked in anymore. I'm not sure if this is a feature that would be of general interest ... But what do the experts think? Thanks and Cheers! Markus Here's my crude solution: * Workorder ** TODO Create WO :PROPERTIES: :ID: WO-Create :TRIGGER: WO-Sign(TODO) :END: ** Have WO signed by PI :PROPERTIES: :ID: WO-Sign :BLOCKER: WO-Create :TRIGGER: Service(TODO) Analysis(TODO) WO-Renew(TODO) :END: ** Renew WO :PROPERTIES: :ID: WO-Renew :BLOCKER: WO-Sign :TRIGGER: Service(DONE) Analysis(DONE) :END: DEADLINE: <2009-12-31 Thu> ** Service NMR :PROPERTIES: :ID: Service :BLOCKER: WO-Sign :END: ** Data Analysis :PROPERTIES: :ID: Analysis :BLOCKER: WO-Sign :END: