[BUG] Existing pull requests and branches links are broken after 8.21.0 update

PopUp House December 15, 2021

Hello,

After updating Jira Server from 8.19.1 to 8.21.0 and Bitbucket Server from 7.15.0 to 7.19.0, I have issues with existing branches and pull requests

Screenshot_20211215_170210.png

 

Steps to reproduce :

When I click on a branch or pr link, it shows an error "You don't have access to view all related pull requests. Please contact your administrator." or "You don't have access to view all related branches. Please contact your administrator."

Screenshot_20211215_170656.png

API request from browser console :

GET https://<myjira>/rest/dev-status/1.0/issue/detail?issueId=<myid>&applicationType=stash&dataType=pullrequest
{
"errors": [],
"detail": [
{
"branches": [],
"pullRequests": [],
"repositories": [],
"_instance": {
"applicationLinkId": "<myappid>",
"baseUrl": "https://<mybitbucket>",
"primary": true,
"singleInstance": false,
"name": "PopupBucket",
"typeName": "Bitbucket Server",
"id": "<myappid>",
type": "stash"
}
}
]
}

 

Actions :

I performed a full reindex, deleted the bitbucket link (both ways), tried Oauth and Oauth with impersonation methods but it didn't fix it.

 

Workaround :

New branches and PRs are not impacted and the workaround to fix existing PRs is to close then reopen them. It also fixes the branch link at the same time.

Screenshot_20211215_172225.png

Screenshot_20211215_173414.png

{
"errors": [],
"detail": [
{
"branches": [
{
"name": "ESKP-77-correction-des-btl-de-top-plate",
"url":
... 

 

9 answers

1 accepted

3 votes
Answer accepted
m1m1n0 December 21, 2021
Brian Keefe December 21, 2021

Thank you.

PopUp House December 21, 2021

Awesome, thanks @m1m1n0 !
The workaround provided in the issue works for me :

Via Postman :

POST https://{your_bitbucket_instance}/rest/jira-dev/1.0/projects/{your_project_key}/repos/{your_repo}/reindex
Authorization :
Type : Basic Auth
Username + Password : same as bitbucket
Additional header :
X-Atlassian-Token: no-check
1 vote
Don Masten
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 20, 2021

Seeing this with JIRA 8.17.1 and Bitbucket 7.19.1

0 votes
Bas December 22, 2021

Same here, upgraded from Bitbucket 7.17.1 to 7.19.1. 
Jira still at 8.20.1

0 votes
Agilent Technologies Inc. December 21, 2021

Same issue with jira v8.20.1 and upgrade to bitbucket 7.19.0 from 7.17.1

Any way to apply a global fix?

Also apply to closed PR

Thanks

0 votes
Alexandra King December 20, 2021

Is there a feasible fix for this yet? Same issue after upgrading to BB 7.19.1.

0 votes
Andreas Emer December 20, 2021

I can confirm this issue, we have the same problem after updating to the most current version of Jira 8.21.0 and Bitbucket 7.19.0.

0 votes
Jonathan Hogarth December 17, 2021

We upgraded to BitBucket v7.19.1 and Jira v 8.20.3 last night and noticed the exact same behavior.  Our stack is Atlassian Data Center tier of products.

0 votes
Benedikt S. December 16, 2021

We have the same problem with Jira 8.19.1 and Bitbucket Server from 7.19.1, after we upgraded from Bitbucket Server 7.17.1.

0 votes
m1m1n0 December 16, 2021

We have the same problem after upgrade to Bitbucket v7.19.0 while Jira is at v8.20.1

Suggest an answer

Log in or Sign up to answer