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 25, 2025

PR in repo

Links pull requests to their containing repositories, enabling tracking and querying of code review activities within repository contexts. This relationship provides essential connectivity for development workflow visualization, code review analytics, and repository activity monitoring across integrated development tools. Relationship type: Canonical

From object typesTo object types
External Pull Request - ati:cloud:jira:pull-requestExternal Repository - ati:cloud:jira:repository
External Pull Request - ati:cloud:graph:pull-requestExternal Repository - ati:cloud:graph:repository

Cypher

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.

Forward query

GraphQL
1
2
query PrInRepo_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on DevOpsRepository {
                  id
                }
                ... on ExternalRepository {
                  id
                }
              }
            }
          }
        }
      }
    }
  }
}
Params
1
2
{
  "cypherQuery": "MATCH (request:GraphPullRequest {ari: $id})-[:pr_in_repo]->(repository:GraphRepository) RETURN repository",
  "params": {
    "id": "$id"
  }
}

Inverse query

GraphQL
1
2
query PrInRepo_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on DevOpsPullRequestDetails {
                  id
                }
                ... on ExternalPullRequest {
                  id
                }
              }
            }
          }
        }
      }
    }
  }
}
Params
1
2
{
  "cypherQuery": "MATCH (request:GraphPullRequest)-[:pr_in_repo]->(repository:GraphRepository {ari: $id}) RETURN request",
  "params": {
    "id": "$id"
  }
}

Metadata

This relationship is not indexed, you will not be able to filter by this metadata when querying the relationship.

From Metadata

To Metadata

Nested Types

Reviewer

Author

Ari

When filtering by ARI in GraphQL, it will behave as a String rather than a message as shown below.

NameTypeProperties
valueString

PullRequestStatus

NameInternal NameIndex
not-setPR_STATUS_NOT_SET0
openPR_STATUS_OPEN1
mergedPR_STATUS_MERGED2
declinedPR_STATUS_DECLINED3
unknownPR_STATUS_UNKNOWN4
draftPR_STATUS_DRAFT5

ReviewerStatus

NameInternal NameIndex
not-setPR_REVIEWER_STATUS_NOT_SET0
approvedPR_REVIEWER_STATUS_APPROVED1
unapprovedPR_REVIEWER_STATUS_UNAPPROVED2
needsworkPR_REVIEWER_STATUS_NEEDSWORK3

Rate this page: