Hello,
I am looking for a way to get the link/number of a github PR that is associated with a Jira ticket. Is there any way to do that using the REST API?
Thank you!
Ilko
Hello,
I am looking for a way to get the link/number of a github PR that is associated with a Jira ticket. Is there any way to do that using the REST API?
Thank you!
Ilko
Welcome to the Atlassian developer community @IlkoMihov,
Short answer no. We talk about those APIs as open DevOps APIs; however, these are currently only available to POST
events but not to GET
(or query) the resulting data. The idea of APIs for consuming the data was also discussed on this thread:
At this time, I’m not aware of any public issues or roadmap items to prove that we’re considering the item. However, I will be sure your question gets to the right product manager. To that end, could you explain how you wanted to use URL or ID of a GitHub PR from the Jira REST API?
Hi @ibuchanan
I’m not the original poster, however, I, too, ran into this issue. I’ll try to explain my use-case: I’d like to integrate Jira & Github into our internal automation and analytics. Jumping from a Jira Issue directly to the PR would allow me to gain insights about an issue’s PR (comments, time to close, commits, etc.). By combining Jira’s REST API with Github’s GraphQL API, we could integrate very seamlessly with our internal tooling.
The only option to do that now is to scan all our Github projects & PRs for backlinks to Jira, and populate a database. That’s pretty cumbersome!
There is a Feature Request open for this issue that used to have a work-around that does not seem to be working anymore:
You may want to vote and watch the above feature request, in order to be updated on the progress or on any new workaround that might be added in the future.