From: Christoph LANGE <math.semantic.web@gmail.com>
To: Sharon Kimble <boudiccas@skimble.plus.com>,
org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: logging the timings of task A + task B both at once?
Date: Sun, 24 Apr 2016 11:54:08 +0200 [thread overview]
Message-ID: <571C97C0.10803@gmail.com> (raw)
In-Reply-To: <87r3ejdsmf.fsf@nicolasgoaziou.fr>
Nicolas Goaziou on 2016-04-06 10:54:
> Sharon Kimble <boudiccas@skimble.plus.com> 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
prev parent reply other threads:[~2016-04-24 9:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 8:39 logging the timings of task A + task B both at once? Sharon Kimble
2016-04-06 8:54 ` Nicolas Goaziou
2016-04-24 9:54 ` Christoph LANGE [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=571C97C0.10803@gmail.com \
--to=math.semantic.web@gmail.com \
--cc=boudiccas@skimble.plus.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).