Index Jira Tickets and Query Them from Claude Code
Turn your Jira project into a semantic knowledge base your AI agent can search in plain English.
April 6, 2026
Index Jira Tickets and Query Them from Claude Code
Two years of engineering decisions, bug reports, and architectural discussions are sitting in your Jira backlog — and your AI agent has no access to any of it. Indexed connects that history to Claude Code, Cursor, or any MCP client, letting your agent search tickets by meaning rather than keywords.
The gap this fills is real: Jira's built-in search is keyword-based. If you type "auth issues," you won't find the ticket titled "SSO token expiration causes session drops." Indexed uses semantic search, so your agent finds tickets based on what they're about, not just what words they contain.
Prerequisites
- Indexed installed
- A Jira Cloud or Jira Server/Data Center instance
- An API token (instructions below)
Create a Jira API token
- Go to https://id.atlassian.com/manage-profile/security/api-tokens
- Click Create API token
- Give it a label (e.g., "Indexed CLI")
- Copy the token
Set both environment variables — Cloud requires your email and token:
ATLASSIAN_TOKEN=your_token_here
ATLASSIAN_EMAIL=your-email@company.comKeep tokens out of version control
Store secrets in .indexed/.env next to your workspace config.toml (or export them in your shell). Never commit API tokens.
Index your tickets
Pick a JQL query that targets the tickets you care about, then run:
indexed index create jira \
-c eng-tickets \
-u https://company.atlassian.net \
-q "project = ENG AND created >= -90d"Indexed fetches matching issues, parses them, chunks the content, and generates embeddings — all locally:
The CLI streams progress while it fetches issues and embeds chunks.
Verify the collection looks right:
indexed index inspect eng-ticketsindexed index inspect eng-tickets prints the collection's type, source, JQL query, and document, chunk, size, and creation details.
Connect your AI agent
Wire Indexed as an MCP stdio server (indexed → mcp → run). Paths and per-client JSON shapes (including Copilot’s servers format) are in MCP Setup.
Example: searching your backlog
You:
We're seeing auth timeouts in production. Are there existing tickets about this?
Agent:
I found several relevant tickets in your Jira backlog:
ENG-1847: SSO refresh token expiration handling Users experience session drops when the SSO refresh token expires during long-running operations. The fix in ENG-1848 added proactive token renewal.
ENG-2103: Login timeout after IdP migration After migrating to the new identity provider, login requests time out for users on VPN. Workaround is to increase the IdP response timeout to 30s.
ENG-1952: Auth service circuit breaker tuning The circuit breaker trips too aggressively under normal load, causing intermittent 503s on the login endpoint.
Based on these tickets, the timeout you're seeing may be related to the IdP migration in ENG-2103. Want me to dig deeper into that one?
The query was "auth timeouts." The results came back about SSO token expiration, IdP migration, and circuit breaker behavior — none of which share those exact words. That's what semantic search enables over Jira's default keyword matching.
JQL examples, updates, cron, and troubleshooting
Use the Jira connector doc for a JQL pattern table, indexed index update, cron examples using which indexed, and auth troubleshooting.