> 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/internal-developer-portal/use-idp/software-catalog/create-entity/catalog-discovery/integrations/jira.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Jira Integration

Auto-discover Jira components and projects in Harness IDP and enrich catalog entities with ticket counts by status category and type.

The Jira integration connects to your Jira Software Cloud site and brings Jira components and projects into the IDP Catalog. Once ingested, entities can be registered as new catalog entities or merged into existing ones, enriching them with Jira-sourced metadata such as:

* Jira component and project details
* Total and open ticket counts
* Ticket counts by status category
* Ticket counts by type

Data flows in one direction, from Jira to the Catalog.

{% hint style="info" %}
**JIRA TERMS**

In Jira, issues are now called work items and projects are now called spaces. A work item is a single unit of work, such as a task, bug, or story. This page uses "tickets" to refer to work items and "projects" to refer to spaces, to match the terms in the IDP UI.
{% endhint %}

You can use the integration to:

* View open tickets, open bugs, and unassigned tickets for a service directly on its catalog page.
* Link a Jira project to a catalog system and track its ticket counts by status category and type.
* Keep Jira-sourced metadata up to date on catalog entities without manual updates.

For each Jira site, the integration collects the following:

| Resource      | What it provides                                                                                                                                                         |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Component** | Component ID, name, key, parent project, description, lead, Jira URL, total tickets, open tickets, tickets by status category, and tickets by type.                      |
| **Project**   | Project ID, name, key, description, lead, Jira URL, avatar, project type, archived status, total tickets, open tickets, tickets by status category, and tickets by type. |

***

### Before you begin

Make sure the following prerequisites are met:

1. `IDP_INTEGRATIONS` and `IDP_JIRA_INTEGRATION` feature flags are enabled for your account. To enable them, contact [Harness Support](https://www.harness.io/support).
2. You have the `IDP_INTEGRATION_EDIT` permission on the `IDP_INTEGRATION` resource to create and edit integrations. To check your permissions, go to **Account Settings** → **Access Control**, and review the roles assigned to you. If you do not have this permission, ask your Harness account administrator to add it to one of your roles. For more about roles and permissions, go to [Scopes, Roles & Permission](https://developer.harness.io/internal-developer-portal/admin-and-customization/rbac/scopes.md).
3. A Harness Jira connector for Jira Software Cloud is available. The connector must use **Username and API Key** authentication. You need two values from your Atlassian account:

   * **Username**: The email address you use to sign in to Atlassian.
   * **API token**: To create one, go to your [Atlassian API tokens page](https://id.atlassian.com/manage-profile/security/api-tokens), or in your Atlassian account select **Security** → **Create and manage API tokens**. Click **Create API token with scopes**, give it a name, select the scopes that the Harness Jira connector requires, and copy the token. Atlassian shows it only once. For the required scopes, go to [Connect to Jira](https://developer.harness.io/docs/platform/connectors/ticketing-systems/connect-to-jira).

   The Jira account behind the connector must have the **Browse projects** permission for the Jira projects you want to integrate.

{% hint style="info" %}
**SUPPORTED JIRA TYPES**

The integration supports only Jira Software Cloud with **Username and API Key** authentication. Jira Software Data Center, Jira Server, and connectors that use a Personal Access Token (PAT) are not supported yet. Support for self-hosted Jira will be available in an upcoming release.
{% endhint %}

***

### Enable the Jira integration

{% hint style="info" %}
The Jira integration is available at the **Account**, **Organization**, and **Project** levels of Harness. Navigate to the appropriate scope of the Internal Developer Portal to add or manage Jira integrations. You can create more than one Jira integration at each scope.

Choose the scope that matches who needs the Jira data:

* **Account**: For Jira data used across your whole Harness account.
* **Organization**: For Jira data used by the Harness projects in one organization, such as a business unit.
* **Project**: For Jira data used by a single team or initiative in one Harness project.

For more about scopes, go to [Scopes, Roles & Permission](https://developer.harness.io/internal-developer-portal/admin-and-customization/rbac/scopes.md#scopes-idp-20).
{% endhint %}

#### 1. Navigate to the integrations page

To open the Integrations page, complete the following steps:

1. In Harness, open the **Internal Developer Portal**.
2. From the left sidebar, click **Configure**.
3. In the left navigation menu, click **Integrations**.

   ![Figure 1: Navigation Path of Jira Integration](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-5ee8dd88e885d86f1a702e38ea9c8faf484154c1%2Fjira-integration-nav.png?alt=media)
4. On the Integrations page, click **+ New Integration**.
5. Select **Jira** from the integration type picker. The **Auto Discover Jira Integration** page opens.

#### 2. Configure setup & connectivity

This section connects Harness IDP to your Jira Software Cloud site.

1. Enter a name in the **Integration Name** field. This name appears on the integration card on the **Integrations** page (for example, `Harness Jira integration`).

   ![Figure 2: Setup & Connectivity](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-54abfa45a3ad4250a763dd3c499a7ace8813aff9%2Fjira-setup-connectivity.png?alt=media)
2. Under **Choose Jira connector**, select the Harness Jira connector used to fetch project data.

   <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p><strong>CONNECTOR CANNOT BE CHANGED</strong></p><p>You cannot change the Jira connector after the integration is created.</p></div>
3. *(Optional)* Under **Jira Custom Fields**, click **Configure** to sync additional Jira ticket fields beyond the defaults, such as Story Points or Team.

   A drawer opens with the custom fields from your Jira site:

   * Use the **All fields** tab to view every custom field.
   * Use the search box to find a field by name.
   * Select the fields you want and click **Update**.
   * Use the **Selected** tab to review the fields you picked.

##### Create a Jira connector

If you do not have a Jira connector yet, create one from the **Choose Jira connector** field.

{% tabs %}
{% tab title="Interactive guide" %}
{% embed url="<https://app.arcade.software/share/pSfI6Z0DhZVl8HPvPnoq>" %}
Connect a new Jira connector
{% endembed %}
{% endtab %}

{% tab title="Step-by-step" %}

1. Click **Choose Jira connector**.
2. In the **Create or Select an Existing Connector** window, click **+ New Connector**.
3. On the **Overview** step, enter a **Name** for the connector and click **Continue**.
4. On the **Details** step, configure the following:
   * **Jira URL**: Enter the URL of your Jira Software Cloud site, in the format `https://<your-domain>.atlassian.net`.
   * **Authentication**: Select **Username and API Key**, and then configure the following:
     * **Username**: Enter your Atlassian account email.
     * **API Key**: Click **Create or Select a Secret**. To add a new secret, click **+ New Secret Text**, select a **Secrets Manager**, enter a **Secret Name**, paste your Atlassian scoped API token in **Secret Value**, and click **Save**.
5. Click **Continue**.
6. On the **Delegates Setup** step, select **Use any available Delegate** (or **Only use Delegates with all of the following tags**), then click **Save and Continue**.
7. On the **Connection Test** step, wait for the **Verification successful** message, then click **Finish**.
   {% endtab %}
   {% endtabs %}

#### 3. Configure mapping & correlation

This section defines how Jira components and projects are mapped to IDP catalog entities and how they are correlated with existing catalog entities.

The integration supports the **Component Entity** and **Project Entity** types. Enable at least one of them.

* The **Component Entity** type maps Jira components to catalog entities of Kind `Component` and Type `service`.
* The **Project Entity** type maps Jira projects to catalog entities of Kind `System` and Type `projects`.

**Component Entity**

To map Jira components to catalog entities, perform the following steps:

1. Ensure the **Component Entity** toggle is enabled.
2. Under **Entity Registration Behavior**, choose how Jira components are brought into the catalog:

   * **Merge** *(Default)* - Merges with existing catalog entities. Harness recommends a matching entity. You can pick a different one.
   * **Register & Merge** - Registers new entities and updates existing ones if a match is found.
   * **Register** - Registers entities from Jira. Does not merge with existing entities.

   Merging cannot be undone. Review the recommended entity before you merge.

   ![Figure 3: Component Entity settings](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-a764d887afce33bc0a16ee103e54ab90f4367a03%2Fjira-mapping.png?alt=media)
3. The default **Kind** is `Component` and **Type** is `service`. You can set these only when you create the integration.
4. Under **Correlation Mapping**, define how IDP matches each Jira component to a catalog entity. IDP compares one value from Jira with one value on your catalog entity. When the two values are equal, IDP links the Jira component to the catalog entity. Correlation is required unless you choose **Register**.

   The mapping is pre-filled for components:

   * **Ingested Data Path**: The value from Jira. The default is `metadata.integration_properties.Jira.key`. For a Jira component, this is the project key, a hyphen, and the component name, for example `PAY-Payments`. A Jira component belongs to one Jira project and cannot be shared across Jira projects. Two Jira projects can each have a Jira component with the same name, but a Jira project cannot have two components with the same name. Combining the project key and the component name makes the key unique across your Jira site.
   * **Catalog YAML Path**: The field on your catalog entity that holds the same key. The default is `metadata.annotations.jira/component-key`.
   * **Operator**: Leave it as `Equals`.

   To match on a different Jira value, see [Ingested Data Path options](#ingested-data-path-options).

   Jira component names rarely match catalog entity names, so add the key as an annotation to the catalog entity you want to link. You can add it in the entity YAML or through the API. For example:

   ```yaml
   metadata:
     annotations:
       jira/component-key: PAY-Payments
   ```

   IDP then matches the Jira component `PAY-Payments` to that entity and recommends the merge in the **Discovered** tab.
5. *(Optional)* Click **Configure** next to **Configure fields (optional)** to customize which Jira fields are synced to the catalog. By default, all available fields are selected.

**Project Entity**

To map Jira projects to catalog entities, perform the following steps:

1. Ensure the **Project Entity** toggle is enabled.
2. Under **Entity Registration Behavior**, choose how Jira projects are brought into the catalog:

   * **Register & Merge** *(Default)* - Registers new entities and updates existing ones if a match is found.
   * **Register** - Registers entities from Jira. Does not merge with existing entities.
   * **Merge** - Merges with existing catalog entities. Harness recommends a matching entity. You can pick a different one.

   Merging cannot be undone. Review the recommended entity before you merge.

   ![Figure 4: Project Entity settings](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-5f67b72f5142da7758f5d3eb0b38f31e92810bc5%2Fjira-mapping-project.png?alt=media)
3. The default **Kind** is `System` and **Type** is `projects`. As with the **Component Entity**, you can set these only when you create the integration.
4. Under **Correlation Mapping**, define how IDP matches each Jira project to a catalog entity. IDP compares one value from Jira with one value on your catalog entity. When the two values are equal, IDP links the Jira project to the catalog entity. Correlation is required unless you choose **Register**.

   The mapping is pre-filled for projects:

   * **Ingested Data Path**: The value from Jira. The default is `metadata.integration_properties.Jira.key`. For a Jira project, this is the project key, the short prefix on your ticket IDs (for example, `PAY` in `PAY-123`).
   * **Catalog YAML Path**: The field on your catalog entity that holds the same project key. The default is `metadata.annotations.jira/project-key`.
   * **Operator**: Leave it as `Equals`.

   To match on a different Jira value, see [Ingested Data Path options](#ingested-data-path-options).

   For example, if your Jira project key is `PAY`, add this annotation to the catalog entity you want to link:

   ```yaml
   metadata:
     annotations:
       jira/project-key: PAY
   ```

   IDP then matches the Jira project `PAY` to that entity and recommends the merge in the **Discovered** tab.
5. *(Optional)* Click **Configure** next to **Configure fields (optional)** to customize which Jira fields are synced to the catalog. By default, all available fields are selected.

#### Ingested Data Path options

The **Ingested Data Path** list in **Correlation Mapping** displays the values that IDP ingests from Jira. For Jira components, the options are `key`, `identifier`, `name`, and `projectKey`. For Jira projects, the options are `key`, `identifier`, and `name`. All of them are under `metadata.integration_properties.Jira`.

| Path         | What it contains                                                                                                            | Notes                                                                                          |
| ------------ | --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `key`        | Jira components: the project key and component name, such as `PAY-Payments`. Jira projects: the project key, such as `PAY`. | Default for the **Component Entity** and the **Project Entity**. Unique across your Jira site. |
| `identifier` | The Jira ID of the Jira component or project.                                                                               | A number that does not change when the Jira component or project is renamed.                   |
| `name`       | The name of the Jira component or project.                                                                                  | A Jira component name is unique only within its project.                                       |
| `projectKey` | The key of the Jira project that a Jira component belongs to, such as `PAY`.                                                | Jira components only. Several Jira components in a project share this value.                   |

Whichever path you choose, the **Catalog YAML Path** must hold the same value on your catalog entity. For example, if you choose `key`, the entity needs a `jira/component-key` or `jira/project-key` annotation with the Jira key.

#### 4. Configure advanced settings

The **Advanced Settings** section controls how frequently IDP syncs with Jira and how far back ticket data is pulled.

![Figure 5: Advanced Settings](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-5763e56f1e4129fe5e4a0e309eee643863fcd025%2Fjira-advanced-settings.png?alt=media)

1. Select an **Update Frequency** from the dropdown to control how often IDP polls Jira for new data.

   You can change the update frequency later from the integration's **Configuration** screen.

   Available options: `10 min`, `30 min`, `1 hour`, `3 hours`, `6 hours`, `12 hours`, `1 day` *(Default)*, `2 days`, `7 days`.
2. *(Optional)* Set the **Select start date** to define the earliest date from which IDP will pull Jira ticket data. If you do not set a date, the start date defaults to the last 12 months.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>START DATE UPDATE LIMITS</strong></p><p>After you configure the integration, you can change the start date only to an earlier date than the one originally selected.</p></div>

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>HOW SYNC WORKS</strong></p><p>Jira components and Jira projects are fully refreshed on every sync. Tickets are fetched incrementally, so after the first sync only changed tickets are fetched. If you set the start date far in the past, the first sync can take longer because IDP retrieves tickets from that date onward.</p></div>
3. Once all sections are configured, click **Confirm & Enable**.

The integration is enabled and IDP begins syncing data from Jira. Discovered components and projects appear in the [**Discovered** tab](#discovered-tab).

### Sync behavior and limits

| Item                             | Behavior                                                                                                                                                                                                                                                                                                                                                                      |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Direction**                    | One-way, from Jira into the IDP Catalog. IDP never writes back to Jira.                                                                                                                                                                                                                                                                                                       |
| **Default update frequency**     | 1 day. Options range from 10 minutes to 7 days. Set in **Advanced Settings**. You can change it later from **Configuration**.                                                                                                                                                                                                                                                 |
| **Start date**                   | Defaults to the last 12 months. You can only move it earlier, not later.                                                                                                                                                                                                                                                                                                      |
| **Jira components and projects** | Fully refreshed on every sync.                                                                                                                                                                                                                                                                                                                                                |
| **Tickets**                      | Synced incrementally, based on their last updated time.                                                                                                                                                                                                                                                                                                                       |
| **Counts and rollups**           | Include only tickets updated on or after the start date.                                                                                                                                                                                                                                                                                                                      |
| **Data retention**               | Ticket data is kept for 180 days after IDP last syncs the ticket, and the period restarts each time the ticket is synced again. A ticket that is not updated in Jira, including an open ticket, expires 180 days after its last sync and is no longer counted. A start date older than 180 days still brings those tickets in, and they are kept for 180 days from that sync. |
| **Jira card**                    | Displays open tickets updated on or after the start date, up to the latest 2,000.                                                                                                                                                                                                                                                                                             |

### Discover and import Jira entities

This section covers how to view the Jira entities discovered by the integration and import them into your IDP Catalog.

#### Discovered tab

After the integration runs, all Jira entities detected appear in the **Discovered** tab. Use the **Components** and **Project** filters to switch between the two kinds, and the search box to find an entity by name. The tab displays when the last sync ran. If entities do not appear, use the **Sync** button to manually refresh.

For each discovered entity, you can view its name, the catalog action, kind, and the date it was detected. The default action for each row follows the **Entity Registration Behavior** you chose for that entity type.

{% hint style="warning" %}
**MERGE CANNOT BE UNDONE**

Review the recommended entity before you merge. Do not merge the same catalog entity from two Jira integrations, because its ticket counts are added twice.
{% endhint %}

##### Discovered components

Jira components are set to **Merge** by default. IDP recommends a matching catalog entity for each Jira component, using the correlation mapping you configured.

![Figure 6: 'Discovered' tab showing discovered Jira components](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-1a26055bbde481f007f9b693d2e0ac0f0ff71bdb%2Fjira-discover-auto-import.png?alt=media)

Choose one of the following actions for each Jira component:

* **Merge** - Links the Jira component to an existing catalog entity, enriching it with Jira data. Use the **Select an entity to merge with** dropdown on the row to confirm the recommended entity or choose another.
* **Register** - Creates a new catalog entity from the Jira component. Under **Register to your Catalog as**, enter the name for the new entity. IDP generates an ID from the name, which you can see next to the field.

##### Discovered projects

Jira projects are set to **Register & Merge** by default. A Jira project that matches an existing catalog entity is merged. A Jira project with no match is registered as a new entity.

![Figure 7: 'Discovered' tab showing discovered Jira projects](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-c7f004970f21dfae5673693f77c34f11c2ffc8c8%2Fjira-discovered-projects.png?alt=media)

Choose one of the following actions for each Jira project:

* **Register** - Creates a new catalog entity from the Jira project. Under **Register to your Catalog as**, enter the name for the new entity. IDP generates an ID from the name, which you can see next to the field.
* **Merge** - Links the Jira project to an existing catalog entity, enriching it with Jira data. Use the **Select an entity to merge with** dropdown on the row to choose the catalog entity.

{% hint style="info" %}
**BULK IMPORT AND AUTO IMPORT OPTIONS**

* **Bulk Import** - Select the entities individually using the checkboxes, or use the **Select entities** menu in the bar at the bottom of the page to select entities in bulk. Then click **Import selected entities**.
* **Auto Import** - Select **Auto-import future discovered entities** in the **Discovered** tab to automatically import all future entities without manual review. You can change this preference at any time.
  {% endhint %}

#### Imported tab

The **Imported** tab displays all Jira entities that have been brought into the catalog. Use the **Components** and **Project** filters to switch between the two kinds, and the search box to find an entity by name.

![Figure 8: 'Imported' tab showing Jira entities linked to catalog entities](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-93f7ab775c524e0b7d10b60f288a187847acc781%2Fjira-imported-tab.png?alt=media)

The tab displays the following data:

| Column                    | Description                                                              |
| ------------------------- | ------------------------------------------------------------------------ |
| **Jira Catalog Entities** | The name of the Jira component or project, along with its import status. |
| **Entity**                | The linked IDP catalog entity and its ID.                                |
| **Kind**                  | The catalog entity kind (e.g., `System`).                                |
| **Type**                  | The catalog entity type (e.g., `projects`).                              |
| **Scope**                 | The Harness scope the entity belongs to (e.g., Account).                 |
| **Imported At**           | The date the entity was imported.                                        |

{% hint style="warning" %}
**UNLINK AN IMPORTED ENTITY**

To stop syncing a specific entity without deleting the catalog entity, use the three-dot menu on any row and select **Unlink**. This stops sync updates while keeping the IDP entity and its existing data intact. The Jira data already ingested stays on the entity but is no longer updated, and you cannot edit the ingested properties.
{% endhint %}

#### Events tab

The **Events** tab logs all sync and lifecycle activity for this integration. Use it to:

* Verify that syncs are running.
* Confirm that imports completed successfully.
* Investigate any failures.

![Figure 9: 'Events' tab showing sync events](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-7d4d8fad2ffa42c2d1cc541e9abac96b69c53446%2Fjira-events-tab.png?alt=media)

Each event displays the following data:

| Column           | Description                                                                               |
| ---------------- | ----------------------------------------------------------------------------------------- |
| **Event**        | The event name, for example **Sync completed**.                                           |
| **Status**       | The result of the event, for example **SUCCESS**.                                         |
| **Description**  | A short summary of the event, for example the number of records synced.                   |
| **Started**      | When the event started.                                                                   |
| **Last Updated** | When the event was last updated.                                                          |
| **Triggered By** | Who started the event: **System** for scheduled syncs, or the user who selected **Sync**. |

Use the **Event Type** and **Status** filters to narrow the list. The **Event Type** filter includes the following options:

* Sync run
* Integration created
* Integration updated
* Integration enabled
* Integration disabled
* Entities manual import
* Entities unlink
* Auto import

Click **Refresh events** to load the latest events.

For the full event type reference and detail panel fields, go to [Integration Events](https://developer.harness.io/internal-developer-portal/use-idp/software-catalog/create-entity/catalog-discovery/integration-events.md).

***

### View Jira entities in the catalog

Once imported, Jira entities are available in the **Catalog** section of IDP as standard catalog entities.

Each imported Jira entity is registered with the following default details:

| Entity type          | Kind        | Type       |
| -------------------- | ----------- | ---------- |
| **Component Entity** | `Component` | `service`  |
| **Project Entity**   | `System`    | `projects` |

The Kind and Type shown are the defaults. They apply unless you set different values when you created the integration. A registered entity gets the name and ID you entered under **Register to your Catalog as**. A merged entity keeps its existing name and ID.

Open any entity to view Jira-sourced data directly on the entity details page. This data is displayed in a card on the **Overview** tab and in a **Jira** tab. The card and the tab each require a one-time layout configuration, described in the [next section](#layout-for-jira-components-and-projects).

#### Layout for Jira components and projects

To display Jira data on the [entity details](https://developer.harness.io/internal-developer-portal/use-idp/software-catalog/create-entity/entity-details.md) page, you need to add the `IntegrationsContent` component to the relevant entity layout. You can also add the **Jira** tab. Configure the layout once for each kind and type you import:

* **Component Entity**: Kind `Component` and Type `service`.
* **Project Entity**: Kind `System` and Type `projects`.

1. From the left sidebar of IDP, go to **Configure** → **Layout** → **Catalog Entities**.
2. Edit the existing layout for your entity or create a new one.
3. Select the **Entity Kind** and the **Entity Type** that match your imported Jira entities, for example `Component` and `service`.
4. In the YAML editor, add the `IntegrationsContent` component inside the **Overview** tab's `contents` block. This adds the Jira card to the **Overview** tab. The layout for Jira projects (Kind `System`) may not include it, so add it there too.

   ```yaml
   - component: IntegrationsContent
     specs:
       gridProps:
         md: 12
   ```

   ![Figure 10: Entity Layout configuration for Jira components](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-ea05ca292785bc1c33788cfa87d78aac9d7d475b%2Fjira-layout-card.png?alt=media)
5. To add a **Jira** tab that lists the tickets, add the following as a new tab in the layout. Some layouts already include it. In that case, you do not need to add it again.

   ```yaml
   - name: Jira
     path: /jira
     title: Jira
     contents:
       - component: JiraIntegrationTab
   ```

   ![Figure 11: Entity Layout configuration for the Jira tab](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-b92696ce5a46a479a7d4fc8b720eadd247574819%2Fjira-layout-tab.png?alt=media)
6. Click **Save** to apply the layout changes. The Jira card and the **Jira** tab now appear on all entity detail pages of the selected kind and type that have Jira data.

#### Jira card in the Overview tab

After the layout is configured, a **Jira** card appears in the **Overview** tab of any entity that has Jira data linked to it. The card displays open tickets updated on or after the configured sync start date, limited to the latest 2,000 tickets fetched from Jira. It is sourced from the entity's [ingested properties](#ingested-properties).

![Figure 12: Jira card on the Overview tab of a Component](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-27b90d47d40b46ff1e04fef07beb96c3a55f26f1%2Fjira-card-component.png?alt=media)

The card displays the following:

| Metric           | Description                                                    |
| ---------------- | -------------------------------------------------------------- |
| **Open tickets** | The total number of open tickets.                              |
| **To do**        | The number of open tickets in the To do status category.       |
| **In progress**  | The number of open tickets in the In progress status category. |
| **Unassigned**   | The number of open tickets that have no assignee.              |
| **Open bugs**    | The number of open tickets of type Bug.                        |
| **Overdue**      | The number of open tickets whose due date has passed.          |

The card also displays the Jira project, with its key and name, and the project lead.

#### Jira tab

The **Jira** tab lists the tickets for the entity. You can search for a ticket, filter the list by values such as status and assignee, sort it by fields such as priority, and click a ticket to open it in Jira. The filter values and statuses follow your own Jira setup, so they can differ between organizations.

![Figure 13: Jira tab showing tickets for a Component](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-fc6de4da9857f0fe4cf56945334e1d4c7b30d228%2Fjira-tab.png?alt=media)

#### Ingested properties

To inspect the data ingested from Jira, open the entity, click **View YAML**, and select **Ingested Properties** in the Entity Inspector.

![Figure 14: Entity Inspector showing Ingested Properties](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-c5886f9e71139ce67cb7be354856175c038ded57%2Fjira-ingested-properties.png?alt=media)

Ingested properties are part of the entity YAML. They are added through the ingestion API and are not stored in the YAML file in Git.

The Jira integration adds the following properties:

* **Jira data** (`metadata.integration_properties.Jira`): The values synced from Jira. For a Jira component, the Jira data includes fields such as `identifier`, `key`, `name`, `lead`, `openIssues`, `issuesByStatusCategory` (`todo`, `inProgress`, `done`), and `issuesByType`.
* **Integration link** (`metadata.integration.account.<integration-identifier>`): How the entity was linked to the integration. The integration link includes `entity_uuid`, `imported_at`, and `entity_action`, for example `MERGE`.
* **Integration reference** (`integration_config_ref`): The integrations that provide data to the entity. Jira integrations are listed under `Jira.components` for Jira components.

### Manage the Jira integration

#### Edit the integration

To update the integration settings, navigate to the **Integrations** page, find your Jira integration card, and click **View**. To open the edit screen, click **Configuration**.

#### Suspend auto-discovery

If auto-discovery is suspended, new Jira components and projects are not synced into the IDP Catalog. Existing catalog entities remain unchanged.

To suspend auto-discovery, perform the following steps:

1. Go to **Integrations** and open your Jira integration using the **View** button.
2. Click **Configuration**.
3. In the **Danger Zone** section, click **Suspend**.
4. Confirm the action.

#### Delete the integration

To delete the integration, perform the following steps:

1. Go to **Integrations** and open your Jira integration using the **View** button.
2. Click **Configuration**.
3. In the **Danger Zone** section, click **Delete**.
4. Confirm the action.

![Figure 15: Danger Zone with the Suspend and Delete options](https://1305598861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bzrz9ybUGCcYdvS4u0z%2Fuploads%2Fgit-blob-11903c210f3dce5baa6229e8769552c9c7d52032%2Fjira-danger-zone.png?alt=media)

***

### Troubleshooting

<details>

<summary>No entities appear in the <strong>Discovered</strong> tab</summary>

* Open the **Events** tab and check whether the sync completed or reported an error.
* Click **Sync** to trigger a sync manually.
* The first sync can take longer than later ones, so wait a few minutes before retrying.

</details>

<details>

<summary>Jira projects appear, but Jira components are missing</summary>

Jira components may not be enabled for the space in Jira. If a space has no components, only its project is discovered. To check, open the space in Jira and look for **Components** in the space's navigation, for example in the sidebar or the top tabs. It may be under **More**. If components are missing, ask a Jira administrator to enable them or create them, and then click **Sync** in the **Discovered** tab.

</details>

<details>

<summary>No recommended match when merging</summary>

IDP matches by comparing the Jira key with an annotation on your catalog entity. Jira names and catalog entity names often differ, so IDP finds no match until you add the annotation.

* Add `jira/component-key` (for Jira components) or `jira/project-key` (for Jira projects) to the catalog entity.
* The annotation value must exactly equal the Jira key. A Jira component key is the project key, a hyphen, and the component name, for example `PAY-Payments`. A Jira project key is the short prefix on your ticket IDs, for example `PAY`.

For details, go to [Configure mapping & correlation](#3.-configure-mapping-and-correlation).

</details>

<details>

<summary>The Jira card or the Jira tab is missing</summary>

The Jira card and the **Jira** tab each need a one-time layout configuration. To show the card, add `IntegrationsContent` to the `contents` of the entity's Overview layout. To show the tab, add the `JiraIntegrationTab` block with the path `/jira`. For the steps, go to [Layout for Jira components and projects](#layout-for-jira-components-and-projects).

</details>

<details>

<summary>Ticket counts are lower than in Jira</summary>

Counts include only tickets updated on or after the start date, which defaults to the last 12 months. IDP also removes a ticket 180 days after its last sync, so an open ticket that has not been updated in Jira for 180 days is no longer counted. The Jira card also displays at most the latest 2,000 open tickets. Move the start date earlier in **Advanced Settings** to include older tickets.

</details>

<details>

<summary>Ticket counts are higher than in Jira</summary>

Two integrations may be merged into the same entity, which doubles the counts. Check `metadata.integration.account` on the entity to see which integrations contributed.

</details>

<details>

<summary>Jira data on an entity is not up to date</summary>

Jira data on an entity may be out of date for the following reasons:

* The entity may have been unlinked. When you unlink an entity, IDP stops updating it. Open the **Events** tab and filter by the **Entities unlink** event type to check.
* IDP syncs on the **Update Frequency** you chose in **Advanced Settings**. The default is 1 day. To change it, open the integration and click **Configuration**. To refresh immediately, click **Sync** in the **Discovered** tab.

</details>

<details>

<summary>My Jira connector does not work with the integration</summary>

Confirm that the Harness Jira connector uses **Username and API Key** authentication and passes its connection test. The integration supports only Jira Software Cloud. Jira Software Data Center, Jira Server, and connectors that use a Personal Access Token (PAT) are not supported yet. To create a connector, go to [Create a Jira connector](#create-a-jira-connector).

If the connector worked before, the API token may have expired or been revoked. Create a new token and update the secret in Harness.

</details>

<details>

<summary>A Jira entity was merged with the wrong catalog entity</summary>

A merge cannot be undone. If you unlink an imported entity, IDP stops updating it, but the Jira data already ingested stays on the entity. You cannot edit ingested properties. Do not merge the same catalog entity from two Jira integrations, because its ticket counts are added twice.

</details>

<details>

<summary>I want to exclude some Jira projects or components from the sync</summary>

IDP does not currently support excluding Jira projects or components from the sync. You can choose which custom fields to sync, but IDP includes all Jira projects and components.

</details>

<details>

<summary>Some Jira projects or components are missing</summary>

The Jira account behind the connector can only view the Jira projects and components that it has the **Browse projects** permission on. If it cannot view a project or component in Jira, IDP cannot discover it.

To check, sign in to Jira with the account behind the connector and confirm that you can open the project and view its components. If you cannot, ask a Jira administrator to grant that account the **Browse projects** permission.

</details>

{% @harness-feedback/feedback %}
