The Pull request object type represents Developer Information (DevInfo) pull request entity. atlassian:pull-request
should be used to ingest pull request-specific fields.
Additional required fields for Pull-Request:
containerKey - Required with type atlassian:repositoryYou must send the container repository as a separate entity in the same payload.
1 2objects {} ├─ schemaVersion (string) [Required] ├─ id (string) [Required] ├─ updateSequenceNumber (long) [Required] ├─ displayName (string) [Required] ├─ description (string) [Optional] ├─ url (string) [Required] ├─ createdAt (Instant (ISO8601 / RFC3339)) [Required] └─ createdBy (userReference) [Optional] ├─ accountId (string) [Optional] ├─ email (string) [Optional] └─ externalId (string) [Required] └─ lastUpdatedAt (Instant (ISO8601 / RFC3339)) [Required] └─ lastUpdatedBy (userReference) [Optional] ├─ accountId (string) [Optional] ├─ email (string) [Optional] └─ externalId (string) [Required] └─ containerKey (EntityKey) [Required] ├─ type (string) [Required] └─ value (jsonNode) [Required] └─ permissions [] [Required] └─ accessControls └─ principals └─type └─ associations [] [Optional] ├─ associationType (string) └─ values [] atlassian:pull-request ├─ title (string) [Optional] ├─ displayId (string) [Required] ├─ status (string) [Required] ├─ author (userReference) [Optional] ├─ accountId (string) [Optional] ├─ email (string) [Optional] └─ externalId (string) [Required] ├─ commentCount (integer) [Optional] ├─ sourceBranch (string) [Required] ├─ sourceBranchUrl (string) [Optional] ├─ destinationBranch (string) [Required] ├─ destinationBranchUrl (string) [Optional] ├─ reviewers (List<Reviewer>) [Required] ├─ accountId (string) [Optional] ├─ externalId (string) [Required] ├─ email (string) [Optional] ├─ approvalStatus (string) [Optional] ├─ name (string) [Optional] ├─ avatar (string) [Optional] ├─ url (string) [Optional] └─ ari (string) [Optional] └─ taskCount (integer) [Optional]
| Property | Type | Required | Description |
|---|---|---|---|
schemaVersion |
| Yes | The schema version of the object. |
id |
| Yes | The ID of the object in the source system. |
updateSequenceNumber | long | Yes | A sequence number to compare when writing to the database. Objects are written following
a last write wins strategy, therefore an object with a greater UpdateSequenceNumber
is considered a more recently updated object. |
displayName | string | Yes | The display name of the object. |
description | string | No | The description of the object. |
url | string | Yes | The URL from the provider which the object is accessible from. |
createdAt | string | Yes |
The date the object was created. Format: Instant (ISO8601 / RFC3339) |
createdBy | userReference | No |
A reference to the user that created the object. See userReference to learn more. |
lastUpdatedAt | string | Yes |
The date the object was last updated. Format: Instant (ISO8601 / RFC3339) |
lastUpdatedBy | userReference | No |
A reference to the user that last updated the object. See userReference to learn more. |
owners | list<userReference> | No | List of references of users that own the object. |
thumbnail | thumbnail | No |
The thumbnail of the object. See Thumbnail to learn more. |
parentKey | entityKey | No |
The ID of the parent object. If null, it is a standalone object. See Entity key to learn more. |
containerKey | entityKey | Yes |
The container identifier that this object belongs to. See Entity key to learn more. |
permissions | list<Permissions> | Yes |
The permissions configuration of the object. See Permissions to learn more. |
associations | association | No |
List of objects associated with the object. Generally used to link an external object to a Atlassian object. See Association to learn more. |
| Property | Type | Required | Description |
|---|---|---|---|
title | string | No | The title of the pull request. |
displayId | string | Yes |
The pull request display ID. Validation: max-length: 255 |
status | string | Yes |
The pull request status. Allowed values: |
author | userReference | No |
The author of the pull request. See userReference. |
commentCount | integer | No |
The number of comments on the pull request. Format: Non-negative number |
sourceBranch | string | Yes |
The source branch of the pull request. Validation: max-length: 255 |
sourceBranchUrl | string | No |
The source branch URL. Format: Valid URL |
destinationBranch | string | Yes |
The destination branch of the pull request. Validation: max-length: 255 |
destinationBranchUrl | string | No |
The destination branch URL. Format: Valid URL |
reviewers | List<Reviewer> | Yes |
The pull request reviewers. Validation: max-length: 10 |
reviewers.accountId | string | No | The reviewer's Atlassian Account ID (AAID). |
reviewers.externalId | string | Yes | The reviewer's external ID. |
reviewers.email | string | No |
The reviewer's email. Validation: max-length: 255 |
reviewers.approvalStatus | string | No |
The reviewer's approval status. Allowed values: |
reviewers.name | string | No | The reviewer's name. |
reviewers.avatar | string | No | The reviewer's avatar URL. |
reviewers.url | string | No | The reviewer's URL. |
reviewers.ari | string | No | The reviewer's URI. |
taskCount | integer | No |
The number of tasks on the pull request. Format: Non-negative number |
1 2{ "objects" : [ { "schemaVersion" : "2.0", "id" : "repo-1", "updateSequenceNumber" : 1, "displayName" : "My repository", "description" : "A test repository", "url" : "https://bitbucket.org/my-project/my-repo/src/master/", "lastUpdatedAt" : "2023-07-19T15:27:37.000Z", "permissions" : [ { "accessControls" : [ { "principals" : [ { "type" : "ATLASSIAN_WORKSPACE" } ] } ] } ], "atlassian:repository" : { "forkOf" : "repo-2", "avatar" : "avatar.png", "avatarDescription" : "An avatar" } }, { "schemaVersion" : "2.0", "id" : "pr-1", "updateSequenceNumber" : 1, "displayName" : "SAI-123 A PR to do things", "description" : "This Pull request does X, Y, and Z.", "url" : "https://bitbucket.org/my-project/my-repo/pull-requests/2", "createdAt" : "2023-07-18T10:00:00.000Z", "lastUpdatedAt" : "2023-07-19T15:27:37.000Z", "containerKey" : { "type" : "atlassian:repository", "value" : { "repositoryId" : "repo-1" } }, "owners" : [ { "externalId" : "external-id-1", "email" : "user4@example.com" } ], "permissions" : [ { "accessControls" : [ { "principals" : [ { "type" : "ATLASSIAN_WORKSPACE" } ] } ] } ], "atlassian:pull-request" : { "displayId" : "#2", "status" : "open", "author" : { "externalId" : "external-id-1" }, "commentCount" : 324, "sourceBranch" : "SAI-123-sdf", "destinationBranch" : "main", "reviewers" : [ { "externalId" : "external-id-2", "email" : "user5@example.com", "approvalStatus" : "approved" } ], "taskCount" : 21 } } ] }
Rate this page: