Jira CLIs use --resolution flag (go-jira, jira-cli). Adding this as a hidden alias improves agent ergonomics - LLMs have a prior for this flag. Follows same pattern as --body alias for --description (GitHub CLI). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
529 B
Plaintext
17 lines
529 B
Plaintext
# Test bd close --resolution alias (GH#721)
|
|
# Jira CLI convention: --resolution instead of --reason
|
|
bd init --prefix test
|
|
|
|
# Create issue
|
|
bd create 'Issue to close with resolution'
|
|
cp stdout issue.txt
|
|
exec sh -c 'grep -oE "test-[a-z0-9]+" issue.txt > issue_id.txt'
|
|
|
|
# Close using --resolution alias
|
|
exec sh -c 'bd close $(cat issue_id.txt) --resolution "Fixed via resolution alias"'
|
|
stdout 'Closed test-'
|
|
|
|
# Verify close_reason is set correctly
|
|
exec sh -c 'bd show $(cat issue_id.txt) --json'
|
|
stdout 'Fixed via resolution alias'
|