Time Tracking
Problem to solve
Ability to get time tracking information. The time information should be output to a file so that it can be parsed for graphing and/or importing to other softwares.
-
Time Tracking by project. Total and by user. -
Time Tracking by group Total and by user.
Further details
Example time comment from api
{
"id": {redacted},
"type": null,
"body": "added 30m of time spent",
"attachment": null,
"author": {redacted},
"created_at": "2021-12-30T07:24:53.000Z",
"updated_at": "2021-12-30T07:24:53.000Z",
"system": true,
"noteable_id": {redacted},
"noteable_type": "Issue",
"resolvable": false,
"confidential": false,
"noteable_iid": {redacted},
"commands_changes": {
}
},
Data should be saved to a csv file for graph parsing.
date,project,user,type,time
CSV fields description:
- date - the date the time was recorded (adjusted to gmt)
- project - path to the project
- user - the username
- type - the object type the time was recorded (issue/merge request)
- time - time in seconds
Tasks:
-
Times to be recorded by specified timezone -
config.yml
user timezone for recording times. -
default timezone will fallback to GMT
-
Documentation
The following Documentation requirements need to be done
-
CLI Help -
Docstrings in code
Links / references
- API end point
https://gitlab.com/api/v4/projects/{project number}/issues/{issue number}/notes
Edited by Jon