On a schedule
Escalate ServiceNow incidents before they breach SLA
Open incidents that have used more than 75 percent of their SLA are raised in priority and flagged in Slack once, while there is still time to act.
- Runs
- On a schedule
- Apps
- ServiceNow, Slack
- AI
- Not needed
- Access
- ServiceNow read+write; Slack chat:write
Send this to your assistant
Create a ClickRuntime automation: every 15 minutes, check open ServiceNow incidents whose SLA is over 75% elapsed, raise their priority, and alert #it-ops once per incident.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
An IT service provider has contractual response and resolution times with each client, and missed SLAs mean service credits and awkward review meetings. ServiceNow tracks the timers, but nobody watches them minute by minute, so an incident often comes to light only after it has already breached.
This automation gives the team a warning while there is still time. Every 15 minutes it checks active SLAs that are more than 75 percent elapsed, raises the priority of each related incident so it moves up the queue, and posts one alert in #it-ops. The team can pick it up, reassign it or update the customer before the clock runs out.
What you get out of it
Fewer missed SLAs
A warning at 75 percent leaves time to act. Fixing or escalating before the deadline protects both the customer relationship and your service credits.
The queue reorders itself
Raising the priority moves at-risk incidents to the top of everyone's list. Engineers working the queue see them first without checking timers.
One alert per incident
Each incident is flagged once, not every 15 minutes. The channel stays readable and each alert gets attention.
Better conversations with customers
Knowing early lets you update a customer before a breach rather than after. That is a much easier conversation.
How it works
What happens, step by step
Every 15 minutes, ClickRuntime asks ServiceNow for active SLAs that are more than 75 percent elapsed.
It skips incidents it has already flagged, so each one is only escalated once.
For each new at-risk incident, it raises the priority by one level in ServiceNow.
It posts an alert to #it-ops with the incident number, how much of the SLA has passed and a link.
Before it runs live
- Connect ServiceNow
- Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Google Sheets
- Combine it with other ServiceNow and Slack steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, state, notify
INSTANCE = "northwind.service-now.com"
def sn(method, path, **kw):
r = http.request(method, f"https://{INSTANCE}/api/now/table/{path}", auth=(credentials.secret("SERVICENOW_USER"), credentials.secret("SERVICENOW_PASSWORD")),
headers={"Accept": "application/json"}, **kw)
r.raise_for_status()
return r.json()["result"]
@on_trigger
def run(event):
flagged = set(state.get("flagged") or [])
slas = sn("GET", "task_sla", params={"sysparm_query": "active=true^percentage>75^task.sys_class_name=incident",
"sysparm_fields": "task.sys_id,task.number,task.priority,task.short_description,percentage"})
new = [s for s in slas if s["task.sys_id"] not in flagged]
for s in new:
priority = max(1, int(s["task.priority"] or 4) - 1)
sn("PATCH", f"incident/{s['task.sys_id']}", json={"priority": str(priority)})
notify.slack(f"⏱️ {s['task.number']} is {float(s['percentage']):.0f}% through its SLA: {s['task.short_description']}\nRaised to P{priority}. "
f"https://{INSTANCE}/incident.do?sys_id={s['task.sys_id']}", channel="#it-ops")
flagged.add(s["task.sys_id"])
state.set("flagged", list(flagged)[-2000:])
return {"escalated": len(new)}FAQ
Common questions
Can I change the 75 percent threshold?
What priority does it set?
Does it need write access to ServiceNow?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Spot recurring incidents in ServiceNow every morning
Each morning your IT channel gets a short list of problems that keep coming back across the last week of incidents, with counts and links.
See how it worksPost new high-priority ServiceNow incidents to Slack
Every new priority 1 or 2 incident appears in your IT Slack channel within minutes, with its number, short description and a link.
See how it worksKnow the moment your website goes down
Your team hears in Slack when the site stops responding or slows down, and again when it's back.
See how it worksKeep exploring
Set up “Escalate ServiceNow incidents before they breach SLA” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.
