Skip to content
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

Generate a work report #11

Closed
Rahel-A opened this issue Dec 18, 2019 · 11 comments
Closed

Generate a work report #11

Rahel-A opened this issue Dec 18, 2019 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@Rahel-A
Copy link

Rahel-A commented Dec 18, 2019

Worktime displays time spent per tag. Would it be possible to generate a report based on a date range?

I want to look at how much time was spent per task for all tasks in the current week.

@soywod
Copy link
Owner

soywod commented Dec 18, 2019

This feature was present in Unfog predecessor. I plan to re-implement it with very soon, see #9 for the progression.

@soywod soywod closed this as completed Dec 18, 2019
@soywod
Copy link
Owner

soywod commented Dec 28, 2019

Worktime date range and due time added in v0.3.0 🎉

@Rahel-A
Copy link
Author

Rahel-A commented Jan 6, 2020

Side note: I'm running zsh, therefore I have to escape the brackets.

Thanks for the quick update, but this isn't exactly what I requested.

Right now I'd have to run unfog worktime +task1 and repeat for each task I've done in current week to determine time spent per task as there is no way for me to check the time spent on each tasks I've done in a week.
This just gives me an overview:

unfog worktime \[060120 \]100120
unfog: wtime global

DATE       |WORKTIME
2020-01-06 |1 min 21s 672ms
TOTAL      |1 min 21s 672ms

What I'd like is to be able to fill a workcard like this:
image

So something like this would work for me:

unfog worktime \[060120 \]100120
unfog: wtime global

ID | Description | CONTEXT     | DATE       |WORKTIME
1  | Do x and y  | task1 task2 | 2020-01-06 |1 min 21s 672ms
2  | Do z        | task2       | 2020-01-06 |1 min 21s 672ms
TOTAL                                       |1 min 21s 672ms

@soywod
Copy link
Owner

soywod commented Jan 6, 2020

What I can do is to add a column WORKTIME at the end of the list table (after DUE)? This way you have access to the worktime per task.

About zsh, it's a good point. I'm using bash and I don't have to escape. I will probably change them to match both bash and zsh (and fish).

@Rahel-A
Copy link
Author

Rahel-A commented Jan 6, 2020

What I can do is to add a column WORKTIME at the end of the list table (after DUE)? This way you have access to the worktime per task.

This is a good solution but list doesn't currently allow filtering with range. If you also add that then I'd satisfied.

@soywod
Copy link
Owner

soywod commented Jan 6, 2020

Sounds good to me. Adding the WORKTIME column and the filtering system. I will let you know :)

@soywod soywod reopened this Jan 6, 2020
@soywod soywod self-assigned this Jan 6, 2020
@soywod soywod added the enhancement New feature or request label Jan 6, 2020
@soywod
Copy link
Owner

soywod commented Jan 6, 2020

I tried with zsh, I don't have the problem of [. It could be related to plugins?

@Rahel-A
Copy link
Author

Rahel-A commented Jan 6, 2020

I tried with zsh, I don't have the problem of [. It could be related to plugins?

Hmm, I think maybe oh-my-zsh plugin enables filename generation

@soywod
Copy link
Owner

soywod commented Jan 11, 2020

I decided to keep [ and ] and wait feedback from other people. About the worktime, I decided to change the worktime command itself, instead of the list one. It looks like this:

image

I will deploy the next release soon. I hope it fits your needs (feel free to reopen if not).

[EDIT] - Feature added in v0.4.0 🎉

soywod added a commit that referenced this issue Jan 11, 2020
@soywod soywod closed this as completed Jan 11, 2020
@Rahel-A
Copy link
Author

Rahel-A commented Jan 11, 2020

Yeah that works great!

@soywod
Copy link
Owner

soywod commented Feb 28, 2020

This report is now accessible with the --more option. By default (without this option), it shows the compact version of worktime. See https://github.com/unfog-io/unfog-cli#worktime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants