Jira development panel only shows maximum 50 commits from Bitbucket
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
JIRA development panel is only showing 50 commits when there are much more commits for a particular issue in JIRA.
Cause
Bitbucket threshold for page.max.index.results
only allows 50 commits by default.
Resolution
Add properties into the bitbucket.properties
file located in the Shared Folder of your Bitbucket home directory (or create the file if it does not exist).
Add the following parameters (replace <number> with desired amount) -
page.max.index.results=<number>
plugin.dev-summary.issue.commits.threshold=<number>
Both needs to be added or changed to allow more than 50 commits to show up.
A Restart of Bitbucket is required for the changes to take effect.
After restarting Bitbucket, restart JIRA.
⚠️ At times it is observed even after implementing the changes mentioned in the resolution steps, the commit information shows incorrectly. It could be due to the following reasons:
Cache is not updated in the AO_575BF5_DEV_SUMMARY table from where Jira fetches the details. To overcome this following can be used as a workaround.
Run the below SQL query on the Jira database to find the Application key for Bitbucket.
1 2 3
SELECT SUBSTR(a.property_key,16,36) as "Application Key", b.propertyvalue as "Linked Application Name" FROM propertyentry a join propertystring b on a.id=b.id where a.property_key like 'applinks.admin%name';
Run the below SQL query on the Jira database to delete the Bitbucket entries.
1
delete from "AO_575BF5_DEV_SUMMARY" ads "PROVIDER_SOURCE_ID" = "VALUE FROM PREVIOUS QUERY"
Or Add a new commit to the affected issues. So, the commits count is updated under the Jira development panel.
ℹ️ Hard limit is capped at 1000 results to avoid issues with performance of JIRA
For all other Bitbucket properties please see - Bitbucket server config properties
Was this helpful?