> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

Confluence

Confluence iconConfluence icon
Loading version...

Port's Confluence integration syncs Confluence Cloud spaces, pages, and users into your context lake.

Supported resources External link iconSpacePageUser
Live events

Live events are off for this integration. Spaces, pages, and users update on the scheduled resync interval, or when you resync from the connectors page.

Prerequisites​

The integration reads Confluence Cloud with basic authentication: an Atlassian account email and an API token. Confluence Data Center and Server are not supported.

  • A Confluence Cloud site, for example https://example.atlassian.net.
  • An Atlassian account that can view the spaces, pages, and users you want in Port.
  • An API token for that account.
  • Your Port user role is set to Admin.

Setup​

Choose your preferred installation method below. Not sure which to pick? See the installation methods overview.

Choose method

Configuration​

Port integrations use a YAML mapping block to ingest data from the third-party API into Port.

The mapping makes use of the JQ JSON processor to select, modify, concatenate, transform and perform other operations on existing fields and values from the integration API.

Spaces and pages come from the Confluence Cloud REST API v2. Users come from GET /wiki/rest/api/search/user?cql=type=user. Page bodies use body-format=markdown when includeBody is on.

Default mapping configuration​

This is the default mapping configuration for this integration:

Default mapping configuration (click to expand)
deleteDependentEntities: true
createMissingRelatedEntities: true
resources:
- kind: space
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id
title: .name
blueprint: '"confluenceSpace"'
properties:
key: .key
type: .type
status: .status
description: .description.plain.value // ""
createdAt: .createdAt
homepageId: .homepageId
authorId: .authorId
spaceOwnerId: .spaceOwnerId
url: .__webUrl
relations:
author: .authorId
owner: .spaceOwnerId
- kind: page
selector:
query: 'true'
includeArchived: false
includeBody: true
port:
entity:
mappings:
identifier: .id
title: .title
blueprint: '"confluencePage"'
properties:
status: .status
subtype: .subtype
createdAt: .createdAt
updatedAt: .version.createdAt
version: .version.number
parentType: .parentType
position: .position
content: .body.markdown.value // ""
folderPath: .__folderPath
filePath: .__filePath
url: .__webUrl
relations:
space: .spaceId
parent: if .parentType == "page" and .parentId != null then .parentId else null end
author: .authorId
owner: .ownerId
- kind: user
selector:
query: 'true'
port:
entity:
mappings:
identifier: .accountId
title: .displayName // .publicName // .accountId
blueprint: '"confluenceUser"'
properties:
email: .email
accountType: .accountType
publicName: .publicName
timeZone: .timeZone
isExternalCollaborator: .isExternalCollaborator
isGuest: .isGuest
url: .__webUrl

Page paths​

Confluence pages API returns a parent id and a parent type. It does not return the folder tree. The integration walks each page's ancestors and stores the result in folderPath and filePath, so a folder view can render the same hierarchy. folderPath is built from the ancestor titles. filePath is that path plus the page title.

The walk loads parent pages first. When the parent is a folder, whiteboard, or database, the integration loads that item by id and uses its title. Confluence has no get-by-id endpoint for embeds, so an embed parent stays in the path as its id.

The parent relation is set only when parentType is page.

The integration also adds these fields to the raw record, prefixed with __:

  • __webUrl - The space, page, or user URL in Confluence. The default mapping copies it to url.
  • __folderPath - The ancestor path for a page. The default mapping copies it to folderPath.
  • __filePath - The ancestor path plus the page title. The default mapping copies it to filePath.

Deleted and trashed pages are never synced. Archived pages are off unless you set includeArchived to true. Fetching the page body limits each request to 25 pages. Turn includeBody off to sync titles only.

Mapping and selectors per resource​

Monitoring and sync status​

To learn more about how to monitor and check the sync status of your integration, see the relevant documentation.

To view and test the integration's mapping against live API responses, use the jq playground in your connectors page.