Forums

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

Is there an API to get the JIRA "Related Issues" in a PR in Bitbucket?

John February 27, 2019

Just wondering if there is a way to use the Bitbucket API to get the "Related Issues" list you can see in the UI in a Pull Request:

Screenshot 2019-02-27 at 15.15.55.png

 

We'd like to be able to programatically do stuff with those issues when a PR is approved.

 

(Yes, I'm aware of Triggers in Jira, but I don't think that will cover my use case as I need to only transition when a PR has been released to our `release` branch).

 

UPDATE: Actually, I've figured out a better way of doing what I want without using the API. We're using Bamboo+Jira+Bitbucket and I was trying to make it so that we could modify the Jira tickets when we merge a PR into our `release` branch. But, I realised that since we use Bamboo to do our releases, I can simply add a trigger from Bamboo to Jira instead. Since we can restrict the trigger to only fire when it's a release to production, this is exactly what I want. Leaving this question here in case it's useful to people...

 

Cheers,

 

John

2 answers

1 accepted

1 vote
Answer accepted
John March 1, 2019

Actually, I've figured out a better way of doing what I want without using the API. We're using Bamboo+Jira+Bitbucket and I was trying to make it so that we could modify the Jira tickets when we merge a PR into our `release` branch. But, I realised that since we use Bamboo to do our releases, I can simply add a trigger from Bamboo to Jira instead. Since we can restrict the trigger to only fire when it's a release to production, this is exactly what I want. Leaving this question here in case it's useful to people...

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 1, 2019

HI John,

It sounds like you found a solution yourself.  If you could, please post your solution as an answer instead of editing your question.  This way you can accept your own answer.  This will mark the question as solved, and give the title that "Solved:" prefix.  In turn this will help with others that search this topic to quickly see it has a solution.

Thanks

Andy

John March 1, 2019

Will do!

Suggest an answer

Log in or Sign up to answer