Add simple time tracking
Summary
In our company we are starting to use the time tracking feature of Gitlab. It would be handy to have the option to directly tack that through the command line. It should also be possible to get information of estimates and total time spent. I don't want another third party tool that I need to learn for this.
Example
I think that we should add an issue
command. This would allow for greater flexibility in the future. Later we would add subcommands like: note, close, open, reopen, etc
. For now I am only concerned about time tracking. The interface could look like this:
$ git lab issue 1 estimate
Some important feature is estimated at 16h (spent: 0h)
$ git lab issue 1 estimate --update 18h
Set estimate to 18h
$ git lab issue 1 spend --update 1d2h30m
Added time entry of 1d2h30m
$ git lab issue 1 spend
Some important feature has 10h 30m tracked (estimated: 18h)
$ git lab issue 1 estimate --reset
Time estimate reset.
$ git lab issue 1 spend --reset
Spent time reset.
Future extendibility
It would be helpful to get reports about the time spent on each issue. This way I get a quick glimpse about the last period.
Edited by Leon Morten Richter