Complete an epic after all tickets are executed, generate report, and close in Jira
Completes epics by verifying ticket completion, generating comprehensive reports, updating documentation, and closing in Jira.
/plugin marketplace add Jeffallan/claude-skills/plugin install fullstack-dev-skills@fullstack-dev-skills<epic-key>project/retrospectives/Epic Key: $ARGUMENTS
This command completes an epic after all tickets have been executed:
/create-epic-plan <epic-key> → Creates Overview Document
↓
/create-implementation-plan <overview-doc-url> → Creates Implementation Plan
↓
/execute-ticket <ticket-key> → Executes individual tickets
↓
/complete-epic <epic-key> → Completes epic (YOU ARE HERE)
↓
/complete-sprint <sprint-folder> → Sprint retrospective
Fetch the epic from Jira using {Epic_Key}
Extract from epic:
{Epic_Title} - The epic title/name{Jira_Project} - The Jira project URLLocate documentation:
/Epics/In Progress/{Epic_Key}/FAILURE CONDITION - Missing Documentation:
If documentation cannot be found:
STOP and prompt the user:
I was unable to locate the required documents for epic {Epic_Key}.
Please provide:
1. Overview Document URL: [paste link]
2. Implementation Plan URL: [paste link]
DO NOT PROCEED until confirmed.
MANDATORY CHECKPOINT - Epic Completion Readiness:
Please confirm the following before proceeding with epic completion:
Epic: {Epic_Key} - {Epic_Title}
Total Tickets: [count]
Completed Tickets: [count]
In Progress: [count]
Blocked: [count]
Overview Document: {Overview_Document}
Implementation Plan: {Implementation_Plan}
Are all tickets complete and ready to close this epic? (Yes / No / Review)
DO NOT PROCEED if there are incomplete tickets without explicit user override.
Verify all tickets are complete:
FAILURE CONDITION - Incomplete Tickets:
If any tickets are not complete:
STOP and report:
Epic {Epic_Key} has incomplete tickets:
In Progress:
- [TICKET-KEY]: [Title] - Status: [status]
Blocked:
- [TICKET-KEY]: [Title] - Blocker: [reason]
To Do:
- [TICKET-KEY]: [Title]
Options:
A) Complete remaining tickets first
B) Move incomplete tickets to backlog and close epic
C) Extend epic deadline and keep open
What would you like to do? [A/B/C]
DO NOT PROCEED without user decision.
Review implementation quality:
Generate a comprehensive epic completion report with these sections:
| Ticket | Title | Points | Completed | Deviations |
|---|---|---|---|---|
| [KEY] | [title] | [pts] | [date] | [any deviations] |
Summary:
Compare planned risks (from Overview Document) with actual outcomes:
| Risk | Planned Level | Actual Impact | Mitigation Effectiveness |
|---|---|---|---|
| [Risk 1] | [Low/Med/High] | [description] | [Effective/Partial/Ineffective] |
Unexpected Risks Encountered:
MANDATORY CHECKPOINT - Documentation Updates:
Before updating documentation, present proposed changes:
## Proposed Documentation Updates
### 1. Overview Document Updates
I will add the following "Completion Report" section to {Overview_Document}:
[Show exact content to be added]
### 2. Move to Complete Folder
I will move the epic documentation from:
FROM: /Epics/In Progress/{Epic_Key}/
TO: /Epics/Complete/Sprint [N]/{Epic_Key}/
### 3. Update All Ticket Links
I will update all [count] tickets to point to the new location.
Proceed with these updates? (Yes / No / Modify)
DO NOT UPDATE documentation without explicit approval.
Publish Epic Completion Report:
Move documentation to complete:
/Epics/In Progress/{Epic_Key}/ to /Epics/Complete/Sprint [N]/{Epic_Key}/Update all tickets:
MANDATORY CHECKPOINT - Close Epic in Jira:
Ready to close epic {Epic_Key} in Jira?
This will:
- Set epic status to "Done"
- Update resolution to "Completed"
- Add completion comment with report link
Proceed? (Yes / No)
DO NOT CLOSE the epic without explicit approval.
Close epic in Jira:
Generate sprint folder reference:
Identify reusable patterns:
Share key learnings:
Update team documentation:
| Condition | Action |
|---|---|
| Epic not found | Error message, ask user to verify epic key |
| Incomplete tickets exist | Report incomplete tickets, wait for user decision |
| Documentation not found | Ask user for document locations |
| Cannot move Confluence pages | Ask user to move manually, provide instructions |
| Cannot close epic in Jira | Report error, provide manual instructions |
| Missing git history/PRs | Generate report with available data, note gaps |
When complete, you MUST provide:
## Epic Completion Successful!
**Epic:** {Epic_Key} - {Epic_Title}
### Summary
- Total Story Points: [planned] → [actual]
- Total Tickets: [count] completed
- Duration: [start date] → [end date] ([X] days)
- Test Coverage: [%] (target: 90%)
- Follow-up Tickets: [count] created
### Documentation
- **Completion Report:** {Completion_Report_URL}
- **Overview Document:** {Overview_Document} (updated)
- **Implementation Plan:** {Implementation_Plan}
- **New Location:** /Epics/Complete/Sprint [N]/{Epic_Key}/
### Key Deliverables
- [count] files created
- [count] files modified
- [count] unit tests added
- [count] integration tests added
- [count] E2E tests added
### Technical Debt
- [count] items identified (see completion report)
- [count] follow-up tickets created
### Lessons Learned (Top 3)
1. [Lesson 1]
2. [Lesson 2]
3. [Lesson 3]
### Next Steps
- Review follow-up tickets: [list tickets with links]
- Sprint folder ready for retrospective: /Epics/Complete/Sprint [N]/
- Run `/complete-sprint [N]` when sprint is complete
CRITICAL: The sprint folder location is needed for sprint retrospective.
Data Analysis: Analyze git history, PR data, and test coverage systematically.
Documentation Review: Review completion report for completeness and accuracy.
Quality Assessment: Evaluate test coverage, code quality, and technical debt objectively.
Knowledge Extraction: Identify patterns, learnings, and recommendations from the epic execution.
Process Analysis: Evaluate workflow efficiency and identify improvement opportunities.