This workflow responds to a PagerDuty incident by creating an issue in Jira.
Before you run this workflow, you will need the following:
- A PagerDuty account.
- An instance of Jira available to the internet. Jira Cloud instances are compatible with this workflow.
Configure the workflow
Update the default parameter for
jiraProjectKeyfor the Jira project where you want tickets to be created.
- Currently, tickets will be created in the 'OPS' project by default.
Define the following secrets to connect to your Jira instance:
jiraURL: The URL to the root of your Jira instance. For Jira Cloud, this is
jiraUsername: The username to use when authenticating to Jira.
jiraToken: The API token (for Jira Cloud) or password to use when authenticating to Jira.
Test the workflow
You can test the workflow with dummy data by clicking the Run button. Ensure an appropriate issue is created in your Jira instance and the message you expect shows up in your Slack workspace. We recommend always testing workflows manually before configuring automated triggers.
Set up the trigger
When you create this workflow for the first time, we'll automatically provision a webhook for you. You need to provide this webhook to PagerDuty to complete the integration.
In the workflow overview page in Relay, find the webhook URL by navigating to the Setup sidebar. Copy the URL to your clipboard.
In PagerDuty, determine which services you want to run the workflow when an incident is triggered. For each of those services:
- Click on the Integrations tab.
- At the bottom of the page, click Add or manage extensions.
- Create a New Extension:
- Extension Type:
Generic V2 Webhook
- URL: Paste the webhook URL from your clipboard.
- Extension Type:
- Click Save.
Whenever an incident is triggered for the first time, this workflow will run.
You can reuse the same webhook URL for many services.