Hi Sonar team,
We manage ~500 repositories in a single Bitbucket Cloud workspace, all analyzed on SonarQube Cloud. We can already fully automate everything via API except turning on the repository overview widget, and we’d like to request an API for it.
What we automated successfully (works great):
- Project creation:
POST sonarcloud.io/api/projects/create - Project ↔ Bitbucket repo binding:
POST api.sonarcloud.io/dop-translation/project-bindingswith{projectId, repositoryId}→ 201. This enables PR decoration.
What has no API — the widget toggle:
The “Show repository overview widget” checkbox (Repository settings → SonarQube Cloud → Settings) is the only step left that we cannot do server-to-server. After investigating, we found it is not stored in SonarQube Cloud at all — it is a Bitbucket application property under the Connect app key sonarcloud:
PUT api.bitbucket.org/2.0/repositories/{workspace}/{repoUuid}/properties/sonarcloud/disabled → false
That property is writable only by the SonarQube Cloud Connect app’s signed JWT (from the settings iframe). No Bitbucket user/admin token can write it (403 “does not support authentication using the provided token”), and there is no SonarQube Cloud API endpoint for it (api/alm_settings/* → 404; not present in api/webservices/list; dop-translation only covers the binding).
The ask:
Please expose an API to set this widget flag per project/repository — ideally alongside the existing dop-translation/project-bindings endpoint (e.g. a showRepositoryOverviewWidget field on the binding, or a dedicated endpoint). For teams onboarding hundreds of repos, clicking a checkbox per repo in the browser is the only remaining manual step, and browser automation is not a viable long-term path given the Atlassian Connect → Forge transition (Connect end-of-support Dec 2026).
Happy to share the full technical breakdown if useful. Thanks!