Remove time - subtract time - delete time commit #2895

Closed
opened 2025-11-02 04:52:57 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @a7hybnj2 on GitHub (Feb 12, 2019).

  • Git version: 1.5.2

add ability to manage time in 'issues'.

If you accidentally add an incorrect time or forget to stop a timer and hit stop instead of cancel then your stuck with a ridiculous time log.

an easy way to make a quick fix would be to allow entering negative numbers via "add time" then the record of the error exists and it can just be commented.

I was under the impression that I saw a similar issue about a year ago but I could not find it.

Originally created by @a7hybnj2 on GitHub (Feb 12, 2019). - Git version: 1.5.2 add ability to manage time in 'issues'. If you accidentally add an incorrect time or forget to stop a timer and hit stop instead of cancel then your stuck with a ridiculous time log. an easy way to make a quick fix would be to allow entering negative numbers via "add time" then the record of the error exists and it can just be commented. *I was under the impression that I saw a similar issue about a year ago but I could not find it.*
GiteaMirror added the outdated/theme/timetrackertype/proposalissue/duplicate labels 2025-11-02 04:52:57 -06:00
Author
Owner

@a7hybnj2 commented on GitHub (Jul 23, 2019):

This would still be awesome if implemented. I haven't messed it up recently but when I do I have to recreate the whole issue with correct times.

@a7hybnj2 commented on GitHub (Jul 23, 2019): This would still be awesome if implemented. I haven't messed it up recently but when I do I have to recreate the whole issue with correct times.
Author
Owner

@a7hybnj2 commented on GitHub (Aug 23, 2019):

I just messed up my timer again. I am glad I hit end time instead of cancel though because the text that reads something like "timer started ___ ago" was only saying 1 hour and I refreshed and still only reading 1 hour.

When I hit "stop" it read 1:24 so I would have lost 24 mins of issue tracking...

Anyway I would be fine if the

if time < 0 than complain

was removed and you could just add negative minutes...

@a7hybnj2 commented on GitHub (Aug 23, 2019): I just messed up my timer again. I am glad I hit end time instead of cancel though because the text that reads something like "timer started ___ ago" was only saying 1 hour and I refreshed and still only reading 1 hour. When I hit "stop" it read 1:24 so I would have lost 24 mins of issue tracking... Anyway I would be fine if the ``` if time < 0 than complain ``` was removed and you could just add negative minutes...
Author
Owner

@no-go commented on GitHub (Jul 30, 2020):

Hi @a7hybnj2,

take a look to https://docs.gitea.io/en-us/api-usage/ the swagger API (create a token). There is a /repos/{owner}/{repo}/issues/{index}/times to "GET" all tracked times (and its index) of an issue. The "DELETE" version /repos/{owner}/{repo}/issues/{index}/times/{id} adds a negative time to "delete" the tracked time entry. Maybe this is a "non gui" workaround for you.

For example curl -X DELETE "http://localhost:3000/api/v1/repos/meister/test/issues/2/times/5?token=a5db9..........ssssLongTokenxxx" -H "accept: application/json" deletes/substract in user meister, repo test, issue 2 the 5th comment entry (= it was a stop event of the time tracker).

@no-go commented on GitHub (Jul 30, 2020): Hi @a7hybnj2, take a look to `https://docs.gitea.io/en-us/api-usage/` the swagger API (create a token). There is a `/repos/{owner}/{repo}/issues/{index}/times` to "GET" all tracked times (and its index) of an issue. The "DELETE" version `/repos/{owner}/{repo}/issues/{index}/times/{id}` adds a negative time to "delete" the tracked time entry. Maybe this is a "non gui" workaround for you. For example `curl -X DELETE "http://localhost:3000/api/v1/repos/meister/test/issues/2/times/5?token=a5db9..........ssssLongTokenxxx" -H "accept: application/json"` deletes/substract in user meister, repo test, issue 2 the 5th comment entry (= it was a stop event of the time tracker).
Author
Owner

@noerw commented on GitHub (Dec 21, 2020):

duplicate, closing in favor of #2642

@noerw commented on GitHub (Dec 21, 2020): duplicate, closing in favor of #2642
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2895