fetching-jira-ticket

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Fetching Jira Ticket

提取Jira工单

Purpose

用途

Dispatch the
ticket-retriever
subagent to extract every available field from a Jira ticket and its subtasks, then write a comprehensive Markdown snapshot to
docs/
. This file becomes the single source of truth for all downstream skills (planning, subtask creation, execution, validation).
This skill is a pure coordinator — it dispatches one subagent and reports the result. It never makes Jira API calls, reads files, writes files, or runs commands directly.
调度
ticket-retriever
子Agent从Jira工单及其子任务中提取所有可用字段,然后将完整的Markdown快照写入
docs/
目录。该文件将成为所有下游技能(规划、子任务创建、执行、验证)的唯一可信数据源。
本技能是纯协调器——它仅调度一个子Agent并上报结果,不会直接调用Jira API、读写文件或运行命令。

Inputs

输入

InputSourceRequiredExample
TICKET_KEY
User /
$ARGUMENTS
Yes
JNS-6065
JIRA_URL
User (optional)No
https://vukaheavyindustries.atlassian.net/browse/JNS-6065
If the user provides a full URL, pass it along to the subagent which will extract the ticket key from it.
输入来源必填示例
TICKET_KEY
用户 /
$ARGUMENTS
JNS-6065
JIRA_URL
用户(可选)
https://vukaheavyindustries.atlassian.net/browse/JNS-6065
如果用户提供了完整URL,将其传递给子Agent,子Agent会从中提取工单key。

Output

输出

A Markdown file at:
docs/<TICKET_KEY>.md
Markdown文件路径:
docs/<TICKET_KEY>.md

Output contract (consumed by downstream skills)

输出契约(供下游技能使用)

Every section below must appear in the output file. If a section has no data, the subagent keeps the heading and writes
_None_
beneath it — never omits a heading. Downstream skills parse these headings programmatically, so missing headings break the pipeline.
SectionRequired byWhy
## Metadata
table
planning-jira-tasksTask decomposition needs ticket context
## Description
planning-jira-tasksPrimary source for requirements
## Acceptance Criteria
planning-jira-tasks, task-validatorMaps to Definition of Done
## Comments
planning-jira-tasksContains decisions and clarifications
## Subtasks
planning-jira-tasks, creating-jira-subtasksAvoids duplicating existing work
## Linked Issues
planning-jira-tasksDependency and context awareness
## Attachments
executing-jira-taskImplementation reference
## Custom Fields
planning-jira-tasksMay contain acceptance criteria
以下所有部分必须出现在输出文件中。如果某个部分没有数据,子Agent会保留标题并在下方填写
_None_
——不得省略任何标题。下游技能会通过编程方式解析这些标题,因此缺失标题会导致流水线中断。
部分被以下模块依赖用途
## Metadata
表格
planning-jira-tasks任务拆解需要工单上下文
## Description
planning-jira-tasks需求的主要来源
## Acceptance Criteria
planning-jira-tasks, task-validator对应完成定义
## Comments
planning-jira-tasks包含决策和澄清内容
## Subtasks
planning-jira-tasks, creating-jira-subtasks避免重复现有工作
## Linked Issues
planning-jira-tasks感知依赖和上下文
## Attachments
executing-jira-task实现参考
## Custom Fields
planning-jira-tasks可能包含验收标准

Subagent Registry

子Agent注册表

SubagentPathPurpose
ticket-retriever
./subagents/ticket-retriever.md
End-to-end: retrieves all data, assembles document, writes, validates
Before dispatching, read the subagent file to understand its input/output contract. The path is relative to this skill's directory.
子Agent路径用途
ticket-retriever
./subagents/ticket-retriever.md
端到端执行:提取所有数据、组装文档、写入、验证
调度前请阅读子Agent文件以了解其输入输出契约,路径是相对于本技能目录的相对路径。

Multi-Platform MCP Compatibility

多平台MCP兼容性

Jira data is accessed through MCP tools, but the specific tool names and interfaces vary across platforms (Cursor, Claude Code, OpenCode). The
ticket-retriever
subagent handles MCP tool discovery internally — this skill does not need to know which tools are available.
Jira数据通过MCP工具访问,但不同平台(Cursor、Claude Code、OpenCode)的具体工具名称和接口存在差异。
ticket-retriever
子Agent会内部处理MCP工具发现——本技能不需要知道可用工具的具体信息。

Execution Steps

执行步骤

1. Dispatch
ticket-retriever

1. 调度
ticket-retriever

Read
./subagents/ticket-retriever.md
and dispatch the subagent with:
  • TICKET_KEY
    — the ticket key extracted from the user's input.
  • JIRA_URL
    — if the user provided a full URL, include it.
The subagent handles everything end-to-end:
  • Validates the input format.
  • Discovers available Jira MCP tools.
  • Retrieves all parent ticket fields, comments, attachments metadata.
  • Retrieves all subtasks and linked issues (full details, regardless of count).
  • Handles pagination, auth errors, and rate limits.
  • Runs
    mkdir -p docs
    .
  • Assembles the document using the standardised template.
  • Writes to
    docs/<TICKET_KEY>.md
    .
  • Validates the output (all sections present, counts match).
  • Cleans up any temporary files.
  • Returns a concise summary.
读取
./subagents/ticket-retriever.md
并使用以下参数调度子Agent:
  • TICKET_KEY
    ——从用户输入中提取的工单key。
  • JIRA_URL
    ——如果用户提供了完整URL则包含该参数。
子Agent会端到端处理所有流程:
  • 验证输入格式。
  • 发现可用的Jira MCP工具。
  • 提取所有父工单字段、评论、附件元数据。
  • 提取所有子任务和关联工单(完整详情,不受数量限制)。
  • 处理分页、鉴权错误和速率限制。
  • 运行
    mkdir -p docs
    命令。
  • 使用标准化模板组装文档。
  • 写入到
    docs/<TICKET_KEY>.md
    路径。
  • 验证输出(所有章节存在、数量匹配)。
  • 清理所有临时文件。
  • 返回简洁的汇总信息。

2. Handle the result

2. 处理结果

Collect the subagent's summary. Check the summary for errors:
  • If the subagent reports a fatal error (ticket not found, auth failure): relay the error to the user and stop.
  • If the subagent reports validation FAIL: relay the validation details to the user. Offer to retry.
  • If validation PASS: proceed to step 3.
收集子Agent的汇总信息,检查汇总中的错误:
  • 如果子Agent报告致命错误(工单未找到、鉴权失败):将错误转达给用户并停止执行。
  • 如果子Agent报告验证失败:将验证详情转达给用户,提供重试选项。
  • 如果验证通过:进入第3步。

3. Report to the user

3. 向用户反馈

Using ONLY the information from the subagent's summary, tell the user:
  • The file path written (e.g.,
    docs/JNS-6065.md
    ).
  • A short summary: ticket title, status, number of comments, number of subtasks and linked issues retrieved.
  • Any retrieval errors or warnings.
  • Remind the user this is retrieval only — no ticket modifications, no branches, no code, no implementation.
仅使用子Agent汇总中的信息告知用户以下内容:
  • 写入的文件路径(例如
    docs/JNS-6065.md
    )。
  • 简短汇总:工单标题、状态、评论数量、提取到的子任务和关联工单数量。
  • 任何提取错误或警告。
  • 提醒用户本功能仅执行提取操作——不会修改工单、创建分支、编写代码或进行任何实现操作。

Execution Rules

执行规则

  1. Delegate everything. This skill dispatches the
    ticket-retriever
    subagent and reports its summary. It never makes Jira API calls, reads files, writes files, or runs commands directly.
  2. Do not load raw data. The subagent's summary is the only data this skill processes. Never ask the subagent to return file contents or raw API responses.
  3. Retrieve only. Do not modify the Jira ticket. Do not start implementation, create branches, write code, or propose solutions.
  4. Fail gracefully. If the subagent reports partial failures (some subtasks could not be retrieved), relay the specifics to the user but do not treat partial success as a fatal error.
  1. 所有任务委托执行。本技能仅调度
    ticket-retriever
    子Agent并上报其汇总结果,绝不会直接调用Jira API、读写文件或运行命令。
  2. 不加载原始数据。本技能仅处理子Agent的汇总信息,绝不要求子Agent返回文件内容或原始API响应。
  3. 仅执行提取操作。不得修改Jira工单,不得启动实现、创建分支、编写代码或提出解决方案。
  4. 优雅失败。如果子Agent报告部分失败(部分子任务无法提取),将具体信息转达给用户,但不要将部分成功视为致命错误。