From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Day workflow: need your opinion Date: Mon, 10 Aug 2009 17:36:00 -0400 Message-ID: <87ljlrjqrj.fsf@gollum.intra.norang.ca> References: <87y6q0dsts.wl%xma@gnu.org> <87k51jmtak.fsf@gollum.intra.norang.ca> <87k51be5d1.wl%xma@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MacXM-0007tk-Aq for emacs-orgmode@gnu.org; Mon, 10 Aug 2009 17:36:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MacXJ-0007tW-27 for emacs-orgmode@gnu.org; Mon, 10 Aug 2009 17:36:11 -0400 Received: from [199.232.76.173] (port=44357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MacXI-0007tT-Rd for emacs-orgmode@gnu.org; Mon, 10 Aug 2009 17:36:08 -0400 In-Reply-To: <87k51be5d1.wl%xma@gnu.org> (Xavier Maillard's message of "Mon\, 10 Aug 2009 23\:17\:14 +0200") 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: Xavier Maillard Cc: emacs-orgmode@gnu.org Xavier Maillard writes: > Thanks a lot Bernt. This is how I am doing things right now which > "partially" works for me. > > I need a way to tag a TODO as INTERRUPTED automatically when > clocking-in a new item through remember. > > Eg: > > Working on task A which is marked as STARTED. Someone calls me > asking for help. I C-M-r a new clocked item, automatically > marking previous clocked-in item (task A) as INTERRUPTED. There is a variable for changing task states when clocking out a task. Every task that clocks out but isn't finished is essentially interrupted. The variable org-clock-out-switch-to-state controls that IIRC but I've never actually tried that (yet). I just leave my tasks in a STARTED state. Anything for me that is STARTED is interrupted (partially worked on and unfinished). My STARTED list tends to be less than 20 tasks total (13 right now). I just use my STARTED agenda view to pick up the in-progress tasks easily and clock one in. > > Even better would be to have something that could clock-out > automatically when a task hits some tags: WAITING or INTERRUPTED. > > Do you know if it is possible ? There is a org-after-todo-state-change-hook which you could probably use to accomplish this. > > Also, while at it: how do you access a "daily report" of what has > been done and how long it took to do ? I look at my clock report data in the agenda. Just pull up a day or week view and hit R for the report. You can insert clock reports in your org files and this is the way I used to do this... but when agenda reporting came along I abandoned that altogether. HTH, Bernt