Close sprint & generate reports
close_sprintClose a sprint and generate audience-specific close-out reports for marketing, sales, technical, and executive teams. Handles open tickets with rollover options: review, auto, or off.
Instructions
Close a sprint and generate four audience-specific close-out reports (marketing, sales, technical, executive) from its tickets, work log, and metrics (velocity, tokens, $ cost, ADRs touched, CRM ticket links). Refuses to close while the sprint still has open (non-Done) tickets unless force:true. Writes reports//.md pads under the project and returns their paths, a metric summary, and a per-audience LLM prompt (packet + brief) for richer draft copy. Posts a Slack summary when the project has Slack configured (never fails the close on a Slack error). Also handles the sprint's remaining open tickets per rolloverMode (FBMCPF-197): 'review' (default) returns a categorized rollover plan without moving anything; 'auto' retags P0/P1 tickets into nextSprint (or flags them rollover-pending if no nextSprint given), labels P2/P3 tickets rollover-candidate for human review, and drops the sprint label from P4+/unprioritized tickets back to the backlog; 'off' skips rollover handling entirely. The result's existing shape is unchanged — rollover info is added as a rollover section.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Close even if some tickets are still open (they are reported as carryover). | |
| sprint | Yes | Sprint name (its sprint:<name> label). | |
| project | Yes | ||
| nextSprint | No | Sprint name P0/P1 tickets roll into under rolloverMode 'auto' (created/registered if it doesn't exist yet). | |
| rolloverMode | No | How to handle tickets still open when the sprint closes. 'review' (default): categorized rollover plan only, nothing moves. 'auto': P0/P1 -> nextSprint (or rollover-pending flag if no nextSprint); P2/P3 -> rollover-candidate label; P4+/unprioritized -> dropped back to backlog. 'off': no rollover handling (legacy behavior). |