Automate Incident Resolution Across PagerDuty, Jira & Mattermost
detail.loadingPreview
Streamline your incident management by automatically resolving incidents in PagerDuty, updating linked Jira issues, and notifying your team in Mattermost. This workflow eliminates manual synchronization, ensuring all stakeholders are instantly informed of resolution.
About This Workflow
Incident response can be complex and time-consuming, often involving manual updates across multiple tools. This n8n workflow simplifies the entire process by acting as a central automation hub. Triggered by a custom webhook, it ensures that once an incident's resolution is signaled, its status is automatically updated in PagerDuty and the corresponding Jira issue is closed. Crucially, it then broadcasts real-time notifications to your Mattermost channels, keeping SREs, developers, and operations teams in sync. Say goodbye to manual cross-platform updates and hello to a more efficient, transparent incident resolution lifecycle.
Key Features
- Custom Webhook Trigger: Initiate the workflow via any external system or event, providing flexible integration points.
- Automated PagerDuty Resolution: Instantly mark incidents as resolved in PagerDuty, minimizing MTTR (Mean Time To Resolution).
- Jira Issue Synchronization: Automatically update the status of linked Jira issues (e.g., to "Done" or "Closed") upon incident resolution.
- Dynamic & Static Mattermost Notifications: Send tailored resolution messages to both dynamically specified channels and static team channels, ensuring broad and relevant communication.
- Contextual Incident Details: Include specific incident summaries from PagerDuty directly within your Mattermost notifications for clear, concise updates.
How To Use
- Configure Webhook Node:
- Set the
pathto a unique identifier (e.g.,incident-resolved). - Ensure
HTTP Methodis set toPOST. - The
webhookIdwill be automatically generated; this will form part of the URL you'll use to trigger the workflow.
- Set the
- Set up PagerDuty Node:
- Connect your
PagerDuty Credentials. - Set
OperationtoUpdate. - For
Incident ID, use an expression like={{$json["body"]["context"]["pagerduty_incident"]}}to pull the ID from the incoming webhook data. - Under
Update Fields, setStatustoresolved.
- Connect your
- Configure Jira Node:
- Connect your
Jira Software Cloud APIcredentials. - Set
OperationtoUpdate. - For
Issue Key, use an expression like={{$node["Webhook"].json["body"]["context"]["jira_key"]}}to get the Jira key from the webhook. - Under
Update Fields, setStatus IDto31(which commonly corresponds to "Done" or "Closed" in Jira; verify this for your instance).
- Connect your
- Set up Mattermost Node (1 - Dynamic Channel):
- Connect your
Mattermost APIcredentials. - For
Channel ID, use an expression like={{$node["Webhook"].json["body"]["channel_id"]}}to send the message to a channel specified in the webhook. - Customize the
Message(e.g., "💪 This issue got closed in PagerDuty and Jira.").
- Connect your
- Set up Mattermost Node (2 - Static Channel):
- Connect your
Mattermost APIcredentials. - For
Channel ID, enter the specific ID of the Mattermost channel you want to notify (e.g.,k1h3du9r9byyfg7sys8ib6p3ey). - Customize the
Message, using an expression like"🎉 The incident ({{$node["PagerDuty"].json["summary"]}}) was resolved by the lovely folks in the on-call team!"to include details from the PagerDuty node's output.
- Connect your
Apps Used
Workflow JSON
{
"id": "6693a5f8-d41d-4ded-b8e8-8e7a66849d32",
"name": "Automate Incident Resolution Across PagerDuty, Jira & Mattermost",
"nodes": 7,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 6693a5f8-d41d...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.