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 JIRA card from PR by using bitbucket api

I succeeded in using bitbucket api to view my pull requests infomation.

curl -X GET

Recently I added JIRA's components to Bibucket to get my pull requests to be able to link to JIRA's cards.

I can not see from the information downloaded from the API which pull requests  link JIRA card.

Does anyone know why or is there any other API way to know?

2 answers

1 accepted


Can you help me?

I use 

curl -X GET https://$USERNAEM:$PASSWORD@$$PROJECTID/repos/$REPOID/pull-requests/$PRID/issues

but got

`Oops, you've found a dead link.`

The bitbucket repoID , PR , jira projectID exist and bitbucket have connected to jira.

Felix Atlassian Team Aug 14, 2017


I'm not sure where you found the URL you are using, but I don't think it'll work. 

From your question it seems like you are using Atlassian's Cloud offerings (for both Bitbucket and JIRA). 

The URL you are using looks like a Bitbucket Server URL. The Bitbucket Server and Cloud APIs are not the same. 

The API reference doesn't list anything related to the JIRA integration. 

Unfortunately I'm not familiar with how the JIRA integration works in, and I couldn't find a public API to retrieve issues linked from a pull request. 

I've added a few more tags to this question, so that maybe someone that knows stumbles upon it. 

If you need an answer quickly, I'd suggest raising a support request on



Did somebody find a way how to get Jira ticket for pull request?

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,741 views 10 16
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