Edit or remove a tracked time entry
Release notes
Problem to solve
As a developer, I want to be able to change the tracked time of an entry I previously set, so I can edit it in case I set a wrong time or completely delete an entry in case I added it on the wrong issue/MR.
At the moment, the only way to change the total time spent working on an issue/MR is by adding a new time tracking entry with the value to add or subtractvalue. This however will result on two, or more, separate entries on the time tracking report with the only purpose fixing the wrong value.
A real world example would be:
- I set an
2h
entry with the "Worked on analysis" description - On the same day I set an
3h
entry with the "Fixed the issue" description - Later I want to change time I spent on the analysis because of a typo, I actually spent only
1h
, not2
. I add a new-1h
entry with a "Actually spent only 1h on the analysis" description
This results on a correct tracked time (in total it still shows 4 hours instead of 5), but looking at the report its difficult to see actually where and how the time was spent.
Even worse is the case where I want to completely remove a single entry if I added it to the wrong issue/MR. There actually is no way to achieve this right now since the only viable solution would be to add a negative entry, which would still show on the report.
Intended users
User experience goal
The user should be able to edit a time entry from the time tracking report, adding the ability to change the tracked time. This should also be possible to achieve via a new API to edit a tracked time entry.
Same thing for the possibility to remove a tracked time entry. The user should be able to do that from the tracked time report or using an API.
Proposal
Expose two new APIs:
- one to edit a time entry
- one to delete a time entry
Edit the time tracking report by adding two buttons:
- An edit button which, when clicked, opens a dialog where the user can change the acutual value (maybe the description?)
- A delete button which, when clicked, would ask the user if he actually wants to delete the entry to then procede with the deletion
Further details
Permissions and Security
There is only one permission that come to mind, which is that only the user who registered a time entry can see the buttons to edit or delete the entry. Maybe the maintainer of the repository could also see them, but at the moment only the user who added an entry should be able to see the buttons.
Documentation
Availability & Testing
Available Tier
- Free, as this change would improve the time tracking functionality already offered with the free tier.
Feature Usage Metrics
What does success look like, and how can we measure that?
A user will be able to edit or remove its own time tracking entries.