# Jira

We support Jira as an alerting destination.

{% stepper %}
{% step %}
**Create a Jira API token**

1. Create an API token [here](https://id.atlassian.com/manage-profile/security/api-tokens)
2. Set the maximum **expiration date** of 365 days
3. Set **scopes**:
   1. `read:jira-user`
   2. `read:jira-work`
   3. `write:jira-work`
4. Select **create** and save the API token securely
   {% endstep %}

{% step %}
**Setup Jira Integration**

Under Policy Maker, select the Jira integration and input the following:

1. **User Email:** the e-mail associated with the API token
2. **Api Key**: the API token saved in the previous step
3. **Base Url:** the URL for your Jira tenant, e.g., `https://customerName.atlassian.net`
   {% endstep %}

{% step %}
**Add Jira notifications as an action**

1. Create or edit a policy, and **Add automated actions**
2. Add an action to **Create a Jira ticket**
3. Provide the **Project Key**, **Issue Type**, **Assignee**, **Reporter**, and any **custom fields**. Ensure that the user has access to the project and that the fields exist for the Project and Issue Type.
   {% endstep %}
   {% endstepper %}

{% hint style="warning" %}
It is recommended to add Jira notifications after a policy has been created and the initial violations populated. A ticket is created per violation, so ensure that policies are sufficiently scoped.
{% endhint %}


---

# 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.teleskope.ai/alerting-integrations/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.
