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

# Marking Incidents as Duplicate via Slack

> Mark incidents as duplicates from Slack incident channels using the /rootly dup command to consolidate response efforts and avoid scattered chats.

You can mark an incident as a duplicate directly from Slack using a simple slash command. This helps consolidate related incidents quickly and keep responders aligned in a single source of truth.

<Info>
  This operation links the current incident to a **canonical incident** via `duplicate_incident_id`.\
  This is separate from **sub-incidents**, which use `parent_incident_id`.
</Info>

***

## Mark a Duplicate in Slack

In any **incident Slack channel**, type:

```text theme={null}
/rootly dup
```

or

```text theme={null}
/rootly duplicate
```

A modal opens allowing you to select the original incident and configure cancellation options.

<Frame>
  <img src="https://mintcdn.com/rootly/omtwtV54QLyVw0HQ/images/marking-as-duplicate/slack.webp?fit=max&auto=format&n=omtwtV54QLyVw0HQ&q=85&s=cd3c3eef985ab1075025f1030dd0f8a9" alt="Slack duplicate modal" width="912" height="815" data-path="images/marking-as-duplicate/slack.webp" />
</Frame>

***

## Modal Fields

The Slack modal includes:

<ParamField path="Assign to Incident" type="string" required>
  Search for the canonical incident.
</ParamField>

<ParamField path="Auto Cancel Current Incident" type="boolean" default="true">
  Optional toggle (on by default).
</ParamField>

<ParamField path="Summary (reason for cancellation)" type="string">
  Optional free text, added to the timeline.
</ParamField>

<Info>
  Slack enforces the same permissions as the web interface.\
  You must be able to **update** the incident to mark it as a duplicate.
</Info>

***

## What Happens After Submission

When you confirm the duplicate:

* The current incident is linked to the selected original incident
* A non-editable **timeline entry** is created
* Slack posts a confirmation message in the duplicate’s channel (if applicable)
* If **Auto Cancel** is enabled:
  * The duplicate is cancelled
  * Alerts attached to the duplicate are resolved automatically
  * Slack posts a “Duplicate incident detected” message

<Info>
  Rootly also updates Slack summaries and workflows that rely on incident lifecycle changes.
</Info>

***

## Best Practices

* **Run the command from the incident channel**\
  Slack automatically associates the action with the incident the channel is tied to.

* **Use the canonical incident with the most context**\
  Choose the incident that contains the most accurate investigation details or customer-facing messaging.

* **Provide a clear cancellation summary**\
  This helps responders understand why context moved and assists retrospectives.

* **Auto-cancel when appropriate**\
  This prevents duplicate incidents from remaining open and triggering unnecessary automations.

* **Avoid marking scheduled maintenance as duplicates**\
  Slack prevents this automatically, since maintenance incidents follow different lifecycle rules.

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="“This command cannot be used here”" icon="terminal">
    You must run `/rootly dup` inside a **Rootly incident Slack channel**.\
    The command will not work in normal or private Slack channels.
  </Accordion>

  <Accordion title="The modal does not open" icon="window-maximize">
    Possible reasons:

    * You do not have **update** permissions on the incident
    * The incident is a **scheduled maintenance incident** (duplicates are disallowed)
    * The incident is **already marked as a duplicate**
  </Accordion>

  <Accordion title="The original incident doesn’t appear in the dropdown" icon="eye-slash">
    Slack only shows incidents you have permission to view.\
    Private or restricted incidents may not appear unless you have the required access.
  </Accordion>

  <Accordion title="The incident did not auto-cancel" icon="copy">
    Common causes:

    * Auto-cancel was toggled **off**
    * The incident was already cancelled
    * Slack permissions prevented cancellation
    * Workflow or feature flags restricting cancellation were active
  </Accordion>

  <Accordion title="Slack did not post a confirmation message" icon="hashtag">
    This can occur when:

    * Slack is not integrated or connected for your team
    * The duplicate incident has **no Slack channel**
    * Notifications are suppressed by workspace settings
  </Accordion>
</AccordionGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.