home / skills / thebushidocollective / han / complete
This skill marks a Jira ticket as complete after validating acceptance criteria and documenting the completion summary.
npx playbooks add skill thebushidocollective/han --skill completeReview the files below or copy the command above to add this skill to your agents.
---
name: complete
description: Mark a Jira ticket as complete after validating acceptance criteria
---
# complete
## Name
jira:complete - Mark a Jira ticket as complete after validating acceptance criteria
## Synopsis
```
/complete [arguments]
```
## Description
Mark a Jira ticket as complete after validating acceptance criteria
## Implementation
Complete a Jira ticket by validating acceptance criteria and transitioning to Done.
**Usage**: `/complete PROJ-123`
**Steps**:
1. Use `atlassian_get_issue` to fetch ticket details including description and comments
2. Extract acceptance criteria from description
3. Display each criterion and ask user to confirm completion
4. If all confirmed:
- Use `atlassian_add_comment` to add completion summary
- Use `atlassian_transition_issue` to transition to "Done"
5. If any not confirmed:
- List incomplete criteria
- Keep ticket in current status
- Suggest next steps
**Display Format**:
```
ā
Completing PROJ-123: {summary}
š Acceptance Criteria Validation:
1. ā {criterion 1} - COMPLETE
2. ā {criterion 2} - COMPLETE
3. ā {criterion 3} - INCOMPLETE
4. ā {criterion 4} - COMPLETE
ā Cannot complete: 1 criterion not met
- {criterion 3}
Suggestion: Complete remaining criteria before marking as Done.
```
Only transition to Done if ALL criteria are validated.
This skill marks a Jira ticket as complete after validating its acceptance criteria. It fetches the ticket, extracts acceptance criteria, prompts for validation, and only transitions the issue to Done when every criterion is confirmed. If any criterion remains unmet, it lists gaps and suggests next steps instead of closing the ticket.
The skill retrieves the issue details and comments using the Jira API, then parses the issue description to extract acceptance criteria. It presents each criterion for manual confirmation; when the user confirms all criteria are satisfied, the skill posts a completion comment and transitions the issue to the Done status. If any criteria are unconfirmed, it reports incomplete items and leaves the ticket in its current state while suggesting remediation steps.
What happens if one acceptance criterion is not met?
The skill lists incomplete criteria, leaves the ticket in its current status, and suggests next steps instead of transitioning to Done.
Does the skill automatically infer acceptance criteria from comments?
It primarily extracts criteria from the issue description; comments may be fetched for context but explicit criteria should be in the description for reliable validation.