Skip to main content

Confluence

Confluence is a collaborative workspace software developed by Atlassian, designed to help teams create, organize, and share knowledge efficiently. It's a versatile tool widely used in various industries for project management, documentation, and collaboration.

To learn how Confluence entities map to SQL tables, consult the table mappings guide.

How to Setup

To connect to a Confluence data source you need to register the Confluence credentials. This requires:

  • The name of the credential (which you can choose).
  • Base URL.
  • Username.
  • Token.

Using our App, this is the respective form for adding Confluence credentials: Confluence Credentials

Base URL

This is the site url of the user's attlassian jira subscription., e.g. https://your-domain.atlassian.net/

Username

The user name to access the jira cloud instance, e.g. user@domain.com

Token

API token for the user's Atlassian account. API tokens are created and managed here.

Examples

Get content body in the storage format

Retrieve the content body in the storage format.

select
*
from
<credentials_name>.confluence_content_body_storage
where
representation = 'storage';

Get content that mentions steampipe in the body

Retrieve content that includes references to steampipe within the main text.

select
id,
value
from
<credentials_name>.confluence_content_body_storage
where
"value" ilike '%steampipe%';

Get content body in the view format

Retrieve the body content in the specified format for viewing.

select
*
from
<credentials_name>.confluence_content_body_view
where
representation = 'view';

Get content that mentions steampipe in the body

Retrieve content that includes references to steampipe within the body.

select
id,
value
from
<credentials_name>.confluence_content_body_view
where
"value" ilike '%steampipe%';

Get content with draft in the title

Retrieve content that has "draft" in the title.

select
*
from
<credentials_name>.confluence_content
where
title ilike '%draft%';

Get basic info about the content

Retrieve fundamental information regarding the content.

select
id,
title,
space_key,
status,
type
from
<credentials_name>.confluence_content;

Get basic info about the labels

Retrieve fundamental information regarding the labels.

select
id,
content_id,
title,
space_key,
prefix,
name,
label
from
<credentials_name>.confluence_content_label;

Get the count of content by label

Query the number of pieces of content based on their label.

select
label,
count(*)
from
<credentials_name>.confluence_content_label
group by
label;

Get labels with documentation in the name

Retrieve labels that contain documentation in their name.

select
*
from
<credentials_name>.confluence_content_label
where
name ilike '%documentation%';

Get the count of content type

Retrieve the number of content types.

select
"type",
count(*)
from
<credentials_name>.confluence_content
group by
"type";

Get basic info about the version

Retrieve fundamental details regarding a version.

select
*
from
<credentials_name>.confluence_content_version;

Get the count of content by label

Retrieve the label-based content count.

select
label,
count(*)
from
<credentials_name>.confluence_content_version
group by
label;

Get the 50 oldest pages

Retrieve the 50 oldest pages.

select
title,
space_key,
"when"
from
<credentials_name>.confluence_content_version
join <credentials_name>.confluence_content using (id)
order by
"when" asc
limit
50;

Get content with type "blogpost"

Retrieve content of type "blogpost".

select
id,
title,
status,
type,
last_modified
from
<credentials_name>.confluence_search_content
where
cql = 'type=blogpost';

Get content with the "soc2" label

Retrieve content labeled as 'soc2'.

select
id,
title,
status,
type,
last_modified
from
<credentials_name>.confluence_search_content
where
cql = 'label=soc2';

Get personal, archived spaces

Retrieve personal, archived spaces.

select
*
from
<credentials_name>.confluence_space
where
"type" = 'personal'
and status = 'archived';

Get basic info about the spaces

Retrieve fundamental information regarding the spaces.

select
id,
key,
name,
type,
status
from
<credentials_name>.confluence_space;

Get the global spaces

Retrieve the global spaces.

select
*
from
<credentials_name>.confluence_space
where
"type" = 'global';

Table Mappings

Once the Confluence credential is registered, a new schema will be available for query within RAW. The name of this schema matches the name of the "RAW credential" you chose above.

Within this schema, you will find a set of tables, which contain the information stored in confluence. These tables are:

Table NameDescription
confluence_contentContent
confluence_content_body_storageContent Body Storage
confluence_content_body_viewContent Body View
confluence_content_labelContent Label
confluence_content_versionContent Version
confluence_search_contentSearch Content
confluence_spaceSpace

Content

Information stored within a Confluence platform.

Fields

NameTypeDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
idtextAutomatically assigned when the content is created
space_keytextThe space containing the content
statustextThe content status
titletextThe content title
typetextThe content type (page, blogpost, attachment or content)
version_numberbigintThe content version

Content Body Storage

Body of content stored in the format used by Confluence instance.

Fields

NameTypeDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
idtextThe ID of the content.
representationtextThe representation type of the content.
valuetextThe content body.

Content Body View

Content text from a Confluence instance in view format

Fields

NameTypeDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
idtextThe ID of the content.
representationtextThe representation type of the content.
valuetextThe content body.

Content Label

Labels for content within a Confluence instance.

Fields

NameTypeDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
content_idtextAutomatically assigned when the content is created
idtextAutomatically assigned when the label is created
labeltextThe label
nametextThe label name
prefixtextThe label prefix
space_keytextThe space containing the content
titletextThe content title

Content Version

Different versions of content stored in a Confluence instance.

Fields

NameTypeDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
accountIdtextThe account ID for the content version's author.
displayNametextThe display name for the content version's author.
emailtextThe email for the content version's author.
idtextThe ID of the content.
messagetextThe content version message.
minor_editbooleanWhether the version corresponds to a minor edit.
numberbigintThe content version number.
userKeytextThe user key for the content version's author.
usernametextThe username for the content version's author.
whentextWhen the content version was published.

Search Content

Find information within a Confluence instance.

Fields

NameTypeDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
cqltextThe Confluence query langauge.
idtextAutomatically assigned when the content is created.
last_modifiedtextWhen the content was last modified
statustextThe content status
titletextThe content title
typetextThe content type (page, blogpost, attachment or content)

Space

Areas within a Confluence system.

Fields

NameTypeDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
idtextAutomatically assigned when the space is created
keytextThe key of the space.
nametextThe name of the space.
statustextThe status of the space.
typetextThe type of space.