Implemented comprehensive burndown chart data calculation for sprint progress tracking.
Features:
- Created BurndownChartDto with ideal and actual burndown data points
- Implemented GetSprintBurndownQuery and Handler
- Added ideal burndown calculation (linear decrease)
- Implemented actual burndown based on task completion dates
- Calculated completion percentage
- Added GET /api/v1/sprints/{id}/burndown endpoint
Technical Details:
- MVP uses task count as story points (simplified)
- Actual burndown uses task UpdatedAt as completion date approximation
- Ideal burndown follows linear progression from total to zero
- Multi-tenant isolation enforced through existing query filters
Future Enhancements (Phase 2):
- Add StoryPoints property to WorkTask entity
- Use audit logs for exact completion timestamps
- Handle scope changes (tasks added/removed mid-sprint)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
263 B
C#
9 lines
263 B
C#
using MediatR;
|
|
|
|
namespace ColaFlow.Modules.ProjectManagement.Application.Queries.GetSprintBurndown;
|
|
|
|
/// <summary>
|
|
/// Query to get burndown chart data for a sprint
|
|
/// </summary>
|
|
public record GetSprintBurndownQuery(Guid SprintId) : IRequest<BurndownChartDto?>;
|