I want to write a Python program that uses Atlassian's Jira and Bitbucket. By inputting an issue number, it should be able to retrieve all pull requests related to that issue. How can this be achieved?
Hi @cngufeng1
You can retrieve all Bitbucket pull requests linked to a Jira issue using the Jira REST API endpoint:
/rest/dev-status/1.0/issue/detail?issueKey=PROJ-123&applicationType=bitbucket&dataType=pullrequest.
How to retrieve Pull request and Bitbucket repo and branch information from an issue using REST API | Jira and Jira Service Management | Atlassian Support
Hope this helps - Happy to help further!!Thank you very much and have a great one!Warm regards
It looks like you're new here. Sign in or register to get started.