Every 30 minutes
Get warned before an issue breaches its SLA
You hear about issues a few hours before their SLA runs out, once per issue.
- Runs
- Every 30 minutes
- Apps
- Linear
- AI
- Not needed
- Access
- read
Send this to your assistant
Create a ClickRuntime automation: every 30 minutes, check open Linear issues with an SLA and Slack me any that will breach in the next 4 hours.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Teams that promise response or resolution times in Linear, such as customer-facing support engineering or enterprise escalations, find out about a missed SLA after the fact. An issue breaches because it sat in someone's queue while they dealt with something else, and the first anyone hears is the customer asking where their fix is. The breach cost goodwill, and sometimes a service credit.
Every 30 minutes, ClickRuntime queries open issues that have SLA fields, compares each breach time with the current time and finds the ones within the warning window you set. It posts those to Slack and remembers which issues it already warned about, so each at-risk issue is announced once rather than repeatedly.
It suits teams with contractual or internal response targets. Teams can set the warning window to match their own commitments.
What you get out of it
Breaches are prevented, not reported
A warning two hours before a deadline lets someone reassign the issue or pick it up. That is far more valuable than a report on Monday saying that the deadline was missed.
Contract commitments are protected
If your agreement includes service credits for missed response times, each avoided breach saves money and avoids awkward conversations with an important customer. Early signs of overload are the cheapest to fix.
Workload problems become visible
When many issues approach their SLA at once, the alerts show that the team is overloaded. That is evidence to hire, reprioritize or push back on new commitments. That pressure shows up in the data before it shows up in burnout.
Alerts do not repeat endlessly
Storing which issues were already warned about keeps the channel readable. People respond to one clear warning rather than learning to ignore a stream of identical messages. Attention goes only where it is needed.
Customers hear from you first
A proactive update to a customer, sent before the deadline, builds more trust than an apology after it. The warning gives the account owner time to write it. That tone makes customers value your service even more.
How it works
What happens, step by step
Every 30 minutes, ClickRuntime checks your open Linear issues that have an SLA deadline.
It picks out the ones that will breach their SLA soon.
It skips issues it has already warned you about, so each one is flagged only once.
A message goes to your Slack channel with the issue, its title and the exact time it will breach.
Before it runs live
- Connect Linear
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 Slack
- Combine it with other Linear steps into one automation
Under the hood
The code that runs this automation
from datetime import datetime, timedelta, timezone
from clickruntime import on_trigger, http, credentials, notify, state
def linear(query, variables=None):
r = http.post(
"https://api.linear.app/graphql",
headers={"Authorization": credentials.secret("LINEAR_API_KEY")},
json={"query": query, "variables": variables or {}},
)
r.raise_for_status()
return r.json()["data"]
@on_trigger
def run(event):
soon = (datetime.now(timezone.utc) + timedelta(hours=4)).isoformat()
issues = linear("""query($soon: DateTimeOrDuration!) {
issues(first: 100, filter: {slaBreachesAt: {lt: $soon}, state: {type: {nin: ["completed", "canceled"]}}}) {
nodes { id identifier title url slaBreachesAt } } }""", {"soon": soon})["issues"]["nodes"]
alerted = set(state.get("alerted") or [])
new = [i for i in issues if i["id"] not in alerted]
for i in new:
notify.slack(f"SLA at risk: <{i['url']}|{i['identifier']}> {i['title']} breaches at {i['slaBreachesAt'][:16]}Z", channel="#eng")
alerted.add(i["id"])
state.set("alerted", list(alerted)[-500:])
return {"at_risk": len(new)}FAQ
Common questions
How far ahead of the breach does it warn?
Does it understand business hours?
What happens when an issue is resolved after a warning?
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
See which open issues nobody has touched
Every Monday you get the open issues with no updates in 14 days, grouped by team and priority.
See how it worksMove issues that have stalled
Issues left in one status too long are moved back automatically, with a comment, and you get the list.
See how it worksBack up all your Linear issues weekly
Every week you get a CSV of all your issues as a backup.
See how it worksKeep exploring
Set up “Get warned before an issue breaches its SLA” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.