jira-communication
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseJira Communication
Jira 操作脚本
CLI scripts for Jira operations using . All scripts support , , , .
uv run--help--json--quiet--debug使用执行的Jira操作CLI脚本。所有脚本均支持、、、参数。
uv run--help--json--quiet--debugAuto-Trigger
自动触发
Trigger when user mentions:
- Jira URLs: ,
https://jira.*/browse/*https://*.atlassian.net/browse/* - Issue keys: ,
PROJ-123NRS-4167
When triggered by URL → extract issue key → run
jira-issue.py get PROJ-123当用户提及以下内容时触发:
- Jira URL:、
https://jira.*/browse/*https://*.atlassian.net/browse/* - 问题键:、
PROJ-123NRS-4167
通过URL触发时 → 提取问题键 → 执行
jira-issue.py get PROJ-123Auth Failure Handling
认证失败处理
When auth fails, offer: (interactive credential setup)
uv run scripts/core/jira-setup.py当认证失败时,提供:(交互式凭证设置)
uv run scripts/core/jira-setup.pyScripts
脚本列表
| Script | Purpose |
|---|---|
| Interactive credential config |
| Verify connection |
| Get/update issue details |
| Search with JQL |
| Time tracking |
| Download attachments |
| Create issues |
| Change status |
| Add comments |
| List sprints |
| List boards |
| User info |
| Search fields |
| Issue links |
| 脚本 | 用途 |
|---|---|
| 交互式凭证配置 |
| 验证连接 |
| 获取/更新问题详情 |
| 使用JQL搜索 |
| 工作时长记录 |
| 下载附件 |
| 创建问题 |
| 变更问题状态 |
| 添加评论 |
| 列出迭代(sprint) |
| 列出看板 |
| 获取用户信息 |
| 搜索字段 |
| 问题链接管理 |
Critical: Flag Ordering
重要提示:参数顺序
Global flags MUST come before subcommand:
bash
undefined全局参数必须放在子命令之前:
bash
undefinedCorrect: uv run scripts/core/jira-issue.py --json get PROJ-123
正确写法: uv run scripts/core/jira-issue.py --json get PROJ-123
Wrong: uv run scripts/core/jira-issue.py get PROJ-123 --json
错误写法: uv run scripts/core/jira-issue.py get PROJ-123 --json
undefinedundefinedQuick Examples
快速示例
bash
uv run scripts/core/jira-validate.py --verbose
uv run scripts/core/jira-search.py query "assignee = currentUser()"
uv run scripts/core/jira-issue.py get PROJ-123
uv run scripts/core/jira-worklog.py add PROJ-123 2h --comment "Work done"
uv run scripts/workflow/jira-transition.py do PROJ-123 "In Progress" --dry-runbash
uv run scripts/core/jira-validate.py --verbose
uv run scripts/core/jira-search.py query "assignee = currentUser()"
uv run scripts/core/jira-issue.py get PROJ-123
uv run scripts/core/jira-worklog.py add PROJ-123 2h --comment "Work done"
uv run scripts/workflow/jira-transition.py do PROJ-123 "In Progress" --dry-runRelated Skills
相关技能
jira-syntax: For descriptions/comments. Jira uses wiki markup, NOT Markdown.
jira-syntax:用于编写描述/评论。Jira使用wiki标记语言,而非Markdown。
References
参考资料
- - JQL syntax
references/jql-quick-reference.md - - Setup and auth issues
references/troubleshooting.md
- - JQL语法参考
references/jql-quick-reference.md - - 安装与认证问题排查
references/troubleshooting.md
Authentication
认证方式
Cloud: + +
Server/DC: +
JIRA_URLJIRA_USERNAMEJIRA_API_TOKENJIRA_URLJIRA_PERSONAL_TOKENConfig via or env vars. Run to verify.
~/.env.jirajira-validate.py --verboseCloud版: + +
Server/数据中心版: +
JIRA_URLJIRA_USERNAMEJIRA_API_TOKENJIRA_URLJIRA_PERSONAL_TOKEN可通过文件或环境变量配置。执行验证配置。
~/.env.jirajira-validate.py --verbose