Draft incident postmortems from Statuspage every morning

Each weekday morning, turn yesterday's major incidents into ready-to-review postmortem drafts in Statuspage, Notion, and Jira.

Agentic Task
StatuspageNotionJiraEngineeringContent GenerationAI Reports
PromptCreate

Every weekday at 9am, sweep our Statuspage for incidents that were resolved in the last 24 hours and get their postmortems started while the details are still fresh.

Start by calling Get a list of pages to resolve the page id, since Statuspage operations are scoped to a specific status page. Then call Get a list of incidents for that page. Keep only realtime incidents whose status is resolved, whose resolved timestamp falls within the last 24 hours, and whose impact is major or critical. Ignore incidents with minor or no impact, and ignore scheduled maintenances, which use the scheduled, in progress, verifying and completed statuses rather than resolved. If nothing qualifies, stop without creating anything.

For each qualifying incident, call Get an incident to pull the full record including its incident_updates array. That array is the raw material for the timeline: Statuspage has no separate endpoint for posting an update, so every update the responders posted is appended to this array with its own body, status and timestamp. Read them in chronological order and reconstruct what happened, from the first investigating update through identified and monitoring to the final resolved update. Treat the gap between the first update and the resolved update as the customer impact duration, and note the affected components listed on the incident.

Then draft a postmortem with these sections: a short summary of what happened; customer impact and duration, including which customers or regions were affected if the updates say so; the affected components; what still needs confirming about the cause; and proposed follow-up actions. Be strict about the cause section. Only state what the incident updates actually establish. If the updates do not pin down a root cause, do not invent one. List the specific open questions the responders need to answer instead, so the reviewer knows exactly what to fill in.

Save the draft back onto the incident itself with Create Postmortem, which creates or updates the incident's postmortem draft. Never call Publish Postmortem. A human has to review the cause analysis before any of it becomes visible to customers, so this workflow only ever leaves a draft behind.

Also create a matching page in our Notion incident database with Create a Page, as a child of that database, containing the same postmortem content plus a link back to the Statuspage incident, so the team can review and comment internally.

Finally, open a Jira issue with Create Issue to assign the postmortem review to the incident owner. Title it with the incident name and date, put the drafted postmortem and links to both the Statuspage incident and the Notion page in the description, and assign it to whoever owned the incident. If the owner cannot be determined from the incident, leave it unassigned and say so in the description.

Example output

Postmortem draft: Elevated API error rates (major) Summary Between 14:02 and 15:47 UTC on 8 August, a portion of API requests returned errors. The team began investigating at 14:02, identified a failing upstream dependency at 14:31, moved to monitoring at 15:12, and marked the incident resolved at 15:47. Customer impact and duration 1 hour 45 minutes of degraded API availability. Updates described elevated error rates on write requests. Read traffic was reported as unaffected. Affected components API, Webhooks What still needs confirming - The updates name a failing upstream dependency but never say why it started failing, so the cause is not yet established. - Whether 14:02 is the true onset or simply when the team noticed. - The actual error rate and how many customers were affected, which no update quantified. Proposed follow-up actions - Confirm what triggered the dependency failure and record it here. - Add alerting on write-path error rate to shorten detection time. - Quantify customer impact from request logs for the affected window. Status: draft. Not visible to customers until a reviewer publishes it.

What does this prompt do?

  • Checks every weekday morning for incidents resolved in the past 24 hours and picks out only the major and critical ones
  • Rebuilds the incident timeline from the updates your team posted while responding, and works out how long customers were affected
  • Writes a postmortem draft covering the summary, customer impact and duration, affected components, what still needs confirming about the cause, and proposed follow-up actions
  • Saves the draft onto the incident itself, files a matching page in your Notion incident database, and opens a Jira issue so the incident owner knows to review it

What do I need to use this?

  • A Statuspage account with permission to manage incidents on your status page
  • A Notion workspace with an incident database, shared with your General Input connection
  • A Jira project where postmortem review work gets tracked
  • The habit of posting updates on incidents as you respond, since those updates are what the timeline is built from

How can I customize it?

  • Change the timing so the sweep runs at a different hour, or extend it to cover weekends as well as weekdays
  • Adjust which incidents qualify. The default is major and critical only, but you can widen it to include smaller ones
  • Decide who reviews: the incident owner, a fixed reviewer, or whoever is on call that week
  • Reshape the postmortem sections to match the template your team already uses

FAQs

Will this publish the postmortem to my customers?
No. It only ever saves a draft on the incident, and it never uses the publish action. Nothing appears on your public status page until someone on your team reviews the draft and publishes it themselves.
What happens if no major incidents were resolved yesterday?
Nothing. The workflow checks, finds nothing that qualifies, and stops. You will not get empty pages or pointless tickets on quiet days.
Where does the timeline come from?
From the updates your team posted on the incident while responding to it. Each update carries its own timestamp, so the workflow can lay them out in order and measure how long the incident ran. If your team posted only a couple of updates, the timeline will be correspondingly rough.
Does it work out the root cause for me?
Deliberately not. Updates written in the middle of an incident rarely establish the true cause, so rather than guessing, the draft lists what still needs confirming. Your reviewer fills in the real analysis.
Do I need Notion and Jira, or can I just use Statuspage?
You can drop either one. The Notion page gives your team somewhere to review and comment internally, and the Jira issue makes sure the review is assigned to a real person, but the draft saved on the incident works on its own.

Related templates

Build a credential rotation checklist when someone leaves

When someone leaves, we check which shared passwords they used in their final months and post a ranked rotation list to your security channel.

1Password
Rippling
Slack Bot
+1
Agentic Task
Weekly voice-of-customer report from surveys and support

Every Monday, last week's survey answers and support conversations become one themed report in Notion, with the top five themes posted to Slack.

Typeform
Intercom
Notion
+2
Agentic Task
Turn 5 star Yotpo reviews into a weekly marketing content queue

Every Tuesday we pull your best new reviews, draft social captions, email testimonials and product page quotes, then stage them in Notion for approval.

Yotpo
Notion
Slack
Agentic Task
Catch brand issues early with hourly Sprinklr listening alerts

Every hour we check your brand mentions against the past week and alert your comms team in Slack only when something is genuinely spiking.

Sprinklr
Slack
Jira
Agentic Task
Turn Statuspage incidents into support briefs and ticket notes

The moment an outage goes live, your support channel gets a plain-language brief and a ready-to-send reply, and matching tickets get an internal note.

Statuspage
Slack Bot
Zendesk
Agentic Task
Weekly Statuspage reliability report for leadership

Every Monday at 8am, turn last week's incidents into a trend report leadership can actually read, published to your wiki and summarized in Slack.

Statuspage
Confluence
Slack Bot
Agentic Task

Stop writing postmortems from scratch the morning after.

Have the first draft waiting when you sit down, built from what your team already posted while the incident was live.