Tried 8.3.1 and 7.9(LTS) at the time of writing this request for help
Import generic issues from external scanner
Tried importing the sample json provided here - https://docs.sonarqube.org/latest/analysis/generic-issue/
Ran sonar-scanner(SonarScanner 4.3.0.2102) in the project root(empty src directory) with the below contents of the sonar-project.properties
You mention Maven, and I think the issue might be that since Maven auto-sets sonar.sources the files in your external issues report might be being omitted altogether from analysis. Does that sound right? Where are the files that are referenced in your issues.json?
&BTW, to override the auto-fed value for sonar.sources you would pass it on the command line, like so: mvn [other goals] sonar:sonar -Dsonar.sources=...
Issues need to be attached to something. It might be possible to attach them to a directory (my testing of the generic issues format was a very long time ago now). If that doesn’t work, I guess you can attach them to an arbitrarily chosen file. What are you currently filling in for filePath?
I used the example json exactly as it is provided. Included below for reference. I don’t want or even care that the file doesn’t exist really. I just want to create issuess from a file with the content I choose
I would love for the create issue api to re-appear, please.