-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weekly report with daily summary of hours per task #171
Comments
Do you mean start of the week?
I used to have to track my time on a particular project in this format (and enter it into Jira). I didn't use gtimelog's reporting, but rather history browsing (alt-left/alt-right), with filtering on the project name, with entries grouped to show total time for each task in each day. I also had a bookmarklet written to convert Jira's report to show me hours + minutes instead of fractional hours. |
Start of the week is correct, sorry. |
Regarding again the workaround, the worst thing is that the projects/tasks get re-ordered day after day, depending on what one started to work on each day. The order should rather be always the same, either alphanumerical or the order of the tasks as entered in |
I should mention that that was a great pain, and so I was very happy when a coworker wrote gtimelog2jira, which is what I use now. |
I was thinking of a perhaps more versatile approach: extend the reporting "engine" to use (e.g. Jinja2) templates instead of code for generation. The current Daily/Weekly/Monthly would each become their own template file, and users could also create their own templates, e.g. one report template for each customer. I'm not married with it but I would use Jinja2 because it's rather common, I know it, and it's stable, maintained, and it should be more than powerful enough for what I have in mind. I checked quickly for alternatives but Jinja2 seems a solid choice, e.g. https://opensource.com/resources/python/template-libraries |
Hm, an interesting idea. I don't know about Jinja: while it's the most popular Python templating language, it is philosophically opposed to doing complicated logic inside the template itself, which might make it difficult to do aggregation etc. I curse Jinja's lack of list comprehensions almost every time I work with Ansible. Also, when I stop to think how the user's supposed to provide custom templates somewhere where GTimeLog can find them, I think it's not that big of a step to providing proper Python plugin support. (gtimelog2jira, which I mentioned earlier, ought to be a plugin. Maybe someday it will be.) |
As it is the format I need to use to report my time, I'd like to have a weekly summary, showing a summary of time spent on each task per day and not only at the week level.
Goodies would be:
A CSV format would also be good enough (without formatting).
The text was updated successfully, but these errors were encountered: