Forums

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

Fetching Issue from internal API.

federico November 15, 2022

Hello,

I have setup a webhook that call some API, and I need that API to retrieve the JIRA issue from a PullRequest.

I went trough the forum, and found some Atlassian staff recommending to use internal API even tho it might break at any time.

I did that and I am trying to fetch from

`https://bitbucket.org/!api/internal/repositories/{workspace}/{repo}/pullrequests/{pull_request}/jira/issues?page=1`

I use a Bearer token retrieve from OAUTH using 

`https://bitbucket.org/site/oauth2/access_token` and a client ID with repository/pull request/pipeline access.

The issue I have is, querying this endpoint with a token will return a status 200 but NO ISSUES.

If I query using the cookie `cloud.session.token` then the issues are populated.

I would like to know what are the reason for such behavior, and how to workaround.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events