> 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/sast-and-sca/prezero/integrations/jira.md).

# Jira plugin

The following instructions will walk you through installing the Qwiet Plugin for Jira.

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

You must have administrative privileges for Qwiet and Jira to set up the integration.

> The Qwiet Plugin for Jira currently supports a maximum of **1000 users**.

## Step 1: Add the Qwiet plugin to your Jira account <a href="#step-1-add-the-qwiet-plugin-to-your-jira-account" id="step-1-add-the-qwiet-plugin-to-your-jira-account"></a>

1. Log into your Jira instance with an administrator account. Using the navigation bar in the header, go to **Apps** > **Explore more apps**.

![Find apps option](/files/x491An0uhscFKW8KPrLF)

2. Use the search bar to search for **Qwiet AI** and open up the Qwiet AI app.

![Find apps in marketplace](/files/mbvM6aGogPvK8noLBazX)

3. Click **Get app**. In the **Add to Jira** window that opens, click **Get it now**.
4. Jira will let you know when the installation is successful. At this point, you will find Qwiet listed whenever you navigate to **Apps** > **Manage your apps**.

## Step 2: Create the integration token <a href="#step-2-create-the-integration-token" id="step-2-create-the-integration-token"></a>

You will need to create an integration token whose value you will provide to Jira later.

1. Log into the Qwiet Dashboard and go to [Integrations](https://app.shiftleft.io/organization/integrations). Click the **plus (+)** sign, and when prompted:

   * Provide a **label** (or unique name) for the token
   * Provide a **token description** (optional)
   * Choose a **role** (select **Jira Plugin** )
   * Provide a **TTL** value that sets the length of time for which the token will be valid (optional)

   ![Create Integration Tokens dialog](/files/zqDJif92MuVEiCqhvRu6)
2. Click **Create Token** to proceed.

You'll be shown your token and your OrgID, which you'll provide during the plugin configuration process. **You can only view your token once, so please be sure to save its value before closing out of the dialog window.**

## Step 3: Add fields to hold Qwiet AI data in the Jira task <a href="#step-3-add-fields-to-hold-qwiet-ai-data-in-the-jira-task" id="step-3-add-fields-to-hold-qwiet-ai-data-in-the-jira-task"></a>

1. In the left-hand navigation bar, select **Project Settings** > **Issue types**. This redirects you to the **Task** configuration screen.
2. Using the search bar available in the right-hand **Fields** panel, search for **SL**. Drag and drop **SL Findings Detail** and **SL Finding ID** to the center of the page where it says **Context Fields**.

![Add Context Fields](/files/AMBGDT78vlBTfJprsuWF)

> If you want the Jira plugin to create Bugs, Epics, or Subtasks, you will need to repeat the process of adding **SL Findings Detail** and **SL Finding ID** to the config for each issue type.

3. When done, click **Save changes** at the bottom of the screen.

## Step 4: Configure your plugin <a href="#step-4-configure-your-plugin" id="step-4-configure-your-plugin"></a>

1. In your project, go to **Project Settings** > **Apps** > **SL Project Configuration**.
2. Paste in your **Qwiet Jira Integration Token** and **Qwiet OrgId** values, and click **Save Token**.

![Authentication screen](/files/tDfgsfVvAUotlRZEQGP9)

3. Once you've successfully linked your plugin with your Qwiet account, you'll see a **Qwiet Issue Default config** section. This allows you to map Qwiet findings to Jira types.

![Configuration options](/files/H4UpCcVmOgBtuaRqznSI)

4. For example, for each **Critical** finding that you send over, you might want it to create a **Task**. If you've marked something as **Fixed**, you might want it to show as **Done** in Jira.
5. The complete list of options available to you is as follows:
   * **Qwiet Projects**: The specific projects in Qwiet whose identified vulnerabilities you want to be imported to Jira
   * **Critical - Issue**: The Issue Type (e.g., task, sub-task, bug) you wish to be created for vulnerabilities that are flagged as critical in severity
   * **High - Issue**: The Issue Type (e.g., task, sub-task, bug) you want to be created for vulnerabilities that are flagged as high severity
   * **Medium - Issue**: The Issue Type (e.g., task, sub-task, bug) you want to be created for vulnerabilities that are flagged as medium in severity
   * **Low - Issue**: The Issue Type (e.g., task, sub-task, bug) you want to be created for vulnerabilities that are flagged as low severity
   * **Fixed Workflow Action**: The status you want to be assigned to the Jira issue for the vulnerability when you mark it as **Fixed** in the Qwiet Dashboard
   * **Ignored Workflow Action**: The status you want to be assigned to the Jira issue for the vulnerability when you mark it as **Ignored** in the Qwiet Dashboard
   * **Default Assignee**: The name to auto-assign to the newly-created issues
   * **Reporter**: The name to attach to the issues as the reporter (we recommend creating a user specifically for this purpose so that you can quickly identify all issues created by the plugin)
   * **JIRA Contact Email (a Qwiet AI user that manages jira)**: The Qwiet user that's managing the Jira plugin
   * **Maximum bulk JIRA issue creation (0 is unlimited)**: The maximum number of Jira issues that a user can create at once (set to zero to make this value unlimited)
6. Make the changes you would like; click **Save Defaults** to persist your changes.

## Step 5: Send issues to Jira <a href="#step-5-send-issues-to-jira" id="step-5-send-issues-to-jira"></a>

At this point, you can create Jira tasks for the findings identified in Qwiet.

1. Select a finding, expand its menu, and click **Assign to Jira**. Alternatively, you can click **Details** to launch its detailed view in the Dashboard.

![Opening a Qwiet finding](/files/RYwOYW9rYj2f8lznqNp9)

2. Then, click **Assign to Jira**.

![Expanding a finding's detailed view](/files/wd3D1Wfcm5bG0PJ1wBqH)

## Step 6: Navigating between Jira and Qwiet <a href="#step-6-navigating-between-jira-and-qwiet" id="step-6-navigating-between-jira-and-qwiet"></a>

Once you've successfully created an issue, you'll see the newly created finding in Jira:

![Jira task board](/files/wRAmA3EZg6JXNZ1yBWj9)

When you open the Jira ticket, you'll see that the **description** has been populated with the same information in Qwiet. You'll also see a link under **Qwiet Finding Info** that lets you return to the Qwiet Dashboard.

![Viewing a Jira issue](/files/qY5OnDPZ6KNXAJRYim08)
