Jira
Jira
By the end of this guide, you will have your Jira project indexed into a semantic collection that your AI agent can query in plain English — finding relevant tickets by meaning, not just keywords.
Prerequisites
- Indexed installed and initialized with
indexed init(see Quick Start) - A Jira Cloud or Jira Server/Data Center instance
- Credentials for your deployment type (step 1)
Cloud vs Server/Data Center
Use the same command for both: indexed index create jira. Indexed picks the connector from the base URL: hosts ending in atlassian.net are treated as Jira Cloud; everything else is Jira Server/Data Center.
Full flags: Index commands — indexed index create jira (indexed index create jira --help). Environment variables: Config commands — Connector credentials.
Credentials
Cloud vs. Server/Data Center auth
Jira Cloud uses an Atlassian API token plus the email for the account that owns the token. Set ATLASSIAN_EMAIL and ATLASSIAN_TOKEN, or pass --email and --token for that run.
Jira Server/Data Center can use a bearer or personal access token (JIRA_TOKEN), or username and password (JIRA_LOGIN and JIRA_PASSWORD). No Atlassian email is used.
- 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 variables in your shell or .env file:
export ATLASSIAN_EMAIL=your-email@company.com
export ATLASSIAN_TOKEN=your_api_token_hereKeep tokens out of version control
Store credentials in a .env file and add it to .gitignore. Never put API tokens in config.toml or commit them to a repository.
Index Your Tickets
Minimal example (collection name, site URL, JQL):
indexed index create jira -c eng-tickets -u https://company.atlassian.net -q "project = ENG"Pick a JQL query that targets the tickets you care about; narrow or widen as needed:
indexed index create jira \
-c eng-tickets \
-u https://company.atlassian.net \
-q "project = ENG AND created >= -90d"The CLI streams progress while it fetches issues and embeds chunks. Verify the collection looks right with:
indexed index inspect eng-ticketsSearch Your Backlog
Test the collection from the CLI before connecting an AI agent:
indexed index search "auth timeout issues" -c eng-ticketsHits come back ranked, each with the ticket key, chunk position, relevance score, and the matched excerpt. A query like "auth timeout issues" also surfaces tickets about SSO token expiration or IdP migration — neither of which contains those exact words. That's semantic search in practice.
Common JQL Patterns
Use these as starting points for -q / --jql (replace ENG with your project key):
| Goal | JQL |
|---|---|
| Project slice | project = ENG |
| Recent tickets | project = ENG AND created >= -90d |
| Open issues | project = ENG AND status != Done |
| Bugs only | project = ENG AND type = Bug |
| Exclude sub-tasks | project = ENG AND type != Sub-task |
Keep the Index Current
Jira moves fast. Pull in new and modified tickets with an incremental update:
indexed index update eng-ticketsFor hands-free updates, add a cron job:
# Update every 4 hours
0 */4 * * * /path/to/indexed index update eng-ticketsTroubleshooting
Authentication errors for Cloud — set both ATLASSIAN_EMAIL and ATLASSIAN_TOKEN. The email must match the Atlassian account that generated the token.
Authentication errors for Server/DC — confirm JIRA_TOKEN, or JIRA_LOGIN and JIRA_PASSWORD, match what your Jira instance expects.
Empty results — run your JQL query directly in Jira's issue search to confirm it returns results. Also double-check that the URL includes the protocol (https://).
Rate limiting — Indexed retries automatically when it hits Jira rate limits. For large projects (1,000+ tickets), narrow your JQL query to index in smaller batches.