> ## 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.

# Installation

> Connect your Confluence account to Rootly to automate incident documentation, retrospective page creation, and runbook linking from Slack and workflows.

## Before You Begin

<Callout icon="triangle-exclamation" color="#FEF3C7">
  We recommend performing the installation with a **service account** to ensure the integration does not break if the installing user leaves the company. Ensure you are logged in as an **Admin** in Rootly.
</Callout>

Rootly supports two Confluence deployment types:

| Type                                | Authentication                            |
| ----------------------------------- | ----------------------------------------- |
| **Confluence Cloud**                | OAuth 2.0 (recommended)                   |
| **Confluence Server / Data Center** | Basic auth or Personal Access Token (PAT) |

## Confluence Cloud

<Steps>
  <Step title="Open Rootly Integrations">
    Navigate to **Configuration → Integrations** in your Rootly dashboard.

    <Frame>
      <img alt="Rootly sidebar showing Configuration and Integrations menu" src="https://mintcdn.com/rootly/tW7XU81cMVMyDJRG/images/integrations/confluence/installation/image-1.1.png?fit=max&auto=format&n=tW7XU81cMVMyDJRG&q=85&s=ac957a0507ca3b132f03a10747300d57" width="331" height="509" data-path="images/integrations/confluence/installation/image-1.1.png" />
    </Frame>
  </Step>

  <Step title="Find and set up Confluence">
    Search for **Confluence** and click **Setup**.

    <Frame>
      <img alt="Integrations page with Confluence search result" src="https://mintcdn.com/rootly/tW7XU81cMVMyDJRG/images/integrations/confluence/installation/image-2.png?fit=max&auto=format&n=tW7XU81cMVMyDJRG&q=85&s=9740e580eff96ece569f11c2e73e32a0" width="724" height="415" data-path="images/integrations/confluence/installation/image-2.png" />
    </Frame>
  </Step>

  <Step title="Authorize in Confluence">
    You will be redirected to Confluence to grant Rootly permission. Rootly requests the following OAuth scopes:

    * `read:user:confluence` — Read your user profile
    * `read:content-details:confluence` — Read page content
    * `write:content:confluence` — Create and update pages
    * `read:template:confluence` — Read Confluence templates
    * `read:space:confluence` — Read spaces
    * `write:page:confluence` — Create pages

    <Frame>
      <img alt="Confluence OAuth authorization page" src="https://mintcdn.com/rootly/tW7XU81cMVMyDJRG/images/integrations/confluence/installation/image-3.png?fit=max&auto=format&n=tW7XU81cMVMyDJRG&q=85&s=b191d64ae72b297b0c9be2519615fa40" width="495" height="589" data-path="images/integrations/confluence/installation/image-3.png" />
    </Frame>
  </Step>

  <Step title="Accept permissions">
    Click **Accept** to authorize Rootly.

    <Frame>
      <img alt="Confluence permissions acceptance screen" src="https://mintcdn.com/rootly/tW7XU81cMVMyDJRG/images/integrations/confluence/installation/image-4.png?fit=max&auto=format&n=tW7XU81cMVMyDJRG&q=85&s=dd15a8422f73d2aa113001bde703dbd7" width="414" height="173" data-path="images/integrations/confluence/installation/image-4.png" />
    </Frame>
  </Step>

  <Step title="Confirm connection">
    You will be redirected back to Rootly with a confirmation message. The integration status will show **Connected**.

    <Frame>
      <img alt="Rootly confirmation showing Confluence connected successfully" src="https://mintcdn.com/rootly/tW7XU81cMVMyDJRG/images/integrations/confluence/installation/image-5.png?fit=max&auto=format&n=tW7XU81cMVMyDJRG&q=85&s=596e88dc736ef85d5d63b38cd0e29a11" width="977" height="504" data-path="images/integrations/confluence/installation/image-5.png" />
    </Frame>
  </Step>
</Steps>

## Confluence Server / Data Center

For on-premise deployments, Rootly supports authentication via **Basic auth** or a **Personal Access Token (PAT)**.

1. Navigate to **Configuration → Integrations** and search for **Confluence Server**.
2. Click **Setup** and enter your Confluence Server URL (e.g. `https://confluence.yourcompany.com`).
3. Enter your credentials:
   * **Basic auth**: Username and password
   * **PAT**: Generate a token in Confluence under **Profile → Personal Access Tokens** and paste it into the Token field
4. Click **Save** and **Test Connection** to verify.

<Callout icon="circle-info" color="#DBEAFE">
  Personal Access Tokens expire after 90 days by default. Rootly will notify you when a token is approaching expiry. Rotate the token in Confluence and update it in Rootly to avoid workflow failures.
</Callout>

## Setting Up Retrospective Templates in Confluence

You can create custom templates in Confluence that Rootly will apply when generating retrospective pages. Rootly fetches available templates from your Confluence space via the API.

<Steps>
  <Step title="Open your Confluence space">
    Navigate to the Space in which you want to create the template and open **Space Settings**.
  </Step>

  <Step title="Access templates">
    Under **Look and Feel**, select **Templates**.
  </Step>

  <Step title="Create a new template">
    Click **Create New Template** and build out your template content. Liquid syntax is fully supported — use the [Liquid Variable Explorer](https://rootly.com/account/help/liquid-explorer) to test variables.
  </Step>

  <Step title="Save the template">
    Save the template. It will appear in the Confluence Template dropdown when configuring a Create Confluence Page workflow action.
  </Step>
</Steps>

## Uninstall

To remove the Confluence integration:

1. Go to **Configuration → Integrations** and find **Confluence**
2. Click the **Connected** button to reveal the disconnect option
3. Click **Delete**

<Frame>
  <img src="https://mintcdn.com/rootly/QMD-dNqeYW4BA9dg/images/integrations/common/uninstall-connected.png?fit=max&auto=format&n=QMD-dNqeYW4BA9dg&q=85&s=dbb790e2576c8969bba96bc26c95265f" alt="Click the Connected button to reveal the Disconnect option" width="319" height="188" data-path="images/integrations/common/uninstall-connected.png" />
</Frame>

<Callout icon="circle-info" color="#DBEAFE">
  Disconnecting the integration does not delete existing Confluence pages created by Rootly. Those pages remain in your Confluence space.
</Callout>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Confluence spaces not appearing during authorization" icon="magnifying-glass">
    Ensure you have **Create** or **Edit** permissions in the Confluence spaces you want Rootly to use. Ask an admin to check **Space Settings → Permissions**. If the issue persists, disconnect and reconnect the integration to refresh permissions.
  </Accordion>

  <Accordion title="Authorization succeeds but integration does not complete" icon="circle-exclamation">
    Check if your organization restricts external apps under **Atlassian Admin → Security → App Access**. Confirm the installing user is not limited to read-only access. Retry the installation in an incognito window to avoid stale credentials.
  </Accordion>

  <Accordion title="Server / Data Center connection fails" icon="server">
    Verify the Confluence Server URL is reachable from Rootly's servers — check any firewall or allowlist rules. Confirm SSL certificates are valid. For PAT authentication, ensure the token has not expired and has the required permissions.
  </Accordion>
</AccordionGroup>
