There is a discrepancy between the data shown in JIRA's dev summary panel and what's really in Bitbucket Server. For old branches/issues, this data will never get refreshed. (This is due to a discrepancy between the AO JIRA_INDEX table and sta_pull_request)
Bitbucket Server 4.6.2 with many 3rd party add-ons
The data shown in the dev summary panel and the state of PRs in Bitbucket Server should be in-sync.
The data shown in the dev summary panel shows the PR as OPEN when it's actually merged
Bitbucket provides a REST call that reindexes the branches and pull requests in the specified Bitbucket repository, triggering an update in JIRA which in turn updates the JIRA issue's dev summary panel. The REST call must be run as a user with an admin permissions:
Example for user admin, project TEST and repo TestRepo:
- There was a suggestion that this issue was caused by third-party plugins but we have seen this (rarely) on our internal Atlassian Bitbucket Server instance, so we know it can happen without them, too.
- Without "steps to reproduce", it's hard to know where to start on this bug. Perhaps we could provide some way to manually refresh the data (with a "reload" button in the dev summary panel?). That's not an elegant solution but we aren't seeing this issue often enough to think the feature needs significant hardening, either.