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.
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
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?
What happens if no major incidents were resolved yesterday?
Where does the timeline come from?
Does it work out the root cause for me?
Do I need Notion and Jira, or can I just use Statuspage?
Related templates
When someone leaves, we check which shared passwords they used in their final months and post a ranked rotation list to your security channel.
Every Monday, last week's survey answers and support conversations become one themed report in Notion, with the top five themes posted to Slack.
Every Tuesday we pull your best new reviews, draft social captions, email testimonials and product page quotes, then stage them in Notion for approval.
Every hour we check your brand mentions against the past week and alert your comms team in Slack only when something is genuinely spiking.
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.
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.
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.