AgentSkillsCN

jira-progress

当工单的工作进展达到阶段性节点时使用——开始着手处理、提交审核、完成任务、遭遇阻塞,或重新开启工单。一次性完成状态转换、评论更新与字段信息的修改。

SKILL.md
--- frontmatter
name: jira-progress
description: >
  Use when work on a ticket has reached a stage boundary — started working,
  sent for review, completed, blocked, or reopened. Handles status transition,
  comment, and field updates in one pass.

Update Ticket by Workflow Stage (ACLI)

Transitions a ticket's status and adds a meaningful comment describing what happened — all in one pass. The comment is the valuable part; a bare status change is cheap.

Stages

StageUser saysStatusComment guidance
start"start working on", "pick up"→ In ProgressWhat you're about to do
review"send for review", "ready for review"→ In ReviewWhat was done, what to review
done"mark as done", "complete", "finished"→ DoneSummary of what was accomplished
block"blocked on", "stuck"→ BlockedWhat the blocker is and who can unblock
reopen"reopen", "needs more work"→ To DoWhy it's being reopened

Procedure

  1. Determine the stage from the user's intent using the table above
  2. Transition status:
code
acli jira workitem transition --key "KEY-123" --status "In Progress" --yes
  1. Add a comment — compose from context, not a canned string:
code
acli jira workitem comment-create --key "KEY-123" --body "Started work on the API refactor — focusing on the auth endpoints first"
  1. Update fields if relevant (e.g., claim assignee on start):
code
acli jira workitem edit --key "KEY-123" --assignee "user@email.com" --yes
  1. Confirm: KEY-123: To Do → In Progress | Comment added

Status names are project-specific. If a transition fails, report the error — the status name may differ in the user's workflow.

Error Handling

If ACLI returns exit code != 0:

  • "authentication failed" → Tell user: acli jira auth login --web --site <site>.atlassian.net
  • "command not found: acli" → Tell user: brew tap atlassian/homebrew-acli && brew install acli
  • Invalid status/transition → Report error, suggest checking available statuses
  • "trace id:" prefix → Unexpected server error, report trace ID
  • Other → Report raw error message