Configuring JSM Alerts to Receive alerts via webhooks
Create the integration in JSM
Settings → Products → Jira Service Management → Integrations → Add integration
Select API

Name the integration and select an assignee team

Copy the API key:

Create the webhook in Email This Issue
Open Email This Issue → Administration → Webhooks → Add → Add custom webhook
Fill out the required details:
Name: custom name
Description
Event: select the event you want to create the alert for (reference our Alerting via Webhooks article for the available event types).
Service URL:
https://api.atlassian.com/jsm/ops/integration/v2/alertsAPI Token - paste the API key from step 3 above.
Request Header:
Authorization: GenieKey $!tokenRequest Body: a JSON-formatted message payload that contains JSM parameters with either hard-coded values or values from our variables.
{
    "message": "$!message",
    "alias": "$!entity.type - $!entity.id",
    "description": "$!details",
    "tags": [
        "Critical"
    ],
    "details": {
        "Entity Name": "$!entity.name",
        "Entity Type": "$!entity.type",
        "Entity ID": "$!entity.id",
        "Entity Link": "$!entity.link",
        "Jira Base Url": "$!jiraBaseUrl",
        "Incident Timestamp": "$!timestamp"
    },
    "entity": "Email This Issue",
    "priority": "P1"
}Last updated
Was this helpful?