Skills.MD
# Jira CLI Quick Reference
The `jira` CLI is a command-line tool for Jira interaction. This is a quick
reference for common workflows—for comprehensive docs, see
https://github.com/ankitpokhrel/jira-cli
## Getting Help
```bash
jira --help # List all commands
jira <command> --help # Help for specific command
jira me # Show current user
```
## Discovery Patterns
```bash
jira <command> --plain # Plain output for scripting
jira <command> --raw # JSON output
jira <command> --csv # CSV output for spreadsheets
jira issue list --limit N # Limit results (avoid large output)
jira open [ISSUE-KEY] # Open in browser
```
Use `--no-input` to skip interactive prompts when automating.
**Important:** Always use `--limit` when querying to avoid overwhelming output.
## Common Workflows
### Issue Management
```bash
# List and search
jira issue list
jira issue list -a$(jira me) # Assigned to me
jira issue list -a$(jira me) --created week
jira issue list -s"To Do" # By status
jira issue list -yHigh -tBug # High priority bugs
# View details
jira issue view ISSUE-KEY
jira issue view ISSUE-KEY --comments
# Create (use with caution!)
jira issue create -tBug -s"Summary" -yHigh --no-input
# Edit and transition
jira issue edit ISSUE-KEY
jira issue move ISSUE-KEY "In Progress"
jira issue assign ISSUE-KEY USERNAME
# Comment and log work
jira issue comment add ISSUE-KEY "comment text"
jira issue worklog add ISSUE-KEY "2h 30m"
```
### Sprint Workflow
```bash
# View sprints
jira sprint list
jira sprint list --current # Active sprint issues
jira sprint list --state active
# Manage sprint items
jira sprint add SPRINT-ID ISSUE-1 ISSUE-2
```
### Epic Management
```bash
# List and create
jira epic list
jira epic create --name "Epic Name" --summary "Description"
# Manage epic items
jira epic add EPIC-KEY ISSUE-1 ISSUE-2
jira epic remove ISSUE-1 ISSUE-2
```
## Core Commands Quick Reference
### Issue Commands
```bash
jira issue list [-a ASSIGNEE] [-s STATUS] [-y PRIORITY] [-t TYPE] [-l LABEL]
jira issue view ISSUE-KEY [--comments]
jira issue create -t TYPE -s "Summary" [-y PRIORITY] [-l LABEL]
jira issue edit ISSUE-KEY
jira issue move ISSUE-KEY "STATUS"
jira issue assign ISSUE-KEY USERNAME
jira issue link TYPE INWARD OUTWARD
jira issue clone ISSUE-KEY
```
### Sprint Commands
```bash
jira sprint list [--current] [--state active|future|closed]
jira sprint add SPRINT-ID ISSUE-1 [ISSUE-2...]
```
### Epic Commands
```bash
jira epic list
jira epic create --name "Name" --summary "Summary"
jira epic add EPIC-KEY ISSUE-1 [ISSUE-2...]
jira epic remove ISSUE-1 [ISSUE-2...]
```
### Project & Board
```bash
jira project list
jira board list
jira open [ISSUE-KEY] # Open in browser
```
## Powerful Filtering
The jira CLI supports rich filtering for `issue list`:
```bash
# By assignee
-a$(jira me) # Me
-aUSERNAME # Specific user
-ax # Unassigned
# By reporter
-r$(jira me) # Reported by me
# By status
-s"To Do" # Specific status
-s~Done # NOT Done
# By priority
-yHigh # High priority
-yMedium -yLow # Medium or Low
# By type
-tBug -tStory # Bugs or Stories
# By labels
-lbackend -lurgent # Multiple labels
# By component
-CBackend -CFrontend # Multiple components
# By date
--created week # Created this week
--created -7d # Last 7 days
--updated -30m # Updated in last 30 minutes
# By watching
-w # Issues I'm watching
# History
--history # Issues I recently viewed
```
## Output Formats
```bash
# Default: Interactive table
jira issue list
# Plain text (for scripting)
jira issue list --plain
# JSON (for parsing)
jira issue list --raw
# CSV (for spreadsheets)
jira issue list --csv
```
## Common Patterns
### Find My Work
```bash
# What's assigned to me
jira issue list -a$(jira me)
# What I created this week
jira issue list -r$(jira me) --created week
# What I worked on today
jira issue list --history
# Current sprint items
jira sprint list --current
```
### Filtering Examples
```bash
# High priority bugs assigned to me
jira issue list -a$(jira me) -yHigh -tBug
# Unassigned stories in "To Do"
jira issue list -ax -tStory -s"To Do"
# Recent updates with specific labels
jira issue list -lurgent --updated -2d
# Not done, watching, high priority
jira issue list -w -s~Done -yHigh
```
### Scripting with JSON
```bash
# Get raw JSON data
jira issue list -a$(jira me) --raw
# Process with jq
jira issue list --raw | jq '.issues[] | {key, summary, status}'
```
## Best Practices
- Use `$(jira me)` to reference current user
- Combine filters for powerful queries
- Use `--limit` to avoid large result sets
- Use `--plain` or `--raw` for scripting
- Use `--no-input` to skip prompts in automation
- Always check syntax with `--help` when uncertain
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「jira-cli」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次