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

Parent comment has child comment

The ParentCommentHasChildComment relationship represents the link between a parent Confluence comment and a child Confluence comment within the Teamwork Graph. It allows you to:

  • Retrieve child comments for a specific parent comment
  • Find the parent comment of a child comment
  • Traverse and analyze comment-hierarchy relationships

Category

CategoryCanonical

Types

From Object TypesTo Object Types
Confluence Comment - ati:cloud:confluence:commentConfluence Comment - ati:cloud:confluence:comment

Cypher

Forward Query

GraphQL
1
2
query ParentCommentHasChildComment_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on ConfluenceInlineComment {
                  id
                }
                ... on ConfluenceFooterComment {
                  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 (comment:ConfluenceComment {ari: $id})-[:parent_comment_has_child_comment]->(comment_1:ConfluenceComment) RETURN comment_1",
  "params": {
    "id": "$id"
  }
}

Inverse Query

GraphQL
1
2
query ParentCommentHasChildComment_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on ConfluenceInlineComment {
                  id
                }
                ... on ConfluenceFooterComment {
                  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 (comment:ConfluenceComment)-[:parent_comment_has_child_comment]->(comment_1:ConfluenceComment {ari: $id}) RETURN comment",
  "params": {
    "id": "$id"
  }
}

Rate this page: