# Self-hosted Jira

### Configure your self-hosted Jira instance

1. Create an incoming link using application links (see [full instructions here](https://confluence.atlassian.com/adminjiraserver/configure-an-incoming-link-1115659067.html)).
   1. In Jira, go to **Administration → Applications → Application Links**
   2. Click **Create Link**
   3. Select **External Application**, and then choose **Incoming** as the direction.

2. Set the redirect URL applicable to your instance of Violet:

   * Violet: `https://app.violetlabs.com/oauth/redirect/`&#x20;
   * VioletGov: `https://app.violetgov.com/oauth/redirect/`

   Set the Permission to **Write** and click Save.

3. Copy the **Client ID & Client Secret** that are generated.

   <img src="/files/utaP84AnxSDrL9eCvqiS" alt="" width="375">

### Connect Jira to Violet

1. In [Violet](https://app.violetlabs.com/) (or [VioletGov](https://app.violetgov.com/)), navigate to **Integrations** and click  <img src="/files/IS4aq5Ad1Nr6RFUu4LLg" alt="" data-size="line"> to add a new integration.&#x20;
2. Select <img src="/files/jkhHlpO3IOR52zwd4Gef" alt="" data-size="line"> **Jira**

\[Optional] You can also provide a unique name for the connection based on the credentials you're using, and you can create **restricted permissions** to users or groups:

<figure><img src="/files/SpT8vIwBwWHZWTDqTFdP" alt="" width="375"><figcaption></figcaption></figure>

2. Enter the URL of your server instance and your Client ID and Client Secret and click **Connect**.

   <img src="/files/7llp4exsk4X7ldVIPDfc" alt="" width="188">
3. You’ll be redirected to an approval page on your Jira instance, click **Allow**

   <img src="/files/H5Da6fluOETg0pjgt6zz" alt="" width="375">
4. If it is not already selected, choose the connection you just created in the dropdown:

   <img src="/files/EfgFBlyHQ3LSvzEKQ0kN" alt="" width="375">
5. Once connected, configure your integration (optional), then click **Create.** You're done!


---

# 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://docs.violetlabs.com/apps/j/jira/self-hosted-jira.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.
