Main branch setting broke our KPI

Make sure to tell us:

  • What version are you upgrading from? 8.9
  • System information (Operating system, Java version, Database provider/version) HELM - OPENSHIFT 4
  • What’s the issue you’re facing?

Hi Sonar Community,

We upgraded from 8.9 to 9.9 successfully.

I faced two issues.

  1. In the past, our KPI was fetching from an API how many projects were scanned each day. We are using api/project_analyses/search?project=‘+ project_key+’&from=‘+from_date+’&to='+to_date
    to fetch current analyses.

However, it doesn’t show the projects that their develop branch is only analyzed.

The same script was showing more projects and since we upgraded to 9.9, it only shows that their main branch is analyzed.

  1. In portfolio settings, there is a feature that you need to select one branch in the branch selection.
    If portfolio’s admin chooses main, the projects that their develop branch is analyzed, regardless of their correct project key, still the project will not be added to the portfolio.

That’s quite confusing. They want to have all of their projects in their portfolio.

I appreciate any help in advance.


With 10.2 we add the ability to change which branch is considered main, so after release (E.T.A. 6 Sept) and upgrade, you’ll be able to make the develop branch the one reported on by these APIs.

Regarding portfolios, as you noted, you choose which branch to use in the portfolio. It sounds like you may want to change how your portfolios are configured.

BTW, neither of these things should be new in 9.9.


Thanks for your response. Then, we will upgrade to 10.2 because currently the API doesn’t support branch selection.

Regarding portfolio, maybe it was introduced but we had 8.9 previously and in 8.9, projects regardless of their branch were present. Nevertheless, this has changed in 9.9 or probably earlier and branch must be selected in the portfolio settings.


Before we introduced the ability to choose which branch was included in a portfolio, it was just always main by default.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.