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.