# Jira Server and Jira Data Center

### Step 1: Check prerequisites

To be able to integrate Swarmia with your on-premise Jira instance:

* It must be reachable over the public internet, at a specific hostname, using HTTPS
* It must be able to send webhook requests to the public internet, using HTTPS
* You must be using Jira version 8.14 or above

If your Jira instance is behind a firewall that only allows traffic from specific IP addresses, make sure to allow these addresses:

* Inbound IPs (we make HTTPS requests to your Jira instance): 34.89.165.89 & 35.234.103.84
* Outbound IPs (your Jira instance makes HTTPS requests to us): 34.117.202.112 (hook.swarmia.com) & 34.107.207.241 (app.swarmia.com)

### **Step 2: Create a service account**

We will need to create a [Personal Access Token](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html), which will be used for authentication between Swarmia and your Jira instance. This token needs to be tied to a specific user account, and it is better to create a dedicated user for this purpose, instead of tying it to someone's personal Jira account.

Go to your Jira user administration, and create a new user. You may use your own email address, and an arbitrary, secure password. The username and full name can also be whatever you prefer, as long as they help you identify this service account later.

<figure><img src="/files/tH1gKzAAkQFx0tgxryex" alt=""><figcaption></figcaption></figure>

### **Step 3: Create a personal access token**

To create the personal access token, you'll need to log into your Jira instance using the service account you just created.

Once logged in, navigate to Profile → Personal Access Tokens → Create token, and make sure you uncheck "Automatic expiry".

<figure><img src="/files/eg968QdH2bHBNCHWyD4e" alt=""><figcaption></figcaption></figure>

Once you create the token, it will be displayed only once. Make sure you keep a copy of it in a safe place for the next step.

### **Step 4: Connect Swarmia to your instance**

Navigate to the Jira settings page (<https://app.swarmia.com/settings/jira>) and select the "On-premise installation" option.

<figure><img src="/files/qUceG7ME1rXXuLig45EG" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/edHvXaWRdjgkVLfx4z29" alt=""><figcaption></figcaption></figure>

Follow the steps that will guide you to connect Swarmia to Jira. Once you have finished the three steps, click on "Finish setup". This will connect Swarmia to your Jira instance and start syncing your data.

#### Install webhook

In order to keep the data in sync between Swarmia and your Jira instance, a webhook needs to be created. All the needed information are provided in the "Step 3: Create a webhook" during the installation.

With the webhook details at hand, navigate to Jira Administration → System → WebHooks → Create a WebHook, and fill in the form as follows:

<figure><img src="/files/Vdgt7jYk66wqWAx4fSQG" alt=""><figcaption></figcaption></figure>

Once the Jira integration is complete, proceed to [Jira configuration](/settings/integrations/issue-trackers/jira/jira-setup.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.swarmia.com/settings/integrations/issue-trackers/jira/jira-server-and-jira-data-center.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
