> ## Documentation Index
> Fetch the complete documentation index at: https://docs.incident.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrating from Opsgenie

> Move your Opsgenie routing onto alert rules, so every alert still reaches the right team.

> [!NOTE]
>
> Alert rules are in beta and replace [alert routes](https://docs.incident.io/on-call/alert-routing). We're turning them on for some
> organizations first, and details may change. Get in touch if you'd like early access!

When you move from Opsgenie, our import tools bring across your schedules, escalation policies and notification preferences. You then write [alert rules](https://docs.incident.io/on-call/alert-rules) to decide which alerts page which escalation paths. In Opsgenie, team routing rules do this job. This page maps Opsgenie's routing onto alert rules, then walks through the migration in order.

For every migration tool, see [migrate from Opsgenie](https://docs.incident.io/getting-started/migrate-from-opsgenie.md).

> [!NOTE]
>
> These steps are for organizations on alert rules only. While your organization is shadowing, your alert routes still
> decide what happens to each alert, and your rules are copied from them. See [migrating from alert
> routes](https://docs.incident.io/on-call/alert-rules/migrating-from-alert-routes.md).

## How Opsgenie maps to alert rules

| In Opsgenie | In incident.io |
| - | - |
| Team | A team of your team type |
| Integration | An [alert source](https://docs.incident.io/on-call/alert-sources) |
| Team routing rules | Conditions in the team's [team rules](https://docs.incident.io/on-call/alert-rules#team-rules), or in the [default rules](https://docs.incident.io/on-call/alert-rules#default-rules) |
| Escalation policy | An [escalation path](https://docs.incident.io/on-call/escalation-paths.md), imported from Opsgenie |
| Alert policies | Attributes and priority set by your alert source, and conditions in your alert rules |
| Priority, P1 to P5 | The alert's [priority](https://docs.incident.io/alerts/priorities.md) |
| Time-based routing rules | Working hours branches on an escalation path |

### Teams and integrations

In Opsgenie, an integration usually belongs to a team, so the integration decides whose routing rules an alert goes through. With alert rules, an alert's team comes from its [team attribute](https://docs.incident.io/alerts/team-routing.md), which your alert source sets from the payload. An alert source can send alerts for many teams, so you don't need one source per team.

> [!WARNING]
>
> Team rules only run for an alert with exactly one team. An alert with several teams runs the [default
> rules](https://docs.incident.io/on-call/alert-rules#default-rules) instead.

### Team routing rules

Each Opsgenie team checks its routing rules in order and sends the alert to the escalation policy of the first one that matches. A [block](https://docs.incident.io/on-call/alert-rules#configure-your-rules) in alert rules works the same way: it checks its branches in order and runs the first one that matches, with **Else** as the catch-all.

Most teams' routing rules send everything to the team's own escalation policy. That's one block in the default rules that escalates to the escalation path of the alert's team. A team whose routing rules do more needs its own team rules.

Routing rules that pick an escalation policy by time of day become working hours branches on the escalation path itself. See [smart escalation paths](https://docs.incident.io/on-call/escalation-paths.md).

### Alert policies

Map each kind of policy to the place that does the same job:

| An Opsgenie policy that | Becomes |
| - | - |
| Changes an alert's fields, such as its priority, tags or description | [Attribute extraction](https://docs.incident.io/on-call/alert-attributes#extract-attributes-from-sources) or [priority](https://docs.incident.io/alerts/priority-routing.md) in your alert source |
| Suppresses alerts | A branch with conditions and no actions. Alerts that match it skip the rest of that block |

### Priority

Opsgenie alerts have a priority from P1 to P5. Create the same [priorities](https://docs.incident.io/alerts/priorities.md) in incident.io and set them from your alert source. Each level of an escalation path chooses whether to notify with high or low urgency, and you can branch the path on priority.

## Migrate step by step

**1. Connect Opsgenie**

Connect the [Opsgenie integration](https://docs.incident.io/integrations/opsgenie.md). Your Opsgenie schedules, services, teams and users sync
into the Catalog.

**2. Choose your team type**

Alert rules belong to teams, so set up your teams first. See [setting up teams](https://docs.incident.io/catalog/teams.md).

**3. Import schedules and escalation policies**

Import your Opsgenie escalation policies as escalation paths, along with the schedules they use and those schedules'
overrides. See [importing from PagerDuty and Opsgenie](https://docs.incident.io/on-call/import-pagerduty.md). Imported paths aren't connected
to any alerts yet, so nobody is paged.

**4. Import notification preferences**

Bring across each person's notification preferences, in bulk or one at a time. See [importing user notification
preferences](https://docs.incident.io/getting-started/migrate-from-opsgenie.md#importing-user-notification-preferences).

**5. Send alerts to incident.io with a team**

While you test, you can [connect Opsgenie as an alert
source](https://docs.incident.io/getting-started/migrate-from-opsgenie.md#opsgenie-alert-source), so alerts flow from your monitoring tools
through Opsgenie to incident.io. Make sure every alert source sets the alert's [team
attribute](https://docs.incident.io/alerts/team-routing.md).

**6. Write your rules**

Under **On-call → Alert routing → Rules**, add a block to the [default rules](https://docs.incident.io/on-call/alert-rules#default-rules)
that escalates to the escalation path of the alert's team. Add [required rules](https://docs.incident.io/on-call/alert-rules#required-rules)
for anything every team must do, and [team rules](https://docs.incident.io/on-call/alert-rules#team-rules) for teams whose routing rules
need something different.

**7. Preview with recent alerts**

Select **Preview** and pick some recent alerts to see which branches they match and who would be paged, without
paging anyone. See [run a preview](https://docs.incident.io/on-call/alert-rules#run-a-preview).

**8. Cut over**

Point your monitoring tools at incident.io alert sources instead of Opsgenie. If you use Datadog, the [Datadog
migration tool](https://docs.incident.io/getting-started/migrate-datadog-monitors.md) or Terraform can repoint your monitors.

## FAQs

> [accordion] Can incident.io build my alert rules from my Opsgenie routing rules?
>
> No. The import tools cover schedules, escalation policies and notification preferences. You write your alert rules
> yourself, usually starting from one default rule that escalates to the alert's team.

> [accordion] Are Opsgenie notification criteria and time restrictions imported?
>
> No. Imported notification preferences cover every method for both high and low urgency. Ask each person to check
> their settings after the import.
