Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9549

JIRA plugin does not create links to JIRA repository

    XMLWordPrintable

Details

    Description

      When looking at the change log the issue ID does not get linked to JIRA ticket. I've attached our configuration and sample change screen. This does not work in the latest version and has not worked in the previous versions.

      Attachments

        Issue Links

          Activity

            I'm getting the same problem, and my configuration only differs in not checking the "Supports Wiki notation" and "Update JIRA..." boxes and not using a custom issue pattern.

            Looking at the logs, the plugin is finding my issue id (i.e. 'SYS-41'). But the next step appears to be that it tries to use the JIRA SOAP api to determine if it's a valid project (i.e. 'SYS'). This is contrary to the documentation which says "JIRA also needs to be configured for Jenkins to remotely login. Go to the general configuration screen and enable remote API calls. Again, this is only needed if you use the abovementioned optional feature [update JIRA issues with a back pointer to Jenkins build pages], and if you forget to do so, Jenkins will nicely warn you."

            So either the documentation needs to be changed, or the logic needs to not insist on verifying the issue as real when the API is not available.

            afoglia Anthony Foglia added a comment - I'm getting the same problem, and my configuration only differs in not checking the "Supports Wiki notation" and "Update JIRA..." boxes and not using a custom issue pattern. Looking at the logs, the plugin is finding my issue id (i.e. 'SYS-41'). But the next step appears to be that it tries to use the JIRA SOAP api to determine if it's a valid project (i.e. 'SYS'). This is contrary to the documentation which says "JIRA also needs to be configured for Jenkins to remotely login. Go to the general configuration screen and enable remote API calls. Again, this is only needed if you use the abovementioned optional feature [update JIRA issues with a back pointer to Jenkins build pages] , and if you forget to do so, Jenkins will nicely warn you." So either the documentation needs to be changed, or the logic needs to not insist on verifying the issue as real when the API is not available.

            I can confirm the problem with Jenkins 1.446 and plugin 1.29.

            yozh Artem Karpenko added a comment - I can confirm the problem with Jenkins 1.446 and plugin 1.29.
            domruf Dominik Ruf added a comment - I have a quick fix for this https://github.com/jenkinsci/jira-plugin/pull/15

            As Dominik's PR showed some merging problem, I took the liberty to create another one that is green.
            Please merge.

            warden Radek Antoniuk added a comment - As Dominik's PR showed some merging problem, I took the liberty to create another one that is green. Please merge.

            Code changed in jenkins
            User: Radosław Antoniuk
            Path:
            src/main/java/hudson/plugins/jira/JiraChangeLogAnnotator.java
            http://jenkins-ci.org/commit/jira-plugin/9742558342acea2bdc677742f021b7190d2a23e7
            Log:
            Merge pull request #55 from QUIDDIA/master

            JENKINS-9549 - Fix linking JIRA issues in case the credentials were not passed

            Compare: https://github.com/jenkinsci/jira-plugin/compare/ba862ed7a029...9742558342ac

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Radosław Antoniuk Path: src/main/java/hudson/plugins/jira/JiraChangeLogAnnotator.java http://jenkins-ci.org/commit/jira-plugin/9742558342acea2bdc677742f021b7190d2a23e7 Log: Merge pull request #55 from QUIDDIA/master JENKINS-9549 - Fix linking JIRA issues in case the credentials were not passed Compare: https://github.com/jenkinsci/jira-plugin/compare/ba862ed7a029...9742558342ac

            People

              warden Radek Antoniuk
              stankovski Denis Stankovski
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: