Indexed
IndexingConnectors

Jira

Index your Jira project into a semantic collection that your AI agent can query in plain English.

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.

  1. Go to https://id.atlassian.com/manage-profile/security/api-tokens
  2. Click Create API token
  3. Give it a label (e.g., "Indexed CLI")
  4. Copy the token

Set both variables in your shell or .env file:

Terminal
export ATLASSIAN_EMAIL=your-email@company.com
export ATLASSIAN_TOKEN=your_api_token_here

Keep 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):

Terminal
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:

Terminal
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:

Terminal
indexed index inspect eng-tickets

Search Your Backlog

Test the collection from the CLI before connecting an AI agent:

Terminal
indexed index search "auth timeout issues" -c eng-tickets

Hits 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):

GoalJQL
Project sliceproject = ENG
Recent ticketsproject = ENG AND created >= -90d
Open issuesproject = ENG AND status != Done
Bugs onlyproject = ENG AND type = Bug
Exclude sub-tasksproject = ENG AND type != Sub-task

Keep the Index Current

Jira moves fast. Pull in new and modified tickets with an incremental update:

Terminal
indexed index update eng-tickets

For hands-free updates, add a cron job:

crontab
# Update every 4 hours
0 */4 * * * /path/to/indexed index update eng-tickets

Troubleshooting

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.

What's Next

On this page