Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{iframe:src=http://update.sonarsource.org/plugins/jira-confluence.html|width=700|height=250300|frameborder=0}
Your browser does not support iframes.
{iframe}

Compatibility Matrix

Plugin

0.1

0.2

0.2.1

0.3

1.01.1

Jira 3.x

(tick)

only 3.13 (tick)

(tick)

(tick)

(tick)

(tick)

Jira 4.x

(minus)

(plus)

(tick)

(tick)

(tick)

(tick)

Jira 5.x

(question)

(question)

(question)

(tick)

(tick)

(tick)

Description / Features

This plugin connects SonarQube to Altassian JIRA in various ways.

...

SonarQube retrieves the number of issues associated to with a project from JIRA. It then reports on the total number of issues and distribution by priority.

...

This feature allows you to link a SonarQubeissue SonarQube issue to a JIRA issue . It will create by creating a new JIRA ticket for the SonarQube issue.

When logged in, you should find the "Link to JIRA" action available on any issue:

You can enter any comment and after After you press "Link to JIRA", a new review comment is added on the issue: you can see the link to the newly-created JIRA ticket.

...

And the corresponding JIRA look looks like:

Installation

  1. Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQube server

Requirements

Plugin

1.01.11.11.2

Jira 3.x

(tick)

(tick)(tick)(tick)

Jira 4.x

(tick)

(tick)(tick)(tick)

Jira 5.x

(tick)

(tick)(tick)(tick)

Jira 6.x

(error)

(error)(error)(tick)

Include Page
Include - Plugin Installation
Include - Plugin Installation

Usage

Mandatory Properties

At the project or global level go to Settings > JIRA and set the sonar.jira.urlsonar.jira.login.secured and sonar.jira.password.secured properties.

Note
titleSecurity note for SonarQube 3.4+.0 to 3.6.3 included

For the *.secured properties to be read during the project analysis, it is necessary to set the sonar.login and sonar.password properties to the credentials of a user that is both:

  • System administrator
  • And project administrator on the project that is being analyzed
Example:
sonar-runner -Dsonar.login=admin -Dsonar.password=admin

...

  1. Log in to your JIRA instance and create a filter. Mark it as favorite. You can may also want to share this filter with your team in order to allow usage of URL for issues in SonarQube.

  2. And finally specify Specify the sonar.jira.url.param property for the project or module: this is the name of an issue filter that you have previously created on JIRA (check see the JIRA documentation to know for more about on issue filters).

To Create JIRA Issues

Set the sonar.jira.project.key property that is the key of the JIRA project on for which this SonarQube plugin will generate tickets

...

Note
titleConnecting to JIRA through HTTPS

If you must connect to your JIRA instance through HTTPS, and if a certificate is required for this connection, then you must import the certificate into the CA store of the JRE that runs SonarQube.

...

  • Q: I have configured my JIRA instance so that some fields are mandatory. Because SonarQube does not populate these fields then , issue creation fails. How can I make it work?
  • A: The sonar.jira.issue.component.id property can be defined at project level. For other fields the suggested workaround is to create a new issue type in JIRA (for exemple example "Quality issue") and set the sonar.jira.issue.type.id property accordingly.

...

JIRA Issues
anonymoustrue
titleVersion 1.2
height70
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=19036&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleVersion 1.1
height70
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=18612&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000

...