# Jira Data Center Destination

## Overview

Destinations are integrations that receive alerts from rules, policies, system health notifications, and rule errors. Panther supports configuring self-hosted [Jira Data Center](https://www.atlassian.com/enterprise/data-center/jira) as the destination where you will receive alerts.

When an alert is forwarded to a Jira Data Center destination, a bug, story, or task is created in the specified project with the specified assignee.

This page explains how to set up a Jira Data Center destination. See the [instructions for setting up a Jira Cloud destination here](https://docs.panther.com/alerts/destinations/jira).

## How to set up Jira Data Center alert destinations in Panther

### Prerequisite (recommended): Create a Jira user to represent updates from Panther

This integration authenticates with your Jira instance using a [personal access token](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html)—you will create one below, in [Step 1](#step-1-create-a-personal-access-token-in-jira-data-center). All Jira tickets originating from Panther will display as having been created by the user who owns this access token. As such, it is recommended to first create a new Jira user (with a descriptive name) solely for this purpose, and then use that user to create the access token.

{% hint style="info" %}
To complete this prerequisite, you must be logged in as a Jira user who has permissions to create users.
{% endhint %}

1. In your Jira console, navigate to the **User Management** page.
2. Click **Create user**.
3. On the **Create a new user** page, fill in the form:

   * **Email address**: Enter a unique email address a Jira administrator will have access to.
   * **Full name**: Enter a descriptive name, e.g. `Panther Bot`.
   * **Username**: Enter a descriptive name, e.g. `pantherbot`.
   * **Password**: Enter a password an administrator will be able to use to authenticate with.
   * **Send notification email**: This field can be unchecked.
   * **Application access**: Select **Jira Software**.

   <div align="left"><figure><img src="https://4011785613-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgdiSWdyJcXPahGi9Rs-2910905616%2Fuploads%2Fgit-blob-aca2fe4948e5d541ba8b28c42773f3e7788f7532%2FScreenshot%202024-05-01%20at%203.10.57%20PM.png?alt=media" alt="A &#x22;Create new user&#x22; form is shown, with various fields, including &#x22;Email address,&#x22; &#x22;Full name,&#x22; and &#x22;Username.&#x22; At the bottom is a &#x22;Create user&#x22; button." width="290"><figcaption></figcaption></figure></div>
4. Click **Create user**.
5. Log in as this newly created user and proceed to the next step.

### Step 1: Create a personal access token in Jira Data Center

1. In your Jira console, navigate to your user profile.
   * It is recommended to be logged in as the user you created during the [Prerequisite](#prerequisite-recommended-create-a-jira-user-to-represent-updates-from-panther).
2. In the left-hand navigation bar, click **Personal Access Tokens**.
3. Click **Create token**.\
   ![A Jira Software screen is shown, opened to a "Personal Access Tokens" page. At the bottom is a "Create token" button.](https://4011785613-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgdiSWdyJcXPahGi9Rs-2910905616%2Fuploads%2Fgit-blob-ed41d7e0a9c5690cc2daabe06f4dd010814ca2b4%2FScreenshot%202024-05-01%20at%203.15.22%20PM.png?alt=media)
4. In the **Token Name** field, enter a descriptive name.
5. Under **Expiry Date**, uncheck the **Automatic expiry** checkbox.\
   ![A "Create a personal access token" form is shown. There are various fields, such as "Token Name," and "Automatic expiry," and at the bottom is a "Create" button.](https://4011785613-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgdiSWdyJcXPahGi9Rs-2910905616%2Fuploads%2Fgit-blob-6daae841f0a43e6a6ce6fa1137fa95555c154cf0%2FScreenshot%202024-05-01%20at%203.15.45%20PM.png?alt=media)
6. Click **Create**.
7. Copy your personal access token, and store it in a secure location. You will need it in the next step.\
   ![Above a field with a blurred-out value is a header reading "New personal access token created." Under the field is a "Close" button.](https://4011785613-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgdiSWdyJcXPahGi9Rs-2910905616%2Fuploads%2Fgit-blob-bcb490a8fb4639083c75995d11cb092287df4034%2Fpersonalaccesstokenjira.png?alt=media)

### Step 2: Configure the Jira Data Center alert destination in Panther

1. In the left-hand navigation bar of your Panther Console, click **Configure > Alert Destinations**.
2. Click **+Add your first Destination**.
   * If you have already created Destinations, click **Create New** in the upper right side of the page to add a new Destination.
3. Click **Jira Data Center**.
4. Fill out the form:
   * **Display Name**: Enter a descriptive name.
   * **Organization Domain**: Enter your organization's Jira domain (e.g. <https://jira.example.com>).
   * **Issue Type**: Enter the Jira Issue Type you would like to created. This can be `Bug`, `Story`, `Task`, or any custom type.
   * **Project Key**: Enter the Jira project identifier within your organization.
     * You can find this in Jira in your project settings page, or by browsing your organization's Jira projects and locating the `key` column.
   * **Email**: Enter the email address of the Jira user who has permissions to create the new issues with the corresponding Jira API Key.
     * It is recommended to use the email address of the user created during the [Prerequisite](#prerequisite-recommended-create-a-jira-user-to-represent-updates-from-panther).
   * **Jira API Token**: Enter the API token you generated in the earlier steps of this documentation.
   * **Severity Levels**: Select the severity level of alerts to send to this destination.
   * **Default Alert Types**: Select the alert types to send to this destination.
   * **Log Types**: By default, we will send alerts from all log types. Specify log types here if you want to only send alerts from specific log types.
   * **Allow Manual Dispatch**: Set this toggle ON if you'd like to be able to [manually dispatch alerts](https://docs.panther.com/alerts#manual-alert-dispatch) to this destination.\\

     <figure><img src="https://4011785613-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgdiSWdyJcXPahGi9Rs-2910905616%2Fuploads%2Fgit-blob-6a42133aad82cb9d98f4873d39cf62fb3e428e38%2Fimage.png?alt=media" alt="Under a title reading &#x22;Configure your Jira Data Center Destination&#x22; is a form with various fields, including Display Name, Issue Type, and Severity." width="375"><figcaption></figcaption></figure>
5. Click **Continue**.

### Step 3: Configure Jira issue properties

1. On the **Configure Jira Issue Properties** page, fill out the form:

   * **Assignee Username**: Select the user that issues will be assigned to.
     * The users available in this dropdown field are pulled from your Jira instance.
   * **Label and prioritize issues based on severity level**: Enable this if you would like to apply labels and a priority level in Jira based on alert severity in Panther. If disabled, you can still set labels and a priority level globally i.e., not based on severity). The labels and priority levels available in these dropdown are pulled from your Jira instance. If you create a new label in the **Labels** dropdown, it will also be created in your Jira instance.

     * If set to **ON**: For each severity level, specify the **Labels** and **Priority**.

     <figure><img src="https://4011785613-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgdiSWdyJcXPahGi9Rs-2910905616%2Fuploads%2Fgit-blob-c3a1e3571e6cf2696ba1c1a247bc8ef7588530d2%2Fimage.png?alt=media" alt="A &#x22;Label and prioritize issues based on severity level&#x22; toggle is shown as ON. Underneath is a list of Panther severity levels. Each one has an arrow to a Labels field and Priority field." width="563"><figcaption></figcaption></figure>

     * If set to **OFF**: Specify the **Labels** and **Priority** for all Jira issues created by Panther.

   <figure><img src="https://4011785613-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LgdiSWdyJcXPahGi9Rs-2910905616%2Fuploads%2Fgit-blob-7ba958d848d5b403b4a7fa1bfd57d5a9a97f2b03%2Fimage.png?alt=media" alt="A &#x22;Label and prioritize issues based on severity level&#x22; toggle is shown as OFF. Under it are two form fields: Labels and Priority." width="563"><figcaption></figcaption></figure>
2. Click **Add Destination**.
   * On the final page, optionally click **Send Test Alert** to test the integration. When you are finished, click **Finish Setup**.

## Additional Information on Destinations

For more information on alert routing order, modifying or deleting destinations, and workflow automation, please see the Panther docs: [Destinations](https://docs.panther.com/destinations).
