Jira cli
Interact with Atlassian Jira from the terminal: search issues, view details, create issues, add comments, list projects, and transition status. Use when the user mentions Jira, a ticket key (e.g. PROJ-123), or asks about issues, bugs, tasks, projects, or sprint work.From its SKILL.md
npx -y skills add magnus919/agent-skills --skill jira-cliAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
5.0 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
jira-cli — Jira Issue Tracker from the Terminal
Interact with Atlassian Jira Cloud via the REST API v3. Search issues, view details, create issues, add comments, list projects, and transition status.
Setup
- Generate an API token at id.atlassian.com/manage/api-tokens
- Set environment variables:
export JIRA_EMAIL="[email protected]"
export JIRA_API_TOKEN="your-api-token"
export JIRA_SERVER="https://your-domain.atlassian.net" # defaults to this format
--help and --dry-run work without credentials.
Essential Commands
me — Current user profile
jira-cli me # your account info
jira-cli me --json # machine-readable
list — Search issues
jira-cli list # recent issues
jira-cli list --project PROJ # by project
jira-cli list --jql 'assignee=currentuser() AND status=Open' # custom JQL
jira-cli list --project PROJ --max 5 --json # top 5 as JSON
The --jql flag accepts any valid JQL. The --project flag is a shortcut for project=KEY.
view — Issue details
jira-cli view PROJ-123 # full details
jira-cli view PROJ-123 --json # machine-readable
Shows: summary, type, status, priority, assignee, reporter, timestamps, and description (plain text extracted from Atlassian Document Format).
projects — List projects
jira-cli projects # all accessible projects
jira-cli projects --json # machine-readable
create — Create an issue
jira-cli create --project PROJ --summary "Fix login bug" # Task (default)
jira-cli create --project PROJ --summary "Crash on startup" --type Bug
jira-cli create --project PROJ --summary "Add dark mode" --type Story --priority High
jira-cli create --project PROJ --summary "Test" --dry-run # preview
comment — Add a comment
jira-cli comment PROJ-123 -m "Fixed in latest build" # add comment
jira-cli comment PROJ-123 -m "Looking into it" --dry-run
transition — Change issue status
jira-cli transition PROJ-123 --to "In Progress" # by name
jira-cli transition PROJ-123 --to "Done" # by name
jira-cli transition PROJ-123 --to "31" # by ID
jira-cli transition PROJ-123 --to "In Review" --dry-run
The CLI looks up available transitions for the issue and matches by name or ID. If the transition doesn't exist, it shows available options.
Global Flags
All flags work in any position:
jira-cli --json list --project PROJ # flag before subcommand
jira-cli list --project PROJ --json # flag after subcommand
jira-cli --dry-run create --project PROJ --summary "Test" # preview
jira-cli --quiet list # suppress non-essential output
Known Gotchas
- Authentication uses HTTP Basic Auth with email + API token. This is the email address tied to your Atlassian account, not a username.
- Atlassian Document Format (ADF) — Issue descriptions and comments use ADF (JSON structure), not plain text or markdown. The CLI extracts plain text from ADF, but creating issues with rich formatting requires ADF JSON via
--description. - Transitions are workflow-specific — Available transitions depend on the issue's current status and the project's workflow. The CLI lists available options when an invalid transition is requested.
- Rate limits — Jira Cloud has rate limits. The API returns 429 if exceeded. The CLI does not auto-retry.
- Project keys are case-sensitive in some contexts, but the Jira API generally accepts uppercase or lowercase.
References
- scripts/jira-cli — The CLI binary. Built following the cli-builder patterns: non-interactive,
--json,--dry-run,--quiet,--verbose, dual-output viaemit(), lazy auth, structured logging. - Jira REST API v3 docs — Official API reference.
- API Token Management — Generate and revoke tokens.
What ships with it: 2 files
20.5 KB alongside SKILL.md, 1 of them executable
scripts/
- jira-cliruns19.3 KB
- README.md1.3 KB