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
Relationship types
Last updated Nov 25, 2025

Jira work item links external pull request

The JiraWorkItemLinksExternalPullRequest relationship represents the link between a Jira issue and an external pull request within the Teamwork Graph. It allows you to:

  • Retrieve external pull requests associated with a specific Jira issue
  • Find which Jira issues are associated with an external pull request
  • Traverse and analyze issue-pull-request relationships

Relationship type: Canonical

From object typesTo object types
Jira Issue - ati:cloud:jira:issueExternal Pull Request - ati:cloud:jira:pull-request
External Pull Request - ati:cloud:graph:pull-request

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 JiraWorkItemLinksExternalPullRequest_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 (issue:JiraIssue {ari: $id})-[:jira_work_item_links_external_pull_request]->(request:GraphPullRequest) RETURN request",
  "params": {
    "id": "$id"
  }
}

Inverse query

GraphQL
1
2
query JiraWorkItemLinksExternalPullRequest_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on JiraIssue {
                  id
                }
              }
            }
          }
        }
      }
    }
  }
}
Params
1
2
{
  "cypherQuery": "MATCH (issue:JiraIssue)-[:jira_work_item_links_external_pull_request]->(request:GraphPullRequest {ari: $id}) RETURN issue",
  "params": {
    "id": "$id"
  }
}

Metadata

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

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: