Rest API + better ticket description#4
Rest API + better ticket description#4jan-zajic wants to merge 8 commits intoSonarQubeCommunity:masterfrom
Conversation
jan-zajic
commented
Dec 22, 2015
- I refactor code, so used jira api is plugable (you can choose new REST api in global configuration, SOAP is default one) (sonar.jira.rest property).
- I improved the jira ticket description so it contains line number and class where problem occured.
- New option to add label to created jira ticket (label name configured using sonar.jira.issue.sonar.label property).
|
And i fix bug with issue url in jira ticket description, which don't link to issue in new sonarsource versions. |
|
How can I use your Plugin for me it looks like he try to use still the soap-Interface, because always I run sonar-runner on the CLI I get the error: |
|
@SamMumm i first use Jira api only for JiraIssueCreator, as we don't use JiraSensor functionality, but i fix it for you. Please can you try it again? Unfortunately, I can't currently test it .. |
|
@jan-zajic first of all I would like to say thank you for your quick response. But i am sorry the execution of sunner-runner failed without any error the last lines it shows is Additional I would like to ask how can i use the JiraIssueCreator? If I try to link a Issue in sonarqube with jira I only get a pop-up with the message: "error". Do you maybe know how I can increase the loglevel of the plugin? |
|
ok the second point now works for me it just was a misconfiguration in my sonarqube-Installation |
|
Thanks for the fix, it really helps. I set it to 1 just to get around the error, which created a Jira ticket with no Component Value set. Any way to make the plugin assign the Jira ticket to the person assigned in Sonar? Lastly, is it possible to bulk Link to Jira tickets. Thanks again for the plugin and the fix. |
| Map<String, Integer> issuesByPriority = collectIssuesByPriority(service, authToken, filter); | ||
| private JiraSession getSession() throws MalformedURLException { | ||
| if(isUseRestApi()) | ||
| return new JiraRestSession(new URL(getServerUrl() + "/rpc/soap/jirasoapservice-v2")); |
There was a problem hiding this comment.
You have swapped the REST and SOAP URLs. It should be:
if(isUseRestApi())
return new JiraRestSession(new URL(getServerUrl() + "/"));
else
return new JiraSoapSession(new URL(getServerUrl() + "/rpc/soap/jirasoapservice-v2"));|
@jascha you're right, i fixed it. Thanks for your attention. |
|
Hi, is the jira plugin still maintained? |
|
Hi everyone. makes me think that their is a deliberate wish not to merge this fix. The idea is to do continuous quality checks more than remediation plans (that's mainy what we want to achive when linking in Jira). However Bellingard gives a tip at the end of his blog post to establish smtg that could be similar :
|