You may start using incident.io after having already run incidents within Slack in the past. If so, you'll want to bring all the data with you when starting to use our product to make sure your team has the relevant information to hand, and to track trends in your incidents using our Insights.
ποΈ What if the Slack channel is archived?
Bots can't view the contents of archived channels, so you'll need to enable privileged Slack access, which lets us unarchive the channel and see what was in it.
Don't worry, we'll also re-archive the channel after the import is complete!
π How do I import an incident from an existing Slack channel?
You'll be following the same steps outlined in the Creating your first incident using the API help article
When making the API call to create the incident, make sure to:
Set
mode
within the request payload to"retrospective"
Set
retrospective_incident_options.slack_channel_id
within the request payload to the Slack channel ID
For example, the payload might look like:
{
"mode": "retrospective",
"retrospective_incident_options": {
"slack_channel_id": "C01DZSENFFT"
},
"custom_field_values: [],
"severity_id": "01G0J1EXE7AXZ2C93K61WBPYEH"
}
After the incident has been created, the main events that occurred in the Slack channel will be used to generate the incident timeline, and your insights will be updated within an hour.