Reports
Reports provide project-level analytics and data export capabilities for tracking progress and team performance.
API Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/projects/:id/report | Project report with task statistics |
GET | /api/projects/:id/export/csv | Export tasks as CSV file |
Project Report
The project report endpoint returns aggregate statistics:
- Total tasks by status (todo, in_progress, in_review, done, cancelled)
- Task completion rate
- Tasks by priority
- Tasks by assignee
- Overdue tasks count
- Time tracking summary (total estimated vs. logged)
CSV Export
Exports all project tasks as a CSV file with columns:
- ID, Title, Status, Priority, Assignee, Due Date, Created, Sprint, Tags
- Estimated minutes, logged minutes
- Custom field values
Frontend
typescript
const store = useReportsStore()
await store.fetchProjectReport(projectId)
await store.exportCsv(projectId)