---
id: task-002
title: Add actualHours tracking and time estimation reporting
status: To Do
assignee: []
created_date: '2025-12-26 01:50'
labels:
  - feature
  - time-tracking
dependencies: []
priority: medium
---

## Description

<!-- SECTION:DESCRIPTION:BEGIN -->
Continue the time tracking and estimation feature set:

1. **actualHours field**: Add ability to track actual hours spent on completed tasks
   - Add `actualHours` field to Task type
   - Add CLI support (`--actual-hours` flag)
   - Add MCP support
   - Add web UI input in TaskDetailsModal
   
2. **Velocity/Estimation Reporting**:
   - Add estimated vs actual hours comparison in Statistics
   - Show total estimated hours for backlog
   - Show estimation accuracy metrics
   - Add to velocity dashboard

3. **Integration possibilities**:
   - Time tracking tool integrations (Toggl, etc.)
   - Invoicing data export
   - Project estimation roll-ups
<!-- SECTION:DESCRIPTION:END -->

## Acceptance Criteria
<!-- AC:BEGIN -->
- [ ] #1 actualHours field added to Task type
- [ ] #2 CLI --actual-hours flag working
- [ ] #3 Web UI shows actual hours input
- [ ] #4 Statistics page shows estimated vs actual comparison
- [ ] #5 Tests for actualHours functionality
<!-- AC:END -->
