[PR #2211] [MERGED] Feature: Timetracking #16288

Closed
opened 2025-11-02 12:06:48 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2211
Author: @jonasfranz
Created: 7/25/2017
Status: Merged
Merged: 9/12/2017
Merged by: @lafriks

Base: masterHead: feature/timetracking


📝 Commits (10+)

  • 74774a4 Added comment's hashtag to url for mail notifications.
  • f385727 Added comment's hashtag to url for mail notifications.
  • e05eb96 Added comment's hashtag to url for mail notifications.
  • 5cb36ca Added comment's hashtag to url for mail notifications.
  • 2dd674e Replacing in-line link generation with HTMLURL. (+gofmt)
  • 716bf81 Replaced action-based model with nil-based model. (+gofmt)
  • edaa576 Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants.
  • b0e22ab Updating comment for mailIssueCommentToParticipants
  • fd70385 Merge branch 'master' of github.com:JonasFranzDEV/gitea
  • 3c6d4fc Merge branch 'master' of https://github.com/JonasFranzDEV/gitea

📊 Changes

42 files changed (+1522 additions, -71 deletions)

View changed files

📝 conf/app.ini (+6 -0)
📝 integrations/html_helper.go (+10 -0)
integrations/timetracking_test.go (+74 -0)
📝 models/error.go (+44 -0)
📝 models/fixtures/comment.yml (+3 -0)
📝 models/fixtures/issue.yml (+13 -0)
📝 models/fixtures/repo_unit.yml (+2 -2)
📝 models/fixtures/repository.yml (+1 -1)
models/fixtures/stopwatch.yml (+11 -0)
models/fixtures/tracked_time.yml (+34 -0)
📝 models/issue_comment.go (+8 -1)
models/issue_stopwatch.go (+170 -0)
models/issue_stopwatch_test.go (+70 -0)
models/issue_tracked_time.go (+117 -0)
models/issue_tracked_time_test.go (+103 -0)
📝 models/migrations/migrations.go (+2 -0)
📝 models/migrations/v16.go (+4 -4)
models/migrations/v39.go (+65 -0)
📝 models/models.go (+2 -0)
📝 models/repo.go (+17 -7)

...and 22 more files

📄 Description

Fix #967
This pullrequest adds a timetracking feature for issues.

Tracking methods

Track by a stopwatch

This is the easiest process. You simply click on "Start" at the time tracking section and click "Finish" if you finished your work. This will calculate the time difference between the start time and the end time.
Start Finish

Add time manual

You could add time you tracked outside of gitea by clicking on the "+"-Button in the tracking section. This will open up a modal where you could enter the spent time.
Modal

Time log

Issue history

Every time tracking action will be logged in the history of the issue. The partial times (per stopwatch / manually) are also logged.
History

Total time spent

At the sidebar is a list with the sum of time spent by every user who tracked his / her time.
Total


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2211 **Author:** [@jonasfranz](https://github.com/jonasfranz) **Created:** 7/25/2017 **Status:** ✅ Merged **Merged:** 9/12/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `feature/timetracking` --- ### 📝 Commits (10+) - [`74774a4`](https://github.com/go-gitea/gitea/commit/74774a41c322db8c78cc0dc9ce92402e673bda13) Added comment's hashtag to url for mail notifications. - [`f385727`](https://github.com/go-gitea/gitea/commit/f385727aef6f0a777d7fedba56d701ff8b2a0b9e) Added comment's hashtag to url for mail notifications. - [`e05eb96`](https://github.com/go-gitea/gitea/commit/e05eb960a89631c6986c3f4a5096ff6a35b45c38) Added comment's hashtag to url for mail notifications. - [`5cb36ca`](https://github.com/go-gitea/gitea/commit/5cb36ca7bd650fda84a361febf3c26c77ef7f753) Added comment's hashtag to url for mail notifications. - [`2dd674e`](https://github.com/go-gitea/gitea/commit/2dd674e51dc120c70ca04f3153d246af35d5080b) Replacing in-line link generation with HTMLURL. (+gofmt) - [`716bf81`](https://github.com/go-gitea/gitea/commit/716bf811b4249215a49ac151f66d626cc32c4e44) Replaced action-based model with nil-based model. (+gofmt) - [`edaa576`](https://github.com/go-gitea/gitea/commit/edaa5761a6811eedde033d97f62c06aa96d591b1) Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. - [`b0e22ab`](https://github.com/go-gitea/gitea/commit/b0e22aba71e4988c42d6598c5da18d3110e64cd3) Updating comment for mailIssueCommentToParticipants - [`fd70385`](https://github.com/go-gitea/gitea/commit/fd7038577963b1c607c7388e769a4f833c53e01c) Merge branch 'master' of github.com:JonasFranzDEV/gitea - [`3c6d4fc`](https://github.com/go-gitea/gitea/commit/3c6d4fcb12688f7c7bcca58cd7f86f21a9b75cbd) Merge branch 'master' of https://github.com/JonasFranzDEV/gitea ### 📊 Changes **42 files changed** (+1522 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `conf/app.ini` (+6 -0) 📝 `integrations/html_helper.go` (+10 -0) ➕ `integrations/timetracking_test.go` (+74 -0) 📝 `models/error.go` (+44 -0) 📝 `models/fixtures/comment.yml` (+3 -0) 📝 `models/fixtures/issue.yml` (+13 -0) 📝 `models/fixtures/repo_unit.yml` (+2 -2) 📝 `models/fixtures/repository.yml` (+1 -1) ➕ `models/fixtures/stopwatch.yml` (+11 -0) ➕ `models/fixtures/tracked_time.yml` (+34 -0) 📝 `models/issue_comment.go` (+8 -1) ➕ `models/issue_stopwatch.go` (+170 -0) ➕ `models/issue_stopwatch_test.go` (+70 -0) ➕ `models/issue_tracked_time.go` (+117 -0) ➕ `models/issue_tracked_time_test.go` (+103 -0) 📝 `models/migrations/migrations.go` (+2 -0) 📝 `models/migrations/v16.go` (+4 -4) ➕ `models/migrations/v39.go` (+65 -0) 📝 `models/models.go` (+2 -0) 📝 `models/repo.go` (+17 -7) _...and 22 more files_ </details> ### 📄 Description Fix #967 This pullrequest adds a timetracking feature for issues. # Tracking methods ## Track by a stopwatch This is the easiest process. You simply click on "Start" at the time tracking section and click "Finish" if you finished your work. This will calculate the time difference between the start time and the end time. ![Start](https://user-images.githubusercontent.com/5757182/28551783-7a32bb94-70ea-11e7-85ee-fed4e6979a6c.png) ![Finish](https://user-images.githubusercontent.com/5757182/28551784-7b75e42c-70ea-11e7-8f86-64bb71d19215.png) ## Add time manual You could add time you tracked outside of gitea by clicking on the "+"-Button in the tracking section. This will open up a modal where you could enter the spent time. ![Modal](https://user-images.githubusercontent.com/5757182/28551850-d17f2de2-70ea-11e7-91cd-613a66d6dd69.png) # Time log ## Issue history Every time tracking action will be logged in the history of the issue. The partial times (per stopwatch / manually) are also logged. ![History](https://user-images.githubusercontent.com/5757182/28551906-268d624a-70eb-11e7-8903-9144dbd3171d.png) ## Total time spent At the sidebar is a list with the sum of time spent by every user who tracked his / her time. ![Total](https://user-images.githubusercontent.com/5757182/28551942-5fd2fb82-70eb-11e7-90d2-32c4a15bb97a.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:06:48 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16288