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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get the open pull request list or details from repo with specific source branch Edited

I am trying to get the list of open pull requests created from a branch.

I followed the syntax from REST API Documentation but i am getting all pull requests from repo.  

curl -vvv -H "Authorization: Bearer $API_TOKEN" -X GET

Expecting Result: Open pull Requests from the branch "CI/Update-version-in-develop" to develop. Usually we are create pull request to develop branch only.

The goal is if pull requests present, delete them and branch CI/Update-version-in-develop. 


But getting response like all the open pull requests in the repo.


1 answer

1 accepted

0 votes
Answer accepted

just added the double quotes " curl url. and got the response with pull requests that are open from source branch.

curl -vvv -H "Authorization: Bearer $API_TOKEN" -X GET ""

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,804 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you