emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] How to get a clock table without the file level?


From: Peter Frings
Subject: [Orgmode] How to get a clock table without the file level?
Date: Fri, 5 Sep 2008 16:47:04 +0200

Sorry for the repost (original of 8/8), but I have been looking for an answer in the manual, as well as in the sources and I really don't dare to touch anything down there...


Is it possible to build a clocktable with the agenda as scope, but summing up all times per headline level, and not per file. Some files have the same level 1 entries, and these should be summed up.

E.g.:

A.org:
* REQD
** task 1
** task 2

B.org:
* Todo
** task 1

C.org:
* REQD
* task 3


The current clocktable create blocks per file:

#+BEGIN: clocktable :maxlevel 4 :scope agenda :block thisweek :step week

Weekly report starting on: <2008-08-04 Mon>
| File  | L | Headline            | Time   |      |
|-------+---+---------------------+--------+------|
|       |   | *Total time*        | *0:40* |      |
|-------+---+---------------------+--------+------|
| A.org |   | *File time*         | *0:10* |      |
| A.org | 1 | REQD                | 0:10   |      |
| A.org | 2 | task 1              |        | 0:05 |
| A.org | 2 | task 2              |        | 0:05 |
|-------+---+---------------------+--------+------|
| B.org |   | *File time*         | *0:15* |      |
| B.org | 1 | Todo                | 0:15   |      |
| B.org | 2 | task 1     |        | 0:15 |
|-------+---+---------------------+--------+------|
| C.org |   | *File time*         | *0:15* |      |
| C.org | 1 | REQD                | 0:15   |      |
| C.org | 2 | task 3              |        | 0:15 |
#+END:


It would be very convenient if I could group it on the first level, across the files: #+BEGIN: clocktable :maxlevel 4 :scope agenda :block thisweek :step week

Weekly report starting on: <2008-08-04 Mon>

| File  | L | Headline            | Time   |      |
|-------+---+---------------------+--------+------|
|       |   | *Total time*        | *0:40* |      |
|-------+---+---------------------+--------+------|
| A.org | 1 | REQD                | 0:25   |      |
| A.org | 2 | task 1              |        | 0:05 |
| A.org | 2 | task 2              |        | 0:05 |
| C.org | 2 | task 3              |        | 0:15 |
|-------+---+---------------------+--------+------|
| B.org | 1 | Todo                | 0:15   |      |
| B.org | 2 | task 1              |        | 0:15 |
#+END

Another possible method is to use categories at the file header, and to group files with the same category. That way, you can control which files to group and which ones not.


Maybe I have overlooked some customization somewhere, but I couldn't find it in the manual. And as I said before, I'm loosing my way in the source files...


Any pointers? Or suggestions to tackle this in another way?

Cheers,
Peter.

PS: this is the first time in my life I'm getting organized... thanks to org-mode!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]