Calls Jira Server/Data Center REST API v2 via a bundled Python CLI to query, create, edit, transition, and delete issues, epics, sub-tasks, comments, attachments, links, watchers, votes, and worklogs, plus saved filters, projects, fields, boards, and sprints. Preserves Jira wiki markup and supports precise request/output control.
Ships in dcjanus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
使用本 skill 自带的 scripts/jira_cli.py。当前契约面向 Jira Server/Data Center 8.20.6,不支持 Jira Cloud API v3 或 ADF。
默认配置文件为 ~/.config/jira-cli/config.toml。使用 config set 创建或修改配置:
./scripts/jira_cli.py config set --default-project SATOS
./scripts/jira_cli.py config set --server https://jira.example --prompt-token
./scripts/jira_cli.py config show
配置文件权限固定为 0600。已有配置只会在显式执行 config set 时更新。
环境变量和全局选项可以临时覆盖配置,但不会反写 TOML:
JIRA_SERVERJIRA_API_TOKENJIRA_USERNAMEJIRA_AUTH_TYPEJIRA_TIMEOUTJIRA_DANGEROUSLY_ALLOW_HTTPJIRA_DANGEROUSLY_DISABLE_TLS_VERIFICATION默认只允许 HTTPS 并校验 TLS。只有用户明确要求时才使用
--dangerously-allow-http 或 --dangerously-disable-tls-verification;前者会让凭据明文传输。
临时 token 只通过 JIRA_API_TOKEN 传入,不接受可能进入 shell history 和进程参数的
--token。
全局选项放在子命令之前:
./scripts/jira_cli.py --json user me
./scripts/jira_cli.py --json issue get SATOS-261728
--json 保留 Jira 原始响应结构,适合 Agent 和脚本处理。--description-file 或 --body-file 传递。rm -- <明确路径> 用 && 串行执行。写操作失败时保留文件,
不要使用 ; 无条件删除,也不要用变量、通配符或目录作为清理目标。用户提供的文件、
附件和后续操作仍需复用的文件不得自动清理。--field KEY=JSON_OR_TEXT。./scripts/jira_cli.py --json user me 获取当前 Jira 认证身份。不得根据会话称呼、
记忆中的邮箱、本机用户名或其它系统身份猜测 Jira 账号;除非任务确有必要,
回复和持久化内容中只使用完成操作所需的最少身份信息。Issue Description、Comment 和 Worklog Comment 均按 Jira wiki markup 原样发送;CLI 不做正文格式转换。使用下面这组高频 Jira wiki markup:
h3. 调查结论
*重要结论*、_需要强调_、{{inline_code}}
* 第一项
** 嵌套项
# 第一步
## 子步骤
||字段||值||
|状态|完成|
bq. 单段引用
{quote}
多段引用
{quote}
[RCA-SRE-22950|https://dems.example/task-centre/tasks/RCA-SRE-22950]
[^report.txt]
[~username]
{noformat}
保留原始格式,不解析 *强调* 等语法
{noformat}
{code:python}
print("hello")
{code}
链接使用 [显示文本|URL]。空行开始新段落,\\ 强制换行,---- 插入水平线;
使用反斜杠转义后续特殊字符。必要时可使用 {panel:title=标题}...{panel} 和
!image.png|thumbnail!。
Jira 管理员可以按字段配置 renderer,插件也可能增减宏。需要完整或实例特定语法时,
读取当前 Jira 的
/secure/WikiRendererHelpAction.jspa?section=all。
./scripts/jira_cli.py server-info
./scripts/jira_cli.py user search [email protected]
./scripts/jira_cli.py project list
./scripts/jira_cli.py project versions SATOS
./scripts/jira_cli.py metadata fields
./scripts/jira_cli.py metadata issue-types
./scripts/jira_cli.py metadata create --project SATOS --type Task
./scripts/jira_cli.py filter favourites
./scripts/jira_cli.py filter get 157700
./scripts/jira_cli.py issue list --jql 'assignee = currentUser() ORDER BY updated DESC'
./scripts/jira_cli.py board list --project SATOS
./scripts/jira_cli.py sprint list 12345
状态名称依赖真实 Workflow。流转前先查合法 transition,不猜测:
./scripts/jira_cli.py issue transitions SATOS-261728
./scripts/jira_cli.py issue move SATOS-261728 'Mark as Done' \
--field 'resolution={"name":"Done"}'
未封装的查询可使用只读逃生口;路径必须以 rest/ 开头,不支持任意写请求:
./scripts/jira_cli.py api get rest/api/2/priority
./scripts/jira_cli.py api get rest/api/2/search --param 'jql=project = SATOS'
filter favourites 使用 Jira Server 8.20 的公开
GET /rest/api/2/filter/favourite 接口,只返回当前认证用户收藏且有权查看的 Filter;
结果不等于当前用户拥有的全部 Filter。当前版本没有列出 owned Filter 的公开 REST
接口;不得把 Favorite 结果按 owner 过滤后宣称为完整 owned 列表,也不要改用 Jira
内部接口或 HTML 抓取。
./scripts/jira_cli.py filter favourites
./scripts/jira_cli.py --json filter favourites --expand owner --expand sharePermissions
./scripts/jira_cli.py --json filter get 157700
./scripts/jira_cli.py issue list --jql 'filter = 157700'
filter get 返回当前用户有权查看的指定 Filter,包括其 JQL。要检索 Filter 对应的
Issue,继续使用 issue list --jql 'filter = FILTER_ID',不在 CLI 中引入额外作用域
或层级展开语义。
创建 Task 或 Sub-task:
./scripts/jira_cli.py issue create \
--type Task \
--summary '中文任务标题' \
--description-file /tmp/description.txt \
&& rm -- /tmp/description.txt
./scripts/jira_cli.py issue create \
--type Sub-task \
--parent SATOS-261716 \
--summary '中文子任务标题'
编辑、指派和 clone:
./scripts/jira_cli.py issue edit SATOS-261728 --summary '新的标题'
./scripts/jira_cli.py issue edit SATOS-261728 --set-label reviewed
./scripts/jira_cli.py issue assign SATOS-261728 '[email protected]'
./scripts/jira_cli.py issue clone SATOS-261728 --summary '复制后的标题' \
--field customfield_10001='复制后的 Epic 名称'
issue edit 的 --set-label、--set-component 和 --set-fix-version
会替换对应字段的完整集合;追加或移除单项时应先读取 Issue,再显式提交完整目标集合。
clone 会依据 Jira create metadata 复制无默认值的必填字段;目标项目缺少可复用值时,
使用 --field KEY=VALUE 显式提供。
Epic 使用配置中的 epic_name_field 和 epic_link_field:
./scripts/jira_cli.py epic create --summary 'Epic 标题' --epic-name '简短名称'
./scripts/jira_cli.py epic add SATOS-100 SATOS-101 SATOS-102
./scripts/jira_cli.py epic remove SATOS-100 SATOS-101 SATOS-102
epic add 不会默认覆盖 Issue 已有的其他 Epic 归属;确认需要移动时显式传
--allow-move。epic remove 的第一个参数是预期 Epic,只有当前归属匹配时才会移除。
评论正文遵循上面的 Jira wiki markup 规则;外部资源使用带简洁显示文本的链接。
./scripts/jira_cli.py comment add SATOS-261728 --body-file /tmp/comment.txt \
&& rm -- /tmp/comment.txt
./scripts/jira_cli.py comment edit SATOS-261728 22384028 --body-file /tmp/comment.txt
./scripts/jira_cli.py comment list SATOS-261728
Issue link 和外部链接分别使用 link、remote-link:
./scripts/jira_cli.py link types
./scripts/jira_cli.py link add SATOS-1 SATOS-2 --type Relates
./scripts/jira_cli.py link delete 123 --inward-issue SATOS-1 \
--outward-issue SATOS-2 --yes
./scripts/jira_cli.py remote-link add SATOS-1 --title 'MR !38' --url https://git.example/mr/38
./scripts/jira_cli.py remote-link upsert SATOS-1 --global-id mr-38 \
--title 'MR !38' --url https://git.example/mr/38
./scripts/jira_cli.py attachment add SATOS-1 /tmp/evidence.txt
./scripts/jira_cli.py attachment delete SATOS-1 123 --filename evidence.txt --yes
./scripts/jira_cli.py watcher list SATOS-1
./scripts/jira_cli.py watcher add SATOS-1 '[email protected]'
./scripts/jira_cli.py vote get SATOS-1
./scripts/jira_cli.py worklog add SATOS-1 --time-spent 30m --comment '排查问题'
Worklog 默认使用 --adjust-estimate leave,不会隐式修改 Remaining Estimate。
需要联动估时时可显式选择 auto、new 或 manual;new 搭配
--new-estimate,新增时的 manual 搭配 --reduce-by,删除时搭配
--increase-by。
使用各命令的 --help 查看完整参数。
user me 解析当前 Jira
认证身份后再写入,不得从其它上下文推断;用户明确指定其他 Jira 用户时,使用
user search 核实目标账号。--yes。--delete-subtasks。config show 只展示遮蔽值。agents/openai.yaml (opens in a new tab)scripts/jira_api_client.py (opens in a new tab)scripts/jira_cli.py (opens in a new tab)scripts/jira_config.py (opens in a new tab)scripts/tests/test_jira_api_client.py (opens in a new tab)scripts/tests/test_jira_cli.py (opens in a new tab)scripts/tests/test_jira_config.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/dcjanus-dcjanus-plugins-dcjanus:jira-clifrom dcjanus
Generated from the plugin's indexed repository (dcjanus/prompts) — no native marketplace selected
npx claudepluginhub p/dcjanus-dcjanus-plugins-dcjanus27 skills in this plugin
/codex-thread-close-check检查当前 Codex thread(会话)是否还有遗留事项,适用于用户准备关闭、归档当前对话,或询问当前 thread 是否可以收尾时。/codex-thread-namer为当前 Codex thread 设置名称;仅当用户手动调用或明确要求命名、重命名、整理当前 Codex 会话标题时使用,永远不要自动调用。/confluence-cli查询、检索与阅读 Confluence 文档/页面。/dcjanus-merge-policy将 GitHub 或 GitLab 仓库配置为 DCjanus 偏好的合并策略,包括 squash、组织仓库的 merge queue、提交消息模板和源分支删除设置。适用于明确要求采用 DCjanus 个人合并策略的场景,不用于一般 PR/MR 合并操作。/dcjanus-preferences适用于创建、修改或评审 Skill,配置或复刻 GitHub 个人仓库与长期自用 fork 的维护、CI、发布、合并策略和 Dependabot 更新,设计或评审 CLI 的命名、输入手感、输出与补全,设计或评审前端界面的布局、信息层级和文案,或在前端技术栈与无障碍组件、Connect/Protobuf API、well-known types、FieldMask/PATCH、AIP-127 HTTP 映射与 Protovalidate 校验、项目开发工具(含 mbx/Cargo)及版本管理、用户级程序的 XDG 数据目录、跨语言的数据存储、分析、压缩、归档、哈希、Telegram Bot 消息呈现及 Python/Rust/Go 第三方库之间做技术选择的场景。/dcjanus-tasklog查询或管理 DCjanus 的 Linear 事项、提醒、长期文档、模板(含周期事项)、视图或团队配置,以及按个人任务模型整理目标、进展和关联时使用。Other plugins' skills for the same job