Quality Gate results not displaying while merging PRs in Bitbucket

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Version 8.9 (build 43852)

  • what are you trying to achieve
    Trying to get quality gates displayed while reviewing a Pull Request in BitBucket. It gives following error- (see also screenshot attached)

Sonar data unavailable

Was not able to fetch data for Sonar project “xxx”. Either:
Your pull request has not been analyzed yet
A non-existing Sonar project is referenced. You can configure the Sonar project in the [repository settings]


Have you been through the setup steps?