Jira CLI for ticket lookup, JQL search, sprint views, and creating, editing, or managing issues from the terminal.
Install · Quickstart · Agent Setup · Examples · Commands
# summary
jit ISSUE-123Ticket: ISSUE-123
Summary: Fix the login button in Safari
# one-line output
jit --text ISSUE-123ISSUE-123: Fix the login button in Safari
# json
jit --json ISSUE-123{"ticket":"ISSUE-123","summary":"Fix the login button in Safari"}# full table
jit --show --full ISSUE-123TICKET DETAILS
ISSUE-123: Fix the login button in Safari
Type: Bug Priority: Medium
Status: In Progress Sprint: Development Sprint 27
Assignee: John Doe Reporter: Jane Smith
Created: 2023-09-15 Updated: 2023-09-16
Due Date: 2023-09-30
# current sprint
jit --my-tickets --limit 3Current Sprint: Development Sprint 27
+-----------+----------------------------------+-------------------+
| Key | Summary | Status |
+-----------+----------------------------------+-------------------+
| PROJ-123 | Implement new login page | In Review |
+-----------+----------------------------------+-------------------+
| PROJ-124 | Fix responsiveness on dashboard | In Progress |
+-----------+----------------------------------+-------------------+
| PROJ-125 | Update API documentation | Done |
+-----------+----------------------------------+-------------------+
cargo install jit-cliBuild from source:
git clone https://github.com/cesarferreira/jit
cd jit
cargo build --release
./target/release/jit --versionCreate ~/.config/jit/config.toml:
mkdir -p ~/.config/jit
cat > ~/.config/jit/config.toml <<'EOF'
[jira]
base_url = "https://your-company.atlassian.net"
api_token = "your_api_token_here"
user_email = "[email protected]"
EOFThen run a few common commands:
# Ticket summary
jit ISSUE-123
# Compact one-line output
jit --text ISSUE-123
# Full ticket details with comments and PRs
jit --show --full ISSUE-123
# Current sprint tickets assigned to you
jit --my-tickets
# Create a ticket assigned to you in the current sprint
jit create --project RW --summary "Improve ticket creation flow"
# Edit an existing issue
jit edit RW-123 --summary "Refine edit flow"The repo ships a shared agent skill in SKILL.md. Install or update it for every detected supported coding agent in one command:
jit skill installThis detects existing agent config directories and installs the SKILL.md bundled with your installed jit binary into each matching agent. It creates missing skill subdirectories and replaces existing jit skills, without creating config folders for absent agents:
~/.codex/skills/jit/SKILL.md(Codex)~/.claude/skills/jit/SKILL.md(Claude Code)~/.pi/agent/skills/jit/SKILL.md(Pi)~/.cursor/skills/jit/SKILL.md(Cursor)~/.gemini/config/skills/jit/SKILL.md(Antigravity App/IDE)
Detection checks ~/.codex, ~/.claude, ~/.pi/agent, ~/.cursor, and ~/.gemini/config. Antigravity also supports an existing ~/.gemini/antigravity directory; it uses the current config directory when both exist. No installed executables are probed. If no supported config directories exist, the command reports that nothing was found and leaves the filesystem unchanged.
Installation needs no network connection or Jira credentials. To install skills from a local checkout, run cargo run -- skill install; to update the installed CLI and its skills together, run cargo install --path . followed by jit skill install.
Select only the agents you want with --agent (comma-separated or repeated). Names are case insensitive; duplicate selections are installed once. Without --agent, it installs for all detected targets. Explicit selections can create the selected agents' config folders even if absent:
jit skill install --agent codex
jit skill install --agent claude
jit skill install --agent pi,cursor,antigravity
jit skill install --agent codex --agent claudeThe additional targets use the global skill locations documented by Pi, Cursor, and Antigravity. The Antigravity target covers its App/IDE, whose global directory differs from the Antigravity CLI.
Default summary output:
jit ISSUE-123
jit https://your-company.atlassian.net/browse/ISSUE-123Example output:
Ticket: ISSUE-123
Summary: Fix the login button in Safari
Compact output for scripts or quick scanning:
jit --text ISSUE-123Example output:
ISSUE-123: Fix the login button in Safari
JSON output:
jit --json ISSUE-123
jit --json https://your-company.atlassian.net/browse/ISSUE-123Example output:
{"ticket":"ISSUE-123","summary":"Fix the login button in Safari"}Show a formatted table:
jit --show ISSUE-123
jit --show https://your-company.atlassian.net/browse/ISSUE-123Include richer context as needed:
jit --show --include-description ISSUE-123
jit --show --include-comments ISSUE-123
jit --show --include-prs ISSUE-123
jit --show --full ISSUE-123
jit --json --full ISSUE-123--full is the shortest path when you want description, comments, pull requests, attachments, and metadata together.
jit --show --include-attachments ISSUE-123 # list filename, type, size, URL
jit --json --download-attachments ./shots ISSUE-123 # save files, report local_path--download-attachments DIR saves each file as DIR/<attachment-id>-<filename> and, with --json, adds local_path to every entry in attachments (each also has is_image, mime_type, size, url). Coding agents can open those local paths to view screenshots attached to a ticket.
JSON output also carries fields for editors and dashboards:
- Every issue (
--json --my-tickets,--json ISSUE-123):url,issue_type,updated,comments_count,last_comment_at,last_comment_author. --json --full ISSUE-123addsparent,subtasks,links(each withrelationsuch asblocksoris blocked by) andbranchesfrom Jira's GitHub development panel (best effort; empty when none are linked).
Example output:
TICKET DETAILS
ISSUE-123: Fix the login button in Safari
Type: Bug Priority: Medium
Status: In Progress Sprint: Development Sprint 27
Assignee: John Doe Reporter: Jane Smith
Created: 2023-09-15 Updated: 2023-09-16
Due Date: 2023-09-30
DESCRIPTION
The login button doesn't work properly in Safari browsers.
Steps to reproduce:
1. Open the login page in Safari
2. Click on the login button
3. Nothing happens
Limit comments:
jit --show --include-comments --comments-limit 3 ISSUE-123
jit --json --include-comments --comments-limit 3 ISSUE-123Return all comments:
jit --show --include-comments --all-comments ISSUE-123
jit --json --include-comments --all-comments ISSUE-123Filter comments by date:
jit --show --include-comments --since 2026-01-01 ISSUE-123
jit --json --include-comments --since 2026-01-01 ISSUE-123Include linked pull requests:
jit --show --include-prs ISSUE-123
jit --json --include-prs ISSUE-123When an issue response contains only part of its comment history, jit fetches the remaining pages before applying comment date filters and limits.
No arguments defaults to your current sprint tickets:
jitExplicit forms:
jit --my-tickets
jit --my-tickets --include-prs
jit --my-tickets --limit 5The current sprint view fetches up to 50 tickets by default. Use --limit to narrow or expand the result set. jit --my-tickets --json returns the same paginated { "issues": [], "truncated": false } envelope as search; truncated: true means more matching issues exist beyond the limit.
Example output:
Current Sprint: Development Sprint 27
+-----------+----------------------------------+-------------------+
| Key | Summary | Status |
+-----------+----------------------------------+-------------------+
| PROJ-123 | Implement new login page | In Review |
+-----------+----------------------------------+-------------------+
| PROJ-124 | Fix responsiveness on dashboard | In Progress |
+-----------+----------------------------------+-------------------+
| PROJ-125 | Update API documentation | Done |
+-----------+----------------------------------+-------------------+
jit search --jql 'project = RW AND statusCategory != Done ORDER BY updated DESC'
jit search --jql 'assignee = currentUser()' --limit 100 --jsonSearch follows Jira pagination up to --limit (50 by default). JSON returns an object with issues and truncated; check truncated before treating the result as complete.
jit boards --project RW --json
jit sprints --board 123 --state active --json
jit sprints --board 123 --state active,future --jsonOmit --project to list accessible boards. Sprint state accepts active, future, closed, or a comma-separated combination. Use the returned board ID with creation or edit --current-sprint --board ID.
List available transitions before changing status. --to accepts a transition name or ID:
jit transitions RW-123 --json
jit transition RW-123 --to 'In Progress' --jsonThe CLI does not supply transition-specific required fields such as resolution; Jira validation errors are surfaced if a transition requires them.
Add a comment inline, from a UTF-8 file, or from standard input. Choose exactly one body source:
jit comment RW-123 --body 'Verified the fix locally.' --json
jit comment RW-123 --body-file /path/to/comment.txt
printf '%s' 'Verified the fix locally.' | jit comment RW-123 --body-file -Create a dependency or use another Jira issue-link type by name or ID:
jit link RW-123 --blocks RW-456 --json
jit link RW-123 --to RW-456 --type 'Relates' --json--blocks means the source issue blocks the target issue. The generic form makes the source display the link type's outward relationship to the target.
New tickets default to the authenticated Jira user (--assignee me) and the current active sprint:
jit create --project RW --summary "Improve ticket creation flow"Create with explicit type and description:
jit create \
--project RW \
--type Story \
--summary "Support ticket creation" \
--description $'Add a create command\nCover it with tests'Override the assignee or leave the ticket unassigned:
jit create --project RW --assignee 5b10a2844c20165700ede21g --summary "Fix validation"
jit create --project RW --assignee unassigned --summary "Triage item without an owner"Return the created issue as JSON:
jit create --project RW --summary "Improve ticket creation flow" --jsonExample output:
Created: RW-123
Project: RW
Type: Task
Assignee: Cesar Ferreira
Summary: Improve ticket creation flow
Board: RW board
Sprint: RW Sprint 42
Backlog: No (added to current sprint)
URL: https://your-company.atlassian.net/browse/RW-123
Pass --backlog explicitly to create without sprint assignment. The assignee still defaults to you:
jit create --project RW --backlog --summary "Save for later"--backlog conflicts with --current-sprint and --board.
Pass --parent with an issue key or URL to create an issue under a parent, such as a story under an epic:
jit create --project RW --type Story --parent RW-1 --summary "Story under the epic"Pass --subtask with --parent to create a sub-task. jit looks up the project's sub-task issue type (for example Sub-task or Subtask), so you do not need to know its name:
jit create --project RW --parent RW-123 --subtask --summary "Write migration"Sub-tasks follow the parent's sprint, so --subtask skips sprint assignment and conflicts with --type, --current-sprint, and --board.
Without --backlog, jit resolves the active sprint through Jira Software before creating the issue, then adds it to that sprint. It checks accessible Scrum boards for the project and uses the active sprint with the most recent startDate. Pass --board to select a specific board:
jit create --project RW --board 123 --summary "Use the board's active sprint"--current-sprint remains supported as an explicit spelling of the default. If no active sprint is found, no issue is created; select another board, start a sprint in Jira, or pass --backlog. If creation succeeds but sprint assignment fails, the command reports the created ticket key so you can retry with jit edit ISSUE-123 --current-sprint instead of creating a duplicate.
Update the summary:
jit edit RW-123 --summary "Improve edit flow"Update the description:
jit edit RW-123 --description $'First line\nSecond line'Clear the description:
jit edit RW-123 --description ''Set or change the parent issue:
jit edit RW-123 --parent RW-1Change issue type and assignee:
jit edit RW-123 --type Bug --assignee 5b10a2844c20165700ede21gKeep a task as Task while updating other fields:
jit edit RW-123 --type Task --summary "Refine task summary"Unassign the issue:
jit edit RW-123 --assignee unassignedUse the current Jira user as assignee:
jit edit RW-123 --assignee meMove an existing ticket into the current sprint (ticket URLs also work):
jit edit RW-123 --current-sprint
jit edit https://your-company.atlassian.net/browse/RW-123 --current-sprint --board 123
jit edit RW-123 --summary "Ready for this sprint" --current-sprint --jsonSprint selection matches create --current-sprint: without --board, use the most recently started active sprint on accessible Scrum boards for the ticket's project. --board requires --current-sprint. No duplicate issue is created, and sprint-only edits do not change core fields or the assignee.
Sprint resolution happens before any changes. For combined edits, core fields are saved first, then the issue is moved. If moving fails, the command exits unsuccessfully and reports that core fields were updated; those changes are not rolled back. A core-field failure prevents the sprint move. Failed commands report errors on stderr and emit no success JSON; --json formats the error as JSON with any completed operations.
Successful sprint edits include sprint, sprint_id, board, and board_id in JSON, with "sprint" in updated_fields. These describe the sprint assignment accepted by Jira.
Return update results as JSON:
jit edit RW-123 --summary "Improve edit flow" --jsonExample output:
Updated: RW-123
Fields: summary
Summary: Improve edit flow
URL: https://your-company.atlassian.net/browse/RW-123
jit edit updates only the fields you pass. It works for Task issues as well as other Jira issue types. --description '' clears the description, and --assignee unassigned clears the assignee.
Both create and edit accept --description-file PATH; use - for standard input. It conflicts with --description:
jit create --project RW --summary 'Improve validation' --description-file /path/to/description.txt
jit edit RW-123 --description-file /path/to/description.txt
printf '%s' 'Updated details' | jit edit RW-123 --description-file -Noninteractive query, issue, and discovery commands support --json, including top-level jit --json COMMAND .... Their successes write JSON only to stdout. Interactive auth and skill installation retain their own output formats. Failures exit nonzero and write a JSON error object to stderr with error.code, error.message, error.ticket, and error.completed_operations. The ticket is available when known; completed operations are an array.
For create/edit partial failures, inspect the ticket and completed operations before retrying. created means the issue already exists: retry its sprint assignment with jit edit KEY --current-sprint, adding the original --board when applicable. core_fields_updated means the edit was saved before the sprint move failed: retry only the move. These operations are not rolled back, and failures emit no success JSON.
jit --config-file /path/to/config.toml ISSUE-123
jit --config-file /path/to/config.toml --my-tickets
jit --config-file /path/to/config.toml create --project RW --summary "Improve ticket creation flow"
jit --config-file /path/to/config.toml edit RW-123 --summary "Improve edit flow"| Command | What it does |
|---|---|
jit ISSUE-123 |
Show ticket summary |
jit --text ISSUE-123 |
Show one-line KEY: Summary output |
jit --json ISSUE-123 |
Return machine-readable JSON |
jit --show ISSUE-123 |
Show detailed ticket fields in a table |
jit --show --full ISSUE-123 |
Include description, comments, pull requests, attachments, and metadata |
jit --json --download-attachments DIR ISSUE-123 |
Download ticket attachments/images and return their local paths |
jit --my-tickets |
List current sprint tickets assigned to you |
jit search --jql '...' |
Search issues with pagination and a result limit |
jit boards [--project KEY] |
List accessible boards |
jit sprints --board ID [--state active,future] |
List board sprints |
jit transitions KEY |
List available status transitions |
jit transition KEY --to NAME_OR_ID |
Apply an available transition |
jit comment KEY --body TEXT |
Add a comment; --body-file PATH also accepts - for stdin |
jit link SOURCE --blocks TARGET |
Mark the source as blocking the target |
jit link SOURCE --to TARGET --type NAME_OR_ID |
Create a Jira issue link |
jit create ... |
Create an issue assigned to you in the current sprint |
jit create --backlog ... |
Create an issue without sprint assignment |
jit create --current-sprint ... |
Create an issue and add it to the active sprint |
jit edit ... |
Update summary, description, type, assignee, or current sprint |
jit skill install |
Install for all supported agents with existing config folders; --agent overrides detection |
jit --config-file /path/to/config.toml ... |
Use a specific config file |
Run the interactive auth wizard:
jit authThe wizard asks for your Jira company URL and email, opens the Atlassian API token page, validates the token you paste, and writes credentials to ~/.config/jit/config.toml.
To write a specific config file instead:
jit --config-file /path/to/config.toml authjit looks for Jira credentials in this order:
--config-file <path>config.tomlin the current directory~/.config/jit/config.toml
Example config:
[jira]
base_url = "https://your-company.atlassian.net"
api_token = "your_api_token_here"
user_email = "[email protected]"Optional [jira] settings select custom fields for reading sprint and acceptance criteria across Jira installations:
sprint_field = "customfield_10020"
acceptance_criteria_field = "customfield_10396"These are the backward-compatible defaults. Set the field IDs used by your Jira instance. Refreshing credentials with jit auth preserves these field overrides.
Run locally:
cargo run -- ISSUE-123
cargo run -- --my-tickets
cargo run -- create --project RW --summary "Improve ticket creation flow"Build a release binary:
cargo build --releaseGet an Atlassian API token:
- Go to
https://id.atlassian.com/manage-profile/security/api-tokens - Click
Create API token - Name it
- Copy it into
~/.config/jit/config.tomlunder the[jira]section
MIT © Cesar Ferreira
