The Teamwork Graph API is available through Forge's Preview release phase.
Preview features are available to all users and receive the same level of support as generally available features. Schemas, fields, and behavior may still change before general availability (GA), and breaking changes are subject to a minimum 1-month deprecation notice, announced in the Teamwork Graph changelog.
To review the current limitations, see Limitations and considerations.
To share feedback or report an issue, visit the Atlassian developer community.
Represents a pull request from Bitbucket or an external version control system.
The Teamwork Graph API has the following fields and properties that you can use in your queries:
You can access these fields in the GraphiQL playground using the book icon in the top left, and then searching for External pull request.
| Field | Type | Description |
|---|---|---|
author | User | User who authored the pull request. |
commentCount | Int | Number of comments on the pull request. |
containerId | ID | Identifier of the container (e.g., repository) that holds this pull request. |
createdAt | DateTime | Timestamp when the pull request was created. |
createdBy | User | User who created this pull request. |
description | String | Description of the pull request. |
displayId | ID | Display identifier for the pull request (e.g., PR number). |
displayName | String | Display name or title of the pull request. |
id | ID! | Unique identifier for the pull request. This ID is globally unique across the entire Teamwork Graph. |
lastUpdatedAt | DateTime | Timestamp of the most recent update to the pull request. |
lastUpdatedBy | User | User who last updated this pull request. |
provider | ExternalProvider | Provider or integration that supplies this pull request. |
pullRequestId | ID | Identifier of the pull request in the external system. |
repositoryId | ID | Identifier of the repository containing this pull request. |
reviewers | [ExternalReviewer] | Reviewers requested for this pull request. |
status | ExternalPullRequestStatus | Current status of the pull request. |
supportedActions | [String] | List of actions that can be performed on this pull request. |
tasksCount | Int | Number of tasks associated with the pull request. |
thirdPartyId | ID | Additional identifier used by the third-party system. |
title | String | Title of the pull request. |
url | URL | Direct URL to view the pull request in its source system. |
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier for the external provider. |
logoUrl | URL | URL to the provider's logo image for UI display. |
name | String | Display name of the provider (e.g., "Google Drive", "Dropbox", "GitHub"). |
| Field | Type | Description |
|---|---|---|
approvalStatus | ExternalApprovalStatus | The current approval status of the reviewer for the pull request. Indicates whether the reviewer has approved, requested changes, or has not yet reviewed. |
user | User | The user who is assigned as a reviewer for the pull request. Contains the reviewer's identity and profile information from the external system. |
| Value | Description |
|---|---|
APPROVED | The reviewer has approved the pull request. Indicates the changes are acceptable and ready to be merged. |
NEEDSWORK | The reviewer has requested changes to the pull request. Indicates the code needs modifications before it can be approved. |
UNAPPROVED | The reviewer has not yet provided an approval decision. This is the default state when a reviewer is first assigned. |
| Value | Description |
|---|---|
DECLINED | The pull request is declined |
DRAFT | The pull request is a draft |
MERGED | The pull request is merged |
OPEN | The pull request is open |
UNKNOWN | The pull request status is unknown |
The following relationships are currently supported for External pull request:
Relationships where External pull request is the source object.
Rate this page: