Major incident war room from ServiceNow to Slack and Jira

By General Input

Every five minutes, new ServiceNow P1 incidents open a Slack war room and a Jira engineering ticket, with all three records cross-linked automatically.

Integrations

  • ServiceNow
  • Slack Bot
  • Jira

Type

Agentic Task

Categories

  • Engineering
  • Operations

Build me an agent workflow that runs on a cron schedule every five minutes and acts as a major incident orchestrator across ServiceNow, Slack, and Jira. The goal is that any newly created Priority 1 (critical) incident in ServiceNow should immediately open a Slack war room message and a matching Jira engineering ticket, with all three records cross-linked.

On each run, the agent should:

1) Call ServiceNow's List Incidents action filtered to priority=1 and sys_created_on within the last 5 minutes (use a small buffer like 6 minutes to avoid edge gaps). For each incident, read short_description, description, caller, affected configuration item (cmdb_ci), assignment_group, and assigned_to.

2) Skip any incident whose work_notes already contain a sentinel tag like [war-room-bot:processed]. This is how we avoid double-posting if the cron overlaps with a slow downstream call.

3) For each new P1, write a one-paragraph incident summary in plain English covering the symptom, suspected scope (which system/CI/customers), and customer impact. The agent should decide what to surface vs. omit; do not just paste the raw description.

4) Post an opening message to the #major-incidents Slack channel via Slack Bot's Send a Message action. The message should include: the ServiceNow incident number (e.g. INC0012345), severity, the one-paragraph summary, the current on-call assignee (assigned_to display name) and assignment group, and a clickable deep link to the ServiceNow incident at https://<instance>.service-now.com/nav_to.do?uri=incident.do?sys_id=<sys_id>. Capture the posted message's permalink (or channel+ts) so we can write it back to ServiceNow in step 6.

5) Create a corresponding engineering Jira issue via Jira's Create Issue action in a configurable project (default key: INC or ENG). Use the same one-paragraph summary as the Jira summary/description, set priority to Highest, set issue type to Incident (or Bug if Incident is not configured), and add the label linked-from-servicenow. In the Jira description, include the ServiceNow incident number, the ServiceNow deep link, and the Slack channel link from step 4. Capture the returned Jira issue key (e.g. INC-4821).

6) Call ServiceNow's Update or Resolve Incident action on the original incident to append a work_note that contains: the Slack channel/message permalink, the Jira issue key and its browse URL, and the sentinel tag [war-room-bot:processed] so we know not to reprocess it. Work_notes are append-only journal fields in ServiceNow, so this just adds a new entry.

Operational notes for the agent: only fire downstream actions for genuinely new incidents (created in the last 5 minutes AND not yet tagged). If Slack succeeds but Jira fails, do not tag ServiceNow as processed yet, so the next run retries. Keep the Slack message tone calm and factual, not alarmist; it should read like an incident commander's opening note, not a stack trace. Do not include PII from the caller field beyond their display name.

Integrations: ServiceNow (List Incidents, Update or Resolve Incident), Slack Bot (Send a Message), Jira (Create Issue). Trigger: cron, every 5 minutes.

Configurable inputs that should be easy to change later: the Slack channel name, the Jira project key and issue type, the priority filter (default priority=1, optionally include 2), the lookback window in minutes, and the sentinel tag string.

Related prompts

Explore more prompts
A brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasonLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsLinkedIn Ads budget pacing dashboard for every client accountGive your team Looker numbers without buying more seatsPause marketing emails to escalated customers, then restore them