Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use REST API to retrieve pull requests for an issue

Thomaz Koberle
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2018

Hello

Can someone please show me what are the REST API endpoints I need to hit to retrieve the pull requests that exist for a given Jira Issue ?

 

Right now I'm using /rest/api/2/issue/issueId to grab the issue data but in the response I don't see anything related to pull requests. I looked through the Stash/BitBucket REST API documentation but couldn't find anything that allows me to get a PR based on an issue id.

There's got to be a way to do this. Any suggestions ?

Regards

Thomaz

1 answer

0 votes
Earl Berg October 11, 2019

Anyone?

Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2020

Hi @Earl Berg 

I know this is a few months later, but you may still be wanting an answer. Try looking at https://community.atlassian.com/t5/Jira-questions/JIRA-REST-API-to-get-list-of-branches-related-to-a-issue/qaq-p/800389 - it seems to answer the question

Suggest an answer

Log in or Sign up to answer