Complete a ticket after execution - transitions Jira to "In Review" and updates the implementation plan
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-bc1b297aec31 ,按照其中的说明把「complete-ticket」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Purpose: Finalize a ticket after /execute-ticket by transitioning Jira and updating the implementation plan.
If argument provided: Use $ARGUMENTS as the ticket key.
If no argument: Look back in the conversation for:
/execute-ticket)If ticket cannot be identified:
I couldn't identify which ticket to complete. Please provide the ticket key:
/complete-ticket <ticket-key>
From the Jira ticket:
From conversation context:
| Field | Source |
|---|---|
| Ticket Key | From argument or recent /execute-ticket |
| Changes Made | From the completion summary presented |
| Files Modified | From the completion summary |
| Tests Added | From the completion summary |
| Deviations | Any approved deviations discussed |
| Follow-up Tickets | Any tickets created during implementation |
If completion summary not found in context:
I couldn't find a completion summary in this conversation.
Please either:
1. Run `/execute-ticket {ticket-key}` first
2. Provide a brief summary of what was done
If Implementation Plan URL not in ticket:
The ticket doesn't have an Implementation Plan URL.
Please provide the Implementation Plan URL to update:
Present a brief confirmation:
## Ready to Complete {Ticket_Key}
**Changes to make:**
- Transition Jira to "In Review"
- Update implementation plan with completion details
**Summary extracted from context:**
- Files modified: [count]
- Tests added: [count]
- Deviations: [Yes/None]
- Follow-up tickets: [Yes/None]
Proceed? (Yes / No)
Wait for user confirmation before proceeding.
4a. Transition Jira ticket to "In Review"
Use: jira_get_transitions to find "In Review" transition ID
Use: jira_transition_issue to transition the ticket
4b. Update the Implementation Plan in Confluence
Fetch the current implementation plan page and update:
Completion Status table - Add row: | Ticket | Status | Completed Date | Notes | | [ticket] | ✅ Complete | [today's date] | [brief summary] |
Execution Order table - Update ticket's Status column to "✅ Complete"
Parallel Execution Strategy wave table - Update ticket's Status to "✅ Complete"
Add Completion Details section:
## {Ticket_Key} Completion Details
**Completed:** [date]
### Changes Made
* [extracted from summary]
### Tests Added
* [extracted from summary]
### Deviations
[Any deviations, or "None"]
### Follow-up Tickets
[Any follow-up tickets, or "None"]
## {Ticket_Key} Completed
- [x] Jira transitioned to "In Review"
- [x] Implementation plan updated (version N)
**Next steps:**
- Create git commit using the suggested commit message
- Create PR when ready
If Jira transition fails:
If Confluence update fails:
If implementation plan URL not found:
This command can be used standalone (without prior /execute-ticket) if the user provides details:
/complete-ticket CC-123
If no context is available, prompt user for: