Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Object types
Object operations
User operations
Group operations
Last updated Jul 16, 2025

Pull request

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:repository

You must send the container repository as a separate entity in the same payload.

Payload structure

1
2
  objects {}
  ├─ 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]

Common properties

PropertyTypeRequiredDescription
schemaVersion

string

YesThe schema version of the object.
id

string

YesThe ID of the object in the source system.
updateSequenceNumberlongYesA 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.
displayNamestringYesThe display name of the object.
descriptionstringNoThe description of the object.
urlstringYesThe URL from the provider which the object is accessible from.
createdAtstringYes

The date the object was created.

Format: Instant (ISO8601 / RFC3339)

createdByuserReferenceNo

A reference to the user that created the object.

See userReference to learn more.

lastUpdatedAtstringYes

The date the object was last updated.

Format: Instant (ISO8601 / RFC3339)

lastUpdatedByuserReferenceNo

A reference to the user that last updated the object.

See userReference to learn more.

ownerslist<userReference>NoList of references of users that own the object.
thumbnailthumbnailNo

The thumbnail of the object.

See Thumbnail to learn more.

parentKeyentityKeyNo

The ID of the parent object. If null, it is a standalone object.

See Entity key to learn more.

containerKeyentityKeyYes

The container identifier that this object belongs to.

See Entity key to learn more.

permissionslist<Permissions>Yes

The permissions configuration of the object.

See Permissions to learn more.

associationsassociationNo

List of objects associated with the object. Generally used to link an external object to a Atlassian object.

See Association to learn more.

Pull request properties

PropertyTypeRequiredDescription
titlestringNo

The title of the pull request.

displayIdstringYes

The pull request display ID.

Validation: max-length: 255

statusstringYes

The pull request status.

Allowed values: open, draft, merged, declined, unknown

authoruserReferenceNo

The author of the pull request.

See userReference.

commentCountintegerNo

The number of comments on the pull request.

Format: Non-negative number

sourceBranchstringYes

The source branch of the pull request.

Validation: max-length: 255

sourceBranchUrlstringNo

The source branch URL.

Format: Valid URL

destinationBranchstringYes

The destination branch of the pull request.

Validation: max-length: 255

destinationBranchUrlstringNo

The destination branch URL.

Format: Valid URL

reviewersList<Reviewer>Yes

The pull request reviewers.

Validation: max-length: 10

reviewers.accountIdstringNo

The reviewer's Atlassian Account ID (AAID).

reviewers.externalIdstringYes

The reviewer's external ID.

reviewers.emailstringNo

The reviewer's email.

Validation: max-length: 255

reviewers.approvalStatusstringNo

The reviewer's approval status.

Allowed values: approved, unapproved, needswork

reviewers.namestringNo

The reviewer's name.

reviewers.avatarstringNo

The reviewer's avatar URL.

reviewers.urlstringNo

The reviewer's URL.

reviewers.aristringNo

The reviewer's URI.

taskCountintegerNo

The number of tasks on the pull request.

Format: Non-negative number

Example payload

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: