Skip to content

Rollover incomplete tickets to active sprint on review completion#25

Open
clawdina wants to merge 1 commit intoKeeeeeeeks:mainfrom
clawdina:fix/kanban-card-layout
Open

Rollover incomplete tickets to active sprint on review completion#25
clawdina wants to merge 1 commit intoKeeeeeeeks:mainfrom
clawdina:fix/kanban-card-layout

Conversation

@clawdina
Copy link
Contributor

Summary

  • Auto-rollover on sprint review: When a sprint is marked as reviewed + completed, all pending/in_progress/blocked (non-archived) tickets are automatically assigned to the current active sprint
  • Adds rolloverIncompleteTodos(fromSprintId, toSprintId) DB method
  • PATCH /api/sprints/[id] triggers rollover when reviewed_at + status: completed are set, using getActiveSprint()rotateSprintIfNeeded() fallback
  • Response includes rolled_over count for visibility

Changes

  • src/lib/db/index.ts — new rolloverIncompleteTodos method
  • src/lib/db/types.ts — interface addition
  • src/app/api/sprints/[id]/route.ts — rollover trigger in PATCH handler

- Add rolloverIncompleteTodos(from, to) DB method: moves pending/in_progress/blocked
  non-archived todos to the target sprint
- PATCH /api/sprints/[id]: when reviewed_at + status=completed, auto-rollover to
  active sprint (via getActiveSprint or rotateSprintIfNeeded)
- Returns rolled_over count in response for visibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant