From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: [Orgmode] Grouping clock report by tag? Date: Thu, 5 May 2011 14:33:15 -0500 Message-ID: References: <87bp1oe66l.fsf@gnu.org> <8762rwp2mg.fsf@gnu.org> <83fwqzb5qf.fsf@yahoo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI4IZ-0006nK-2I for emacs-orgmode@gnu.org; Thu, 05 May 2011 15:33:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI4IX-0007wg-H0 for emacs-orgmode@gnu.org; Thu, 05 May 2011 15:33:18 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:36529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI4IX-0007wa-7x for emacs-orgmode@gnu.org; Thu, 05 May 2011 15:33:17 -0400 Received: by bwz17 with SMTP id 17so2781061bwz.0 for ; Thu, 05 May 2011 12:33:15 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Giovanni Ridolfi Cc: Bastien , emacs-orgmode Following up on this again... It's been almost 2mos. Is there any way to add a tag grouping to clock reports rather than needing to create clock reports for every tag? Many thanks, John My initial example: ---- A rough idea might be like this: ----------- #+BEGIN: clocktable :maxlevel 2 :scope agenda Clock summary at [2011-03-06 Sun 17:59] | Tag | Headline | Time | | File | |------+------------------+---------+------+----------------| | | ALL *Total time* | *10:00* | | | |------+------------------+---------+------+----------------| | Tag1 | *Tag time* | *5:00* | | | | | [2011-02-04 Fri] | 3:30 | | 2011-02Feb.org | | | Some task | | 3:30 | | | | [2011-01-21 Fri] | 0:30 | | 2011-01Jan.org | | | Some task | | 0:30 | | | | [2010-12-09 Thu] | 1:00 | | 2010-12Dec.org | | | Some task | | 1:00 | | |------+------------------+---------+------+----------------| | Tag2 | *Tag time* | *5:00* | | | | | [2011-02-04 Fri] | 3:30 | | 2011-02Feb.org | | | Some task | | 3:30 | | | | [2011-01-21 Fri] | 0:30 | | 2011-01Jan.org | | | Some task | | 0:30 | | | | [2010-12-09 Thu] | 1:00 | | 2010-12Dec.org | | | Some task | | 1:00 | | |------+------------------+---------+------+----------------| ----- On Fri, Mar 11, 2011 at 4:06 PM, John Hendy wrote: > On Mon, Mar 7, 2011 at 4:11 AM, Giovanni Ridolfi > wrote: >> John Hendy writes: >> >>> Sorry -- forgot the list... >>> >>> On Sun, Mar 6, 2011 at 12:06 PM, John Hendy wrote: >>> >>>> On Sun, Mar 6, 2011 at 11:42 AM, Bastien wrote: >>>> >>>>> John Hendy writes: >>>>> >>>>> > How about a clock table with a :tag: column and an option to sort b= y >>>>> > common tag? >> >> The idea has been already suggested, with patches, but I think the patch= es >> got lost during the FSF copyright assignment >> > > Somehow I missed this email! > >> 1. by Adam Elliott, see: >> >> =C2=A0On Feb 23, 2010, at 8:13 AM, Adam Elliott wrote: >> =C2=A0http://thread.gmane.org/gmane.emacs.orgmode/22526 >> > > That looks like the behavior as-is (i.e. a :tags "tagname" option) > > Oh, and perhaps the :tags option should be better documented in the > manual. I tried in vain to combine tags and only just now saw the > thread that looks like it inspired the :tags option. The mailing list > posts contains the syntax ("tag1-tag2", "tag1+tag2") but since there > is no example clocktable using the :tags option in the manual: > 1) it took me a while even to figure out to put the word in quotations > 2) I had no idea whatsoever if multiple tags were possible > >> 2. And also by B Grobauer, with a huge patch >> =C2=A0 Sun, 20 Jun 2010 12:24:44 +0200 >> =C2=A0 http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00536.= html >> > > Now *this* looks like just what I was loooking for. Yes -- an option > to group by tag or even simply include a column which lists the tags. > I can do several tables, but for me this is more just to show where I > spend my time, not for billing... so it would be great to analyze the > ratios between my various "buckets" (for which I use tags to > identify). > >> If Bastien is going to implement this feature, I ask again[1]: >> ----------------------------------------------------- >> =C2=A0Is it possible to check also for properies >> =C2=A0and not only for tag? >> >> =C2=A0we can add a special PROPERTY: CLOCKTAG >> >> Rationale: >> In my setup I have a remember template where I write the task I'm doing. >> with some information e.g.: >> >> ** reading bibliography >> =C2=A0 CLOCK: [2010-06-21 lun 09:24] >> =C2=A0:PROPERTIES: >> =C2=A0:ID: lab >> =C2=A0:Type:expected >> =C2=A0:People: Giovanni >> =C2=A0:Location: computer >> =C2=A0:Connection: nil >> =C2=A0:CLOCKTAG:PV Project >> =C2=A0:Comment: >> =C2=A0:END: >> >> If the function checks also the :PROPERTIES: drawer and the existence of >> the special PROPERTY: CLOCKTAG I can keep my setup and exploit this >> marvellous new feature. >> >> [1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00554.htm= l >> ------------------------------------------------------------------------= --- >> >> Another method could be to use the clock report from agenda R >> Date: =C2=A0 Wed, 27 Oct 2010 12:29:25 -0400 >> (Sebastien Vauban) >> http://lists.gnu.org/archive/html/emacs-orgmode/2010-10/msg01494.html >> >> >> cheers, >> Giovanni >> >