SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-2008

Allow to configure mapping between Sonar violation severity and Jira issue priority

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JIRA-1.0
    • Fix Version/s: JIRA-1.1
    • Component/s: Jira
    • Labels:
      None
    • Environment:
      Sonar v.3.1 + JIRA Plugin 1.0 + JIRA v5.0.5
    • Number of attachments :
      2

      Description

      When trying to link a violation with the priority major from a sonar project to a jira ticket the following message is shown: "Impossible to create the issue on the JIRA server".
      The log file on the sonar server contains a "java.lang.IllegalStateException: Impossible to create the issue on the JIRA server" (see attachement for complete stack trace).

      We have customized our available priorities (Minor, Normal, Critical, Blocker) on the jira server.
      So the assumption is that the plugin tries to create a ticket with an invalid priority.

      A possibilty to customize the priority mapping of the plugin would be great.

      1. sonar.log
        40 kB
        Alexander Goehring
      2. stacktrace.log
        41 kB
        Bryan Stephens

        Activity

        Hide
        Bryan Stephens added a comment - - edited

        Also having this problem. We have customized priorities on the jira server as well. Also attached stack trace.

        Sonar v3.1.1
        JIRA v5.0.4
        JIRA Plugin 1.0

        Show
        Bryan Stephens added a comment - - edited Also having this problem. We have customized priorities on the jira server as well. Also attached stack trace. Sonar v3.1.1 JIRA v5.0.4 JIRA Plugin 1.0
        Hide
        Julien HENRY added a comment -

        Fixed by allowing users to configure mapping between Sonar severity and JIRA priority. Note that we are expecting id of JIRA priority.

        Show
        Julien HENRY added a comment - Fixed by allowing users to configure mapping between Sonar severity and JIRA priority. Note that we are expecting id of JIRA priority.
        Hide
        Fabrice Bellingard added a comment -

        Successfully tested with a JIRA 5.x series instance.

        Show
        Fabrice Bellingard added a comment - Successfully tested with a JIRA 5.x series instance.

          People

          • Assignee:
            Julien HENRY
            Reporter:
            Alexander Goehring
          • Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: