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

Fix jiraTransitionIssue code samples in documentation

    Details

    • Similar Issues:

      Description

      The [Releasing a project?|https://jenkinsci.github.io/jira-steps-plugin/getting-started/examples/release_project/] and [the project homepage|https://jenkinsci.github.io/jira-steps-plugin/] code examples contains the following lines:

      def transitionInput = [transition: [name: 'Close']]
      jiraTransitionIssue idOrKey: issueKey, input: transitionInput
      def transitionInput = [ transition: [ name: 'Close'] ]
      jiraTransitionIssue idOrKey: 'RELEASE-999', input: transitionInput, site: 'YOURJIRASITE'

      However, this is not valid for the Jira API endpoint: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issue-issueIdOrKey-transitions-post. The IssueTransition parameter only takes the ID of the issue transition. The documentation needs to be corrected so the function call works.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              nrayapati Naresh Rayapati
              Reporter:
              arjungopisetty Arjun Gopisetty
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: