Here's the POC code to generate a table report, I put it as an org-mode dynamic block to help me deal with the table data management.

https://gist.github.com/Trevoke/c91cc8c97476f681f82f9ce44efdac9b

e.g. do this:

#+begin: clockreport-by-project #+end: 

and hit C-c C-c on the begin line.

It generates this:

#+begin: clockreport-by-project | | 2021-11-15.org | 2021-11-16.org | |------------+----------------+----------------| | EA | 0.18 | | | internal | 0.83 | | | management | 0.47 | 1.70 | #+end: 

It makes two big assumptions:

* you use a PROJECT property on things you clock

* you are using files named after the day of the year (e.g. `2021-11-16` but really whatever makes sense for you)

* right now it's not using any of the clocktable report filters, e.g. "thisweek" -- that's a relatively easy change you can make on line 14

* You can adjust the path to the files on line 15.

When you run this, it will take you away from the buffer where you put the dynamic block. I don't yet know how to not do that, I thought save-excursion would do it, but obviously not.

feedback and improvements welcome :D

submitted by /u/Trevoke
[link] [comments]