Fetching source code from SonarQube through API or via database

I want to run some data analytics on data generated from sonarqube.
Most of the details I am able to fetch via sonarqube API except the source code stored on sonarQube which is associated with the buggy code.

This is my scenario:

  1. I want bug/issue details together with buggy code.
  2. I want details if above bug is already fixed, if yes what is the fixed code.

Greetings Arpit,

Since this question was already filed (I assume, by you) through SonarSource’s Service Desk and your organisation’s support contract, can you please follow-up there instead of creating another topic here?