Skip to content

Add labels for worktime type in time tracker #35425

@christophmatt1

Description

@christophmatt1

Feature Description

Currently, the time tracker in Gitea only records the duration of tracked work, but it does not provide a way to categorize or label the type of worktime (e.g. development, review, meeting, documentation).

I would like to propose adding a feature that allows labeling of time entries. This would make reporting and analytics much more meaningful.

Possible Implementation

From a database perspective, there are two possible approaches:

  1. Add a new table (e.g. time_tracker_label)
    • Stores label definitions for different types of worktime.
    • tracked_time entries would then reference this table via a foreign key.
  2. Extend the existing label table with an additional type enum
    • Define a new enum for label type (e.g. issue, pull_request, time_entry).
    • tracked_time entries would then be linked with the appropriate label via a new relation.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions