Mac – Advanced time tracking in Org-Mode

emacsorg-mode

Are there any advanced time tracking mechanisms in Org-Mode available? I "clock in" and "clock out" my tasks but am wondering wether there is an advanced report (besides the clock table) available that:

  • shows for a month, how much I worked per day
  • plots working hours
  • aggregates a work log in a way that all tasks (done / todo) are listed as I worked on them (e.g. On the 1st I did from 10-12 task A, form 13-15 task C, etc)

Best Answer

You can do most of what you need with the stock agenda commands:

v R or short R (org-agenda-clockreport-mode)

Toggle Clockreport mode. In Clockreport mode, the daily/weekly agenda will always show a table with the clocked times for the time span and file scope covered by the current agenda view. The initial setting for this mode in new agenda buffers can be set with the variable org-agenda-start-with-clockreport-mode. By using a prefix argument when toggling this mode (i.e., C-u R), the clock table will not show contributions from entries that are hidden by agenda filtering1. See also the variable org-clock-report-include-clocking-task.

v l or short l (org-agenda-log-mode)

Toggle Logbook mode. In Logbook mode, entries that were marked DONE while logging was on (variable org-log-done) are shown in the agenda, as are entries that have been clocked on that day. You can configure the entry types that should be included in log mode using the variable org-agenda-log-mode-items. When called with a C-u prefix, show all possible logbook entries, including state changes. When called with two prefix arguments C-u C-u, show only logging information, nothing else. v L is equivalent to C-u v l.

A combination of those two commands got me a pretty good result.

You need to make sure the variable org-agenda-files has all of the files or directories you store work or events in.

The only thing left to do here is add a custom agenda view with C-c a C to give you a 30 day view, and to use some kind of ASCII plotter to plot your work hours from the clock table.

Related Question