kan icon indicating copy to clipboard operation
kan copied to clipboard

[feat] Time tracking

Open wwojciechp opened this issue 10 months ago • 6 comments

✨ Feature Request

Is your feature request related to a problem? Please describe. Currently, there is no way to define an estimated time for a task or to track the actual time spent on it by individual team members on the Kanban board. This makes planning more difficult and limits visibility into workload distribution and the difference between estimated and actual effort.

Describe the solution you'd like I would like each task on the Kanban board to support:

an estimated time to complete the task (e.g. in hours),

tracking of time spent on the task by individual users,

automatic aggregation of the total time spent across all users,

displaying the total time spent next to the task (e.g. on the task card or directly on the board).

Describe alternatives you've considered An alternative is using external time-tracking tools or manually logging time in task comments. However, these approaches are inconvenient, fragmented, and require additional manual effort.

Additional context This feature would be especially useful for teams working in sprints, where comparing estimates with actual time spent and improving future planning is important.

Implementation ideas (optional)

“Estimated time” field (numeric value + time unit) in the task editor

Ability to add time entries associated with a specific user

Automatic summation of time entries and display of total time spent

Optionally: visual comparison of estimated vs actual time (e.g. progress bar or color indicator)

Would you like to work on this feature?

No, I'm just suggesting the feature

wwojciechp avatar Jan 14 '26 09:01 wwojciechp

Sounds sensible @wwojciechp

Because there's many flavours of estimations (time, score, size etc.) I wonder if this would be better suited as a custom field?That would allow you to tailor it your specific style. What do you think?

hjball avatar Jan 22 '26 20:01 hjball

Using a universal style that the user can customize to their needs will generate greater interest among recipients. Personally, the most natural unit for me is time, measured in minutes, hours, etc., and its ability to be planned and visualized in the form of a progress bar and summarized for a given task and the entire board, status, etc. In summary, this could be a custom field with a unit customized by the user, e.g., in the board's settings. I suggest setting minutes and hours as the default.

wwojciechp avatar Jan 22 '26 20:01 wwojciechp

Could we use Story Points instead? Or at least have the various default "measurements", such as "t-shirt sizes", "story points", "time", or any other popular flavor.

Hi! We are currently moving our teams from Trello to Kan. We use Everhour for time tracking there and already have a substantial worklog history, so keeping this workflow is an important part of the move.

The basic model has worked well for our teams: a timer, manual time entries, per-card totals and history, and a board-wide report with export. We would like to preserve that experience in Kan rather than ask everyone to change how they record their work during the migration.

We are planning to build this in our fork either way because it is a product requirement for us. That said, we would much rather make it fit Kan well from the start. If maintainers or other contributors have thoughts about the data model, permissions, UX, or a better way to split the work, we will be happy to take them into account while implementing it.

One distinction seems useful in the discussion above: estimates and actual time probably need different models. An estimate can work as a custom field because it is a value attached to a card. Actual time is a history of entries with a member, date, duration and optional comment, while a running timer also needs server-side state. A custom field alone would lose that history and attribution.

Our current first-pass scope is:

  • enable time tracking per board;
  • add, edit and remove manual entries;
  • start and stop one active timer per user;
  • show totals and entry history on a card;
  • respect workspace permissions, with users managing their own entries and managers able to add or correct entries for other members;
  • provide a board report and CSV export;
  • keep time queries separate from the existing board and card payloads.

Estimates, billing, budgets, invoicing and automatic timers are outside this first version.

We will share a link to the fork once the implementation is ready enough to evaluate. In the meantime, feedback on the direction and on whether this would be easier to review as several focused PRs or one feature PR would be very welcome.

bionicman avatar Sep 01 '26 11:09 bionicman

@hjball, the first version is now ready to evaluate in our fork:

https://github.com/habralab/kan/tree/feat/time-tracking

It follows the scope described above: board-level opt-in, manual entries, a personal timer, card history and totals, workspace permissions, a board report, and CSV export. The data model and UI use generic worklog/time-tracking terms; the Everhour importer we use for our migration is separate and is not part of the proposed contribution.

We have exercised it against a production-sized imported dataset as well as unit, repository, and browser tests. Screenshots and the user guide are ready for the PR.

Before opening it, could you confirm that this is a feature you would be willing to review? The implementation is one vertical feature at the moment, but we can split it if that would make the review easier.

Board and card workflow

Board overview with time tracking enabled

Card worklogs filtered to one member

Board report

Board-wide time report

Permissions and CSV export

Workspace time-tracking permissions

Analysis-friendly CSV export

bionicman avatar Sep 03 '26 14:09 bionicman

I opened a separate issue for the completed worklog and timer implementation because it is ready for review and may differ from the estimates and custom-field direction intended here: #584

bionicman avatar Sep 04 '26 17:09 bionicman