Page tree
Skip to end of metadata
Go to start of metadata

The main goal of the plugin is to integrate JIRA with your SonarQube instance and code quality metrics.

This is very important because not all the people access SonarQube to review their code quality data. With this plugin, we are providing all the information in JIRA, so that the users don't need to change their context to SonarQube.

Features at project level

You can browse your project code quality at anytime by using the project tab panel in your project sidebar. You will access the full SonarQube dashboard with all your summary and details:

Project Portfolio

Since 1.4 version you can link multiple projects to your Jira project in SonarQube Connector settings.

You just have to provide a comma separated list of project keys instead of only one. Note that if the list if too big then the page will take long to display.

This is very useful if your Jira project manages several software components and you want to have all of them in your SonarQube tab panel.

SonarQube Connector for Jira will aggregate all the metrics into a single view.

This new view provides:

  • A header section with all the collected metrics and global ratings. This includes the project distribution for each rating (size, reliability, security and maintainability) and the aggregated measures. 
  • A project portfolio section with the information for each project, including last analysis date and quality gate.

How do we compute the global ratings?

If you configure multiple projects then you will get a global rating for the main quality metrics: size, reliability, security and maintainability:

  • Size rating: this is the sum of all lines of code of all the projects. The rating is computed exactly the same as a individual project. See Size Rating for more information.
  • Reliability, Security and Maintainability rating: these ratings are computed by giving values from 1 to 5 to each project depending on the rating (A=1 ... E=5). Then we sum all the values and compute the average number. This number is rounded to the nearest value from 1 to 5. This value will be the global rating for your projects. 




SonarQube Issues Breakdown


Since 1.5 version you are able to see SonarQube issues directly in your project tab panel.

A new section has been added to your panel so that you can see all issues of the SonarQube resources linked through the connector.

Issues will be summarized if you have more than one resource key in your settings.

This way, as a manager, you can review your top issues inside your Jira project. All the information in the same place.

If you need issue details, we have provided a link to your SonarQube/SonarCloud instance.


Create Jira Issues from SonarQube Issues

Since 1.7.1 version you can create SonarQube issues in Jira.

A button has been added in the row of the SonarQube rule to create them.

Issue will be created as follows:

  • Summary: Name of the SonarQube rule.
  • Description: A link to SonarQube issues. (If you have more than one project, a link is created only to projects that have issues)

If the SonarQube rules already have an associated issue, you will get a warning saying the issue cannot be created because it already exists.

If a new SonarQube analyis is launched and some issues have already been resolved and new ones have appeared, pressing the button will only create a new issues with the new ones.

When issue is created, a Jira issue link appears in the same row of SonarQube rule. If issue has been deleted or resolved, nothing appears.

Note

Since 2.3 the creation of issues with required fields is supported.

In case the configured issue type has required fields, the create issue dialog will be opened to fill the required fields.

Custom Metrics

Since 1.8 version you can add a list of custom metric keys to display in the dashboard, you can specify 1 or a list of metric keys separated by commas. For example: blocker_violations, major_violations, classes. 

=================================

Single project 

=================================

=================================

Multi project

=================================

  • No labels