Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Get Pull-Requests using REST API returns only 1 pull request

Pankaj Vohra April 12, 2017

I am trying to get list of pull requests for a given repository but the response  contains details of only 1 pull request. The documentation says the pull-requests API endpoint is a PagedAPI (https://developer.atlassian.com/static/rest/stash/3.11.6/stash-rest.html#idp3175008), but the results shows there is only one record (isLastPage = true). I am not sure what is going wrong.

end point: https://<server>/rest/api/1.0/projects/RS/repos/repo_name/pull-requests

response:

{
"size": 1,
"limit": 25,
"isLastPage": true,
"values": [...],

"start": 0
}

1 answer

0 votes
Michał Piekarski January 22, 2024

It defaults to show only open and incoming pull requests.

  • You might want to check if passing for example state=all parameter gives you the desired result.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events