How to retrieve Pull request and Bitbucket repo and branch information from an issue using REST API

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When trying to execute the below URL for details it didn't work (blank page returned)

http://<jira base URL>/rest/dev-status/1.0/issue/detail?issueId=<issue-id>&applicationType=bitbucket&dataType=repository

However, when using the summary api it returns the results:

https://<jira base URL>/rest/dev-status/1.0/issue/summary?issueId=<issue-id>&applicationType=bitbucket&dataType=repository

Environment

8.13.4

.

Cause

The endpoint contains the bitbucket as the applicationType entry. Jira is still using stash (older name of Bitbucket) as the applicationType entry.

Solution

To get development tool related information from Jira, use the following 2 endpoints:

Repository data

https://<jira base URL>/rest/dev-status/1.0/issue/detail?issueId=<issue-id>&applicationType=stash&dataType=repository

Branch/Pull Request

https://<jira base URL>/rest/dev-status/1.0/issue/detail?issueId=<issue-id>&applicationType=stash&dataType=pullrequest

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.