Tommy Kelly <tommy.ke...@verilab.com> writes: >> OK, that might be what I need then. I thought clock tables grouped >> things by headings, not by tags. I'll have a look at the manual. > > I'm trying the tagging thing within clock tables, but I can't get it > working at all. I've attached a tag to a single headline, and checked > that I've got that right by using "C-c a m". Then I added a :tags item > to my clock table block but it seems to have no effect. Is this valid: > > #+BEGIN: clocktable :maxlevel 2 :scope file :block thisweek :step week > :indent :tags test_tag > #+END: > > I've also tried :tags 'test_tag', :tags '+test_tag' and a bunch of > other things, but nothing seems to do anything. What I was expecting > was that my clock table, currently filled with lots of items, would be > reduced to looking only at the single headline that I've tagged. But > it's not -- it just stays as it was before.
I haven't tried this myself, just looking at the manual. But playing around, it seems you need double quotes around your tags match. Here's a simple example for a start:
Tagged clock tables -*- mode: org; fill-column: 78 -*- * Shopping :errands: :CLOCK: CLOCK: [2011-11-07 Mo 09:45]--[2011-11-07 Mo 09:50] => 0:05 :END: * Cleaning :house: :CLOCK: CLOCK: [2011-11-07 Mo 08:50]--[2011-11-07 Mo 09:05] => 0:15 :END: * Kids :children: :CLOCK: CLOCK: [2011-11-07 Mo 08:30]--[2011-11-07 Mo 08:50] => 0:20 :END: * Homework :children: :CLOCK: CLOCK: [2011-11-07 Mo 13:40]--[2011-11-07 Mo 14:05] => 0:25 :END: * Exercises :health: :CLOCK: CLOCK: [2011-11-07 Mo 07:30]--[2011-11-07 Mo 07:50] => 0:20 :END: #+BEGIN: clocktable :maxlevel 2 :scope file :tags "health" Clock summary at [2011-11-08 Di 09:57] | Headline | Time | |--------------+--------| | *Total time* | *0:20* | |--------------+--------| | Exercises | 0:20 | #+END: clocktable #+BEGIN: clocktable :maxlevel 2 :scope file :tags "children" Clock summary at [2011-11-08 Di 09:58] | Headline | Time | |--------------+--------| | *Total time* | *0:45* | |--------------+--------| | Kids | 0:20 | | Homework | 0:25 | #+END: clocktable
Regards, Olaf