> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qodo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Jira with a token

> Connect Jira Data Center from the Qodo Integrations page with a personal access token.

On-premises

> [!NOTE]
>
> Connecting Jira with a token from the Integrations page is currently available on on-premise deployments where an administrator enables it. See [On-premise administrators](#on-premise-administrators). For other ways to connect Jira, see [Connect Qodo with Jira](https://docs.qodo.ai/integrations/ticketing-integrations/jira.md).

## Jira Data Center

Connect Jira Data Center or Server from the Qodo Integrations page with a personal access token (PAT). Qodo verifies the token with your Jira site before saving it, stores it encrypted, and never displays it again. Qodo also checks the connection regularly and tells you when the token needs attention.

### Before you begin

* A Jira Data Center or Server version that supports personal access tokens (Jira 8.14 or later).
* A dedicated service account in Jira with access to Jira and the Browse projects permission for every project Qodo should read.
* The HTTPS URL of your Jira site. If Jira runs under a context path, include it, for example `https://jira.example.com/jira`.
* Network access from Qodo to your Jira site over HTTPS. See [On-premise administrators](#on-premise-administrators).

### Create a personal access token

**Step 1**

Sign in to Jira as the service account.

**Step 2**

Select your profile picture, then select **Profile** > **Personal Access Tokens**.

**Step 3**

Select **Create token**, name it `Qodo`, and choose an expiry date.

**Step 4**

Copy the token. Jira displays it only once.

For more information, see [Using personal access tokens](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html) in the Atlassian documentation.

### Connect Jira Data Center to Qodo

**Step 1**

Go to the Qodo Integrations page.

**Step 2**

On the **Jira Data Center** card, select **Connect**.

![Jira Data Center card on the Integrations page with the Connect button](https://mintcdn.com/qodo/qz3AjTgrAXUUh-10/images/code-review/jira-data-center-card.png?fit=max\&auto=format\&n=qz3AjTgrAXUUh-10\&q=85\&s=07715112b32041567ad1bdf2fc6a7662)

**Step 3**

In **Site URL**, enter the HTTPS URL of your Jira site, including any context path.

**Step 4**

In **Personal access token**, paste the token you created.

![Connect your site step of the Jira Data Center wizard, with the Site URL and Personal access token fields](https://mintcdn.com/qodo/qz3AjTgrAXUUh-10/images/code-review/jira-data-center-connect-your-site.png?fit=max\&auto=format\&n=qz3AjTgrAXUUh-10\&q=85\&s=1b418c1fb3575e8e86283387a2336ec2)

**Step 5**

Select **Verify and connect**.

Qodo checks the token with your Jira site, then saves it. The card shows **Connected**, and Qodo can fetch Jira Data Center ticket context for your pull requests.

For short ticket IDs and branch name detection, set `jira_base_url` in your configuration file. Full ticket URLs resolve to the connected site automatically. For more information, see [Jira base URL](https://docs.qodo.ai/integrations/ticketing-integrations/jira.md#jira-base-url).

### Manage the connection

* Replace the token: On the Jira Data Center card, select **Replace token** and paste a new token. Use this before the current token expires.
* Reconnect: If the token expires, is revoked, or loses access, the card shows **Needs attention** with the reason. Select **Reconnect** and paste a new token.
* Disconnect: Hover over the card and select **Disconnect**. Qodo deletes its saved token. To revoke the token itself, delete it in Jira under **Profile** > **Personal Access Tokens**.

If Qodo cannot reach your site during a regular check, the card reports it and Qodo retries automatically. Your saved connection stays in place.

### Troubleshoot connection errors

| Message | What to check |
| - | - |
| Atlassian rejected this token. | The token was copied correctly, has not expired, and was not revoked. |
| This account does not have access. | The service account has access to Jira and the Browse projects permission. |
| Qodo could not reach this Atlassian site. | The site URL is correct and reachable from Qodo over HTTPS. |
| Enter a valid HTTPS site URL. | The URL starts with `https://` and includes any context path. |
| Qodo could not securely save this token. | Contact your Qodo administrator. |

To check the token outside Qodo, see [Validate PAT authentication via Python script](https://docs.qodo.ai/integrations/ticketing-integrations/jira.md#validate-pat-authentication-via-python-script).

### On-premise administrators

The Jira Data Center connection is available after an administrator enables it. No Redis or encryption key configuration is required.

Add the following values to your Helm values, then apply them through your usual Helm or GitOps process. The platform reads these values at startup.

```yaml jira-data-center-values.yaml theme={null}
platform:
  env:
    FEATURE_FLAG_JIRA_DATA_CENTER_API_TOKEN_INTEGRATION:
      value: "true"
```

If your Jira site is on a private network, allow it explicitly. Set both the exact origin, including a non-default port, and its network range:

```yaml jira-private-network-values.yaml theme={null}
platform:
  env:
    DYNACONF_INTEGRATIONS__ATLASSIAN__PRIVATE_ORIGINS:
      value: '["https://jira.example.com:8443"]'
    DYNACONF_INTEGRATIONS__ATLASSIAN__PRIVATE_CIDRS:
      value: '["10.20.30.0/24"]'
```

Qodo verifies TLS certificates and does not follow redirects. If your Jira site uses a certificate from an internal certificate authority, add that authority to the platform's trusted certificate bundle.

## Related resources

* [Connect Qodo with Jira](https://docs.qodo.ai/integrations/ticketing-integrations/jira.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.