> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-platform/3.0/harness-platform-resources/connectors/ticketing-systems/connect-to-jira.md).

# Connect to Jira

Connect Harness to Jira to use Jira issues in approval steps and ticketing workflows.

A Jira connector lets Harness authenticate to your Jira instance so you can use Jira issues in [approval steps](https://developer.harness.io/harness-platform/3.0/harness-platform-resources/overview/overview-1/approvals/jira-approval.md) and ticketing workflows.

***

## What you will learn from this topic

* The permissions your Jira account needs
* How to create a Jira connector in the unified UI
* The authentication options available: API Key and Personal Token

***

## Before you begin

* **Jira account permissions:** Your Jira account must have permission to view and update issues in the relevant projects. The **Administer Jira** project permission covers all required operations. At minimum, the account needs `read:jira-user`, `read:jira-work`, `write:jira-work`, `manage:jira-project`, and `manage:jira-configuration`.
* **Harness secret:** Store your API token or Personal Access Token as a Harness text secret before creating the connector. Go to [Add and reference text secrets](https://developer.harness.io/harness-platform/3.0/harness-platform-resources/secrets/add-use-text-secrets.md) to create one.

{% hint style="info" %}
**API Key username**

When you use API Key authentication, enter the full email address you use to log into Jira as the username.
{% endhint %}

***

## Add a Jira connector

To add a Jira connector:

1. Go to **General Settings**.
2. Select **Connectors**.
3. Select **New Connector**, then select **Jira**.
4. Enter a **Name**. The **Id** is auto-populated from the name.
5. In **Endpoint**, enter the base URL of your Jira instance. For example, `https://yourcompany.atlassian.net`.
6. In **Authentication**, select an auth method and fill in the required fields. Go to [Authentication options](#authentication-options) for details.
7. Select **Create**.

Harness validates the connection before saving.

***

## Authentication options

Select one of the following authentication methods.

### API Key

Use your Jira email and a scoped API token.

| Field        | Description                                      |
| ------------ | ------------------------------------------------ |
| **Username** | Full email address you use to log into Jira.     |
| **Password** | A Harness secret containing your Jira API token. |

To create a scoped API token in Jira, go to **Atlassian account settings** > **Security** > **API tokens**. The token needs the scopes listed in [Before you begin](#before-you-begin). Store the token as a [Harness text secret](https://developer.harness.io/harness-platform/3.0/harness-platform-resources/secrets/add-use-text-secrets.md), then select it in the **Password** field.

### Personal Token

Use a Jira Personal Access Token (PAT).

{% hint style="info" %}
**Jira Server only**

Personal Access Tokens are supported on Jira Server (Data Center) only, not on Jira Cloud.
{% endhint %}

| Field              | Description                                |
| ------------------ | ------------------------------------------ |
| **Personal Token** | A Harness secret containing your Jira PAT. |

Store the PAT as a [Harness text secret](https://developer.harness.io/harness-platform/3.0/harness-platform-resources/secrets/add-use-text-secrets.md), then select it in the **Personal Token** field.

***

## Field reference

The following table describes all connector fields.

| Field              | Required             | Description                                                                        |
| ------------------ | -------------------- | ---------------------------------------------------------------------------------- |
| **Name**           | Yes                  | Display name for the connector.                                                    |
| **Id**             | Yes                  | Unique identifier, auto-generated from the name.                                   |
| **Endpoint**       | Yes                  | Base URL of your Jira instance (for example, `https://yourcompany.atlassian.net`). |
| **Authentication** | Yes                  | Auth method: **API Key** or **Personal Token**.                                    |
| **Username**       | Yes (API Key)        | Full Jira login email.                                                             |
| **Password**       | Yes (API Key)        | Harness secret containing the API token.                                           |
| **Personal Token** | Yes (Personal Token) | Harness secret containing the PAT.                                                 |
| **Description**    | No                   | Free-text description under **Metadata**.                                          |

***

## Next steps

* Go to [Jira approval step](https://developer.harness.io/harness-platform/3.0/harness-platform-resources/overview/overview-1/approvals/jira-approval.md) to use this connector in a pipeline approval.
* Go to [Add and reference text secrets](https://developer.harness.io/harness-platform/3.0/harness-platform-resources/secrets/add-use-text-secrets.md) to store your API token securely.
