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

Calling pipeline steps functions gives error that not logged in -- though successfully authenticated in plugin configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • jira-steps-plugin
    • None

      For example, trying to run the code (I changed the issue key)

      def issue = jiraGetIssue site: "JIRA", idOrKey: 'PROJ-12345'
      echo issue.data.toString()

      gives the error message:
      ERROR: {"errorMessages":["You do not have the permission to see the specified issue.","Login Required"],"errors":{}}
      but on the plugin configuration page, a user (that has correct permissions in JIRA) is set up with correct username and password – testing connection shows success. 

        1. Empty UserName Password.png
          Empty UserName Password.png
          545 kB
        2. getIssue script.png
          getIssue script.png
          11 kB
        3. getProjects() success.png
          getProjects() success.png
          36 kB
        4. getProjects script.png
          getProjects script.png
          10 kB
        5. Issue.png
          Issue.png
          13 kB
        6. Jenkins - Config.png
          Jenkins - Config.png
          89 kB
        7. Jenkins- Config.png
          Jenkins- Config.png
          40 kB
        8. Jenkins - Job.png
          Jenkins - Job.png
          129 kB
        9. Jenkins - Plugin Version.png
          Jenkins - Plugin Version.png
          27 kB
        10. Jenkins version.png
          Jenkins version.png
          18 kB
        11. JIRA Home Page.png
          JIRA Home Page.png
          455 kB
        12. JIRA - Issue.png
          JIRA - Issue.png
          387 kB
        13. JIRA - version.png
          JIRA - version.png
          23 kB
        14. Login Error (getIssue).png
          Login Error (getIssue).png
          81 kB

            nrayapati Naresh Rayapati
            jdudatt Justin Duda
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: