# Importing External Issues

**URL:** <https://community.sonarsource.com/t/importing-external-issues/3276>\
**Category:** SonarQube Server / Community Build\
**Tags:** external\_issues\
**Created:** [October 11, 2018, 5:03pm UTC](https://community.sonarsource.com/t/importing-external-issues/3276 "2018-10-11T17:03:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhoove02](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@jhoove02](https://community.sonarsource.com/u/jhoove02)\
**Post date:** [October 11, 2018, 5:03pm UTC](https://community.sonarsource.com/t/importing-external-issues/3276/1 "2018-10-11T17:03:02Z")

</div>

Using SonarQube 7.3 and the latest download of sonar-scanner, how does one import external issues? As a sanity check I’m attempting to import the example generic issue json for [Generic Issue Data](https://docs.sonarqube.org/display/SONAR/Generic+Issue+Data)

My sonar-project.properties file contains this:

```auto
sonar.host.url=http://localhost:9000
sonar.projectKey=abc123321
sonar.projectName=PLEASE_WORK
sonar.projectVersion=1.0
sonar.sources=SonarQubeIssueData.json
sonar.externalIssuesReportPaths=SonarQubeIssueData.json
sonar.issuesReport.json.enable=true
sonar.log.level=TRACE
sonar.verbose=true
sonar.showProfiling=true

```

The SonarQubeIssueData.json file contains the json from [Generic Issue Data](https://docs.sonarqube.org/display/SONAR/Generic+Issue+Data)

I then execute from the same directory containing the above properties file:  
`sonar-scanner -X`

I see that something is happening in the SonarQube log. And the sonar-scanner log reports a success:  
`12:57:20.512 INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=abc123321`

However, none of the external issues show in the SonarQube web console.

What am I missing?

---

<div class="post-metadata">

**Author:** ![NicoB](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/nicob/32/3_2.png) [@NicoB](https://community.sonarsource.com/u/NicoB)\
**Post date:** [October 11, 2018, 10:42pm UTC](https://community.sonarsource.com/t/importing-external-issues/3276/2 "2018-10-11T22:42:48Z")

</div>

Hi Jason,

> [@jhoove02](#):
>
> The SonarQubeIssueData.json file contains the json from [Generic Issue Data](https://docs.sonarqube.org/display/SONAR/Generic+Issue+Data)

Did you adapt the filepaths so that they correspond to actual files that are being scanned by SonarQube ? SonarQube will import the external issue(s) only if they relate to source file(s) that’s actually been analyzed (and which can then be browsed in SQ).

---

<div class="post-metadata">

**Author:** ![jhoove02](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@jhoove02](https://community.sonarsource.com/u/jhoove02)\
**Post date:** [October 12, 2018, 12:17am UTC](https://community.sonarsource.com/t/importing-external-issues/3276/3 "2018-10-12T00:17:36Z")

</div>

Woops! That solved it. Thank you!

---

<div class="post-metadata">

**Author:** ![frederic.depale](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/frederic.depale/32/2539_2.png) [@frederic.depale](https://community.sonarsource.com/u/frederic.depale)\
**Post date:** [November 20, 2018, 2:02pm UTC](https://community.sonarsource.com/t/importing-external-issues/3276/4 "2018-11-20T14:02:51Z")

</div>

Hi,  
Is it possible to use the properties “sonar.externalIssuesReportPaths” with SonarQube 6.7.3  
Best regards,  
Frédéric Depale

---

<div class="post-metadata">

**Author:** ![NicoB](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/nicob/32/3_2.png) [@NicoB](https://community.sonarsource.com/u/NicoB)\
**Post date:** [November 20, 2018, 2:37pm UTC](https://community.sonarsource.com/t/importing-external-issues/3276/5 "2018-11-20T14:37:31Z")

</div>

> [@frederic.depale](#):
>
> Is it possible to use the properties “sonar.externalIssuesReportPaths” with SonarQube 6.7.3

Nope, this capability was introduced and announced in [SonarQube 7.2](https://www.sonarqube.org/sonarqube-7-2/).

---

<div class="post-metadata">

**Author:** ![frederic.depale](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/frederic.depale/32/2539_2.png) [@frederic.depale](https://community.sonarsource.com/u/frederic.depale)\
**Post date:** [November 20, 2018, 2:50pm UTC](https://community.sonarsource.com/t/importing-external-issues/3276/6 "2018-11-20T14:50:41Z")

</div>

Thanks a lot !

---

<div class="post-metadata">

**Author:** ![Tarun\_Gosai](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/tarun_gosai/32/15885_2.png) [@Tarun\_Gosai](https://community.sonarsource.com/u/Tarun_Gosai)\
**Post date:** [October 10, 2020, 10:58am UTC](https://community.sonarsource.com/t/importing-external-issues/3276/7 "2020-10-10T10:58:32Z")

</div>

Hi @NicoB,

After upgrading SonarQube from 8.2 to 8.5, generic issue format is not working me. Below is my SonarQubeIssueData.json file.  
{  
“issues”: [  
{  
“engineId”: “test”,  
“ruleId”: “rule1”,  
“severity”: “BLOCKER”,  
“type”: “CODE\_SMELL”,  
“primaryLocation”: {  
“message”: “fully-fleshed issue”,  
“filePath”: “my file path”,  
“textRange”: {  
“startLine”: 30,  
“endLine”: 30  
}  
}  
}  
]  
}

Can you please help me with it?

Many Thanks!
