Create project by api does not link project to bitbucket repository

When using the API to automate sonar project creation, the bitbucket PR component does not recognise the sonar project as a project.

https://sonarcloud.io/web_api/api/projects/create?deprecated=false&section=params

How can we automate sonar project creation, with bitbucket repository relation

  • ALM used Bitbucket Cloud
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
    Bitbucket pull request is not linked to a sonar project
  • Steps to reproduce
    Import project using API
    Create PR in bitbucket

Hey there.

PR Decoration requires a bound project, which implies creating the project via the UI. I suggest voting on this particular roadmap item.