# Create a Jira Issue when a Bolt run complete with errors

## Introduction

This guide will show you how to set up an integration between Paradime and [Jira](https://www.atlassian.com/software/jira?\&aceid=\&adposition=\&adgroup=144591217916\&campaign=19313277976\&creative=642044761145\&device=c\&keyword=jira\&matchtype=e\&network=g\&placement=\&ds_kids=p74602868222\&ds_e=GOOGLE\&ds_eid=700000001558501\&ds_e1=GOOGLE\&gad_source=1\&gclid=CjwKCAjw17qvBhBrEiwA1rU9w0FxfE1zm86_W1gDbh4ub5A4CkZKAVUbjM7cnMljl66r3zcFfKrL8BoCE4wQAvD_BwE\&gclsrc=aw.ds) using [Paradime Webhooks](https://docs.paradime.io/app-help/developers/webhooks/custom-webhook-guides/broken-reference) and [Zapier](https://zapier.com/).

At the end of this tutorial, you will be able to create a Jira Issue every time a Bolt schedule fails including details of the Bolt schedule.

### Prerequisites&#x20;

For this integration, make sure you have the following:

* A Paradime [Bolt schedule configured](https://docs.paradime.io/app-help/documentation/bolt/creating-schedules)
* Paradime [Webhooks](https://docs.paradime.io/app-help/developers/webhooks/custom-webhook-guides/broken-reference) enabled
* A [Jira](https://www.atlassian.com/software/jira?\&aceid=\&adposition=\&adgroup=144591217916\&campaign=19313277976\&creative=642044761145\&device=c\&keyword=jira\&matchtype=e\&network=g\&placement=\&ds_kids=p74602868222\&ds_e=GOOGLE\&ds_eid=700000001558501\&ds_e1=GOOGLE\&gad_source=1\&gclid=CjwKCAjw17qvBhBrEiwA1rU9w0FxfE1zm86_W1gDbh4ub5A4CkZKAVUbjM7cnMljl66r3zcFfKrL8BoCE4wQAvD_BwE\&gclsrc=aw.ds) account
* A [Zapier](https://zapier.com) account

## Create a new Zap in Zapier

To trigger an action each time a webhook event is delivered in Zapier, create a new Zap with **Webhooks by Zapier** as the Trigger and **Catch Hook** as the Event.

Press **Continue**, and copy the webhook URL. You will need this to connect Zapier to Paradime.

<figure><img src="https://2337193041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHET0AD04uHMgdeLAjptq%2Fuploads%2FQN1O553XLvhopeQP5nsC%2FScreenshot%202024-03-11%20at%2017.00.26.png?alt=media&#x26;token=f7c1a2a6-72cf-4b5a-afea-550d610b946e" alt=""><figcaption></figcaption></figure>

## Configure a new Webhook in Paradime

In Paradime navigate to Account Settings and select Webhooks from the left Panel. Now you can click on `+ Add Endpoint` to configure your webhook.

* Enter the webhook URL generated by Zapier in the previews step
* Add a description for your webhook integration (optional)
* Filter to include in the event only the `bolt.run.`**`completed`** event

When done, click on `Create`  to setup the webhook.&#x20;

<figure><img src="https://2337193041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHET0AD04uHMgdeLAjptq%2Fuploads%2FmS3G7cI2XMIdSsZQXzjd%2FScreenshot%202024-03-11%20at%2017.07.11.png?alt=media&#x26;token=567eedff-c457-40ad-9333-748835b5d907" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Now that the integration is configured, to help with the next steps:

* Trigger a Bolt Run
* When the Bolt Run is completed, in Zapier, click on test trigger to receive a Bolt event which can be used to setup and test the Zapier action.
  {% endhint %}

## Configure a Zapier filter

Now let's filter the webhook events for Bolt schedule completed with status: `error` or `failed`. This will ensure that Linear Issues only for Bolt schedules completed with errors.

Add a **Only continue if...** step in Zapier, choose the **Status** field from the webhook response and filter for the condition to filer when status exactly match `error` or `failed`.

Click **Continue**. If the example Bolt run for your Zap setup matches any of the mentioned states, a confirmation message will display, indicating the Zap will proceed.

<figure><img src="https://2337193041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHET0AD04uHMgdeLAjptq%2Fuploads%2F8KlNoo07OuMab945LZDr%2FScreenshot%202024-03-11%20at%2017.25.07.png?alt=media&#x26;token=cff9d7ed-05ac-4e14-bbbc-fa8a11c7132c" alt=""><figcaption></figcaption></figure>

## Configure Jira action

Finally add another step to your Zap and select the Jira action. From the menu, select the event **Create Issue** and click on **Continue**.&#x20;

You will now need to authenticate to your Jira account and establish a connect. When completed you can setup the action to create a Jira Issue using Bolt Webhook events when a run completed with errors.

Here you will be able to template the Title and Description of the Jira Issue using any of the available metadata fields from the [Paradime Webhook JSON](https://docs.paradime.io/app-help/developers/webhooks/custom-webhook-guides/broken-reference) payload.&#x20;

<figure><img src="https://2337193041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHET0AD04uHMgdeLAjptq%2Fuploads%2Fh5RAW8aWhPSmuj3XDvIX%2FScreenshot%202024-03-11%20at%2020.08.38.png?alt=media&#x26;token=b3516291-ff0b-4753-b99b-562c7e0597e2" alt=""><figcaption></figcaption></figure>

## Test and deploy your Zap

When done, you can click on **Continue** and Test your Zap, and finally click on the **Publish** button to go live. Each time a Bolt run will complete with errors, a new Jira Issue will be created :raised\_hands:.

<figure><img src="https://2337193041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHET0AD04uHMgdeLAjptq%2Fuploads%2FXEaCoBPjMZCkJp8aMBrD%2FScreenshot%202024-03-11%20at%2020.11.16.png?alt=media&#x26;token=648ffe04-276b-4e34-97f7-7d8f9e0fb64f" alt=""><figcaption></figcaption></figure>
