Jira development panel only shows maximum 50 commits from Bitbucket

Still need help?

The Atlassian Community is here for you.

Ask the community

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) -

  1. page.max.index.results=<number>
  2. 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. 

(warning) 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.

    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.

    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.

(info) Hard limit is capped at 1000 results to avoid issues with performance of JIRA 

BSERV-7848 - Getting issue details... STATUS

For all other Bitbucket properties please see - Bitbucket server config properties


Last modified on Dec 9, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.