| name | jira |
| description | Interact with Jira using the jira-cli tool. Search, create, view, edit, and transition issues; manage epics and sprints; add comments and worklogs. Use when working with Jira tickets, backlogs, or project management tasks. |
Jira Skill
Interactive Jira command line tool for managing issues, epics, sprints, and more.
Setup
Installation
Install jira-cli:
brew install jira-cli
Configuration
- Get a Jira API token for Jira Cloud: https://id.atlassian.com/manage-profile/security/api-tokens
- Export the token:
export JIRA_API_TOKEN="your-api-token"
Add to your shell config (~/.bashrc, ~/.zshrc, etc.) to make it persistent.
- Initialize jira-cli:
jira init
Follow the prompts to configure:
- Installation type (Cloud or Local)
- Base URL (e.g.,
https://yourcompany.atlassian.net)
- Email/username
- Project key (optional, can be set per command)
For on-premise installations, you may need to set:
export JIRA_AUTH_TYPE="bearer"
List Issues
jira issue list
jira issue list --created -7d
jira issue list -s "To Do"
jira issue list -s "In Progress"
jira issue list -s "Done"
jira issue list --priority High
jira issue list --assignee $(jira me)
jira issue list --reporter $(jira me)
jira issue list --label backend
jira issue list --project PROJKEY
jira issue list --plain
jira issue list --raw
jira issue list --csv
jira issue list --priority High --assignee $(jira me) -s "To Do" --created month --label backend
Common Filters
| Flag | Description | Example |
|---|
-s, --status | Filter by status | -s "In Progress" |
-y, --priority | Filter by priority | --priority High |
-l, --label | Filter by label | -l backend |
-a, --assignee | Filter by assignee | -a $(jira me) |
-r, --reporter | Filter by reporter | -r $(jira me) |
--created | Filter by creation date | --created -7d, --created month |
--updated | Filter by update date | --updated -7d |
-p, --project | Filter by project | -p PROJKEY |
--type | Filter by issue type | --type Bug |
View Issues
jira issue view ISSUE-123
jira issue view ISSUE-123 --no-pager
jira issue view ISSUE-123 --web
Create Issues
jira issue create
jira issue create "Fix login bug"
jira issue create --type Bug "Fix login bug"
jira issue create \
--type Bug \
--summary "Fix login bug" \
--description "Users cannot login after update" \
--priority High \
--assignee "$(jira me)" \
--label backend,auth \
--project PROJKEY
Edit Issues
jira issue edit ISSUE-123
jira issue edit ISSUE-123 --summary "New summary"
jira issue edit ISSUE-123 --description "Updated description"
jira issue edit ISSUE-123 --priority High
jira issue edit ISSUE-123 --assignee "$(jira me)"
jira issue edit ISSUE-123 --label backend,bug
Transition Issues
jira issue transition ISSUE-123
jira issue transition ISSUE-123 "In Progress"
jira issue transition ISSUE-123 "Done"
jira issue transition ISSUE-123 "In Review"
Comments
jira issue comment add ISSUE-123 "This needs more testing"
jira issue comment add ISSUE-123 "**Note:** This is a priority issue."
jira issue comment list ISSUE-123
jira issue comment edit ISSUE-123 "Comment ID" "Updated comment"
jira issue comment delete ISSUE-123 "Comment ID"
Worklog (Time Tracking)
jira issue worklog add ISSUE-123 --time "2h" --message "Fixed the bug"
jira issue worklog add ISSUE-123 --time "1d 2h 30m" --message "Implementation"
jira issue worklog list ISSUE-123
jira issue worklog delete ISSUE-123 "Worklog ID"
Epics
jira epic list
jira epic list --plain
jira epic create \
--name "Authentication System" \
--summary "Implement OAuth2 authentication" \
--description "Add OAuth2 login flow"
jira epic view EPIC-123
jira epic list EPIC-123
jira issue edit ISSUE-123 --epic EPIC-123
Sprints
jira sprint list
jira sprint list --state active
jira sprint list SPRINT-123
jira sprint start SPRINT-123
jira sprint close SPRINT-123
Projects
jira project list
jira project view PROJKEY
Current User
jira me
jira me --key
jira issue list --assignee "$(jira me)"
Search (JQL)
jira issue list --query "project = PROJKEY AND status = 'In Progress'"
jira issue list --query 'project = PROJKEY AND assignee = currentUser() AND priority = High'
jira issue list --query "created >= -30d AND project = PROJKEY"
Interactive Navigation
In interactive mode:
- Arrow keys or
j/k/h/l - Navigate
v - View issue details
m - Transition issue
ENTER - Open in browser
c - Copy issue URL
CTRL+k - Copy issue key
CTRL+r or F5 - Refresh
q / ESC / CTRL+c - Quit
? - Help
Multiple Projects
Use different config files:
jira issue list --config ~/jira-configs/project1.yaml
JIRA_CONFIG_FILE=~/jira-configs/project1.yaml jira issue list
Common Workflows
Get assigned issues for today
jira issue list --assignee "$(jira me)" -s "In Progress" --created -7d
Review backlog
jira issue list -s "To Do" --priority High
Get release notes (sprint summary)
jira sprint list --state closed
jira issue list --sprint SPRINT-123 -s Done
Start work on an issue
jira issue transition ISSUE-123 "In Progress"
jira issue view ISSUE-123
Complete an issue
jira issue transition ISSUE-123 "Done"
jira issue worklog add ISSUE-123 --time "1h" --message "Completed task"
Notes
- jira-cli supports both Jira Cloud and Jira Server/Data Center
- For on-premise installations, you may need to use basic auth or PAT
- Time format:
1h (hour), 1d (day), 1w (week), 1m (month)
- Date filters:
-7d (7 days ago), month (this month), week (this week)
- Always use quotes around status names with spaces:
-s "In Progress"