Developer
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Nov 11, 2025

Space has page

The SpaceHasPage relationship represents the link between a Confluence space and a Confluence page within the Teamwork Graph. It allows you to:

  • Retrieve Confluence pages within a specific space
  • Find which space a Confluence page belongs to
  • Traverse and analyze space-page relationships

Category

CategoryCanonical

Types

From Object TypesTo Object Types
Confluence Space - ati:cloud:confluence:spaceConfluence Page - ati:cloud:confluence:page

Cypher

Forward Query

GraphQL
1
2
query SpaceHasPage_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on ConfluencePage {
                  id
                }
              }
            }
          }
        }
      }
    }
  }
}
Params

Note

We recommend sending parameterized Cypher queries as below instead of embedding the parameters directly in the query string. This approach will help ensure better performance.

1
2
{
  "cypherQuery": "MATCH (space:ConfluenceSpace {ari: $id})-[:space_has_page]->(page:ConfluencePage) RETURN page",
  "params": {
    "id": "$id"
  }
}

Inverse Query

GraphQL
1
2
query SpaceHasPage_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on ConfluenceSpace {
                  id
                }
              }
            }
          }
        }
      }
    }
  }
}
Params

Note

We recommend sending parameterized Cypher queries as below instead of embedding the parameters directly in the query string. This approach will help ensure better performance.

1
2
{
  "cypherQuery": "MATCH (space:ConfluenceSpace)-[:space_has_page]->(page:ConfluencePage {ari: $id}) RETURN space",
  "params": {
    "id": "$id"
  }
}

Rate this page: