Skip to main content
Import pages from Atlassian Confluence Cloud into AGO. The connector imports a root page and every page beneath it, converts them to Markdown, copies attachments, and rewrites links between imported pages so they open in AGO.
Only Confluence Cloud is supported. Confluence Data Center and its personal access tokens are not supported.

Prerequisites

  1. An account with read access to the spaces you want to import: an Atlassian service account (recommended) or a Confluence Cloud user
  2. A credential for that account
  3. The ID of the root page to import
AGO reads Confluence with this account’s permissions. A service account does not belong to a person, so the import keeps working when someone leaves. You need to be an organization admin in Atlassian Administration.
  1. In Atlassian Administration, go to Directory > Service accounts and click Create a service account.
  2. Give it a name of 6 to 30 letters or digits, for example “AGOConfluence”, and give it access to Confluence.
  3. Open the service account and create an OAuth 2.0 credential with these scopes:
    • read:page:confluence
    • read:attachment:confluence
  4. Copy the client ID and the client secret. Atlassian shows the secret only once.
  5. In Confluence, give the service account permission to view the spaces you want to import, for example by adding it to a group that has access.
You can also create an API token for the service account, with the same scopes. Then choose API token in AGO and enter the service account email, which ends with @serviceaccount.atlassian.com.
See Atlassian’s service account guide for plan limits and details.

Option B: Create an API token for a user

  1. Sign in as the user AGO should read Confluence with. Use a dedicated account if you can.
  2. Go to Atlassian API tokens.
  3. Click Create API token and give it a label, for example “AGO”.
  4. Copy the token. Atlassian shows it only once.

Find the root page ID

Open the page you want as the root and look at its URL:
123456789 is the page ID. You can also find it in the page’s … menu > Page Information.

Setup

1

Connect Confluence

Go to Knowledge > Sources > Connections > Confluence, enter your Confluence Base URL, for example https://your-domain.atlassian.net, and choose an Authentication method:Click Test Connection, then Save Configuration. These credentials are shared by every Confluence source. To update a secret, enter the new one. Leave the field blank to keep the saved one.
2

Create a source

  1. Go to Knowledge > Sources and click Create New Source.
  2. Enter a name, for example “Product Documentation”, and select confluence as the Source Type.
  3. Enter the Confluence Page ID of the root page.
  4. Click Save. You don’t need to enter an API key on the source.
3

Sync

Open the source and click Sync Source. AGO imports the root page and all its child pages, keeping the hierarchy.
To import several spaces or sections, create one source per root page, for example one for “Product Docs” and one for “Help Articles”.

What gets imported

  • Page content, converted to Markdown (tables, lists and code blocks are kept)
  • Confluence emoticons, converted to emoji
  • Attachments, copied again only when the page version changes
  • Links to other imported Confluence pages, rewritten to point to AGO, including pages from another Confluence source
Each sync refreshes the page content.

Tips

  • Choose a root page at the top of the section you need. Avoid the space homepage if it contains sections you don’t want.
  • Archive outdated pages in Confluence before you import.
  • Start with a small section to check formatting, then add more.
  • Split very large spaces into several sources, one per section.

Troubleshooting

  • Check the token or client secret is correct, has not expired and has not been revoked.
  • For a service account, check its credential has the read:page:confluence and read:attachment:confluence scopes. Atlassian’s reason, such as scope does not match, is shown in the test result.
  • For an API token, check the email matches the account that owns the token.
  • Check the account can read the space.
Service accounts connect through Atlassian’s API, which needs your site address. Enter your Atlassian Cloud site URL ending in .atlassian.net, for example https://your-domain.atlassian.net.
  • Check the root page ID.
  • Check the page has not been deleted or moved to a space the user can’t read.
  • Check the user can open the attachments in Confluence.
  • Attachments are copied again only when the page version changes. Edit the page, then sync again.
Some Confluence macros have no Markdown equivalent and may not convert cleanly. Test with a simpler page to find the macro causing the problem.