Org-mode clock table by tag

In org-mode Emacs, is it possible for the clock report table to show how much time was spent on each tag? manual seems to think so, but I can't get it to work. This is what I tried:

#+BEGIN: clocktable :maxlevel 2 :scope file :tags nicetag #+END: * Header one :nicetag: :LOGBOOK: CLOCK: [2016-07-23 Sat 18:24]--[2016-07-23 Sat 19:38] => 1:14 CLOCK: [2016-07-23 Sat 12:23]--[2016-07-23 Sat 13:43] => 1:20 :END: * Another header :bigtag: :LOGBOOK: CLOCK: [2016-07-23 Sat 20:24]--[2016-07-23 Sat 20:34] => 0:10 :END: * A task :nicetag: :LOGBOOK: CLOCK: [2016-07-23 Sat 10:26]--[2016-07-23 Sat 11:26] => 1:00 :END: 

I would like the table to display the time spent on all the headers with the tag: nicetag :, but the table does not show anything. Even better would be to make a table showing the time spent on each tag in the file.

+5
source share
1 answer

Do you mean?

 #+BEGIN: clocktable :maxlevel 2 :scope file :tags "nicetag" 

(Note the "around your tag.) The error message displayed in the echo area when you try to use it without" "is an" Invalid type argument: stringp, nicetag ", which means that Emacs expects to read the string but received something that wasn’t. Hope this helps!

+6
source

All Articles