From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph LANGE Subject: Re: logging the timings of task A + task B both at once? Date: Sun, 24 Apr 2016 11:54:08 +0200 Message-ID: <571C97C0.10803@gmail.com> References: <87oa9nf7wm.fsf@skimble.plus.com> <87r3ejdsmf.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auGk7-0004I7-36 for emacs-orgmode@gnu.org; Sun, 24 Apr 2016 05:54:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auGk1-0002rT-UJ for emacs-orgmode@gnu.org; Sun, 24 Apr 2016 05:54:19 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:38574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auGk1-0002rN-O7 for emacs-orgmode@gnu.org; Sun, 24 Apr 2016 05:54:13 -0400 Received: by mail-wm0-x22f.google.com with SMTP id u206so85254227wme.1 for ; Sun, 24 Apr 2016 02:54:13 -0700 (PDT) In-Reply-To: <87r3ejdsmf.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Sharon Kimble , org-mode-email Nicolas Goaziou on 2016-04-06 10:54: > Sharon Kimble writes: >> Being that we can have multiple cursors, is it possible to have 2 >> separate, distinct, tasks being clocked both at the same time? > [...] > > There can only be one active clock at any given time. Although > I understand the need for some special features, I don't think it is > worth re-implementing "org-clock.el" to allow multiple ones. > > You may probably redefine "Task A" and "Task B" so they do not overlap > and require being clocked at the same time. I have a similar use case, which is related to booking working hours on multiple projects and/or multiple employers. I have many tasks which cannot clearly be associated to a single project or employer, such as "installing security updates on my computer". Here, it would be convenient to be able to define, by a special property, that, say, .7 of the time logged on one task should be attributed to one project/employer, and .3 to the other one. Such that a query for #+BEGIN: clocktable :tags "EmployerA" over * Security updates :EmployerA:EmployerB: :PROPERTIES: :LOGFACTOR-EmployerA: .7 :LOGFACTOR-EmployerB: .3 :END: :LOGBOOK: CLOCK: [2016-04-24 Sun 11:09]--[2016-04-24 Sun 12:09] => 1:00 :END: would result in a value of "0:42". I am currently using two workarounds for this: 1. Explicitly defining two separate tasks. Having logged some time on one of the tasks, I manually split the CLOCK: intervals and move the "other" part of the split to the other task. Thanks to my function org-clock-split-current-interval (https://github.com/clange/emacs/blob/master/.emacs.d/init/org.el#L68) the latter is not as painful as one might think. 2. Not tagging tasks with :EmployerA: or :EmployerB: but with a common super-tag, e.g. :Work:. Then, in the spreadsheets I'm generating from my clock tables (see https://github.com/clange/org-mode/blob/master/clocktable-spreadsheet/working-hours.org for the general approach; those spreadsheets that generate project-/employer-specific timesheets I have not yet made public), I do something like "determine all time logged on :Work: but neither on :EmployerA: nor on :EmployerB:. Add .7 of that time to the time that's explicitly logged on :EmployerA:, and .3 of that time to the time that's explicitly logged on :EmployerB:." Cheers, Christoph -- Dr. Christoph Lange, Enterprise Information Systems Department Applied Computer Science @ University of Bonn; Fraunhofer IAIS http://langec.wordpress.com/about, Skype duke4701 → CSCUBS Computer Science Conference for University of Bonn Students 25 May 2016; submission deadline 28 April – http://cscubs.cs.uni-bonn.de