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

Not able to add comment during jiraTransitionIssue

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: jira-steps-plugin
    • Labels:
      None
    • Environment:
      Jenkins version: CloudBees Jenkins Enterprise 2.138.4.3-rolling
    • Similar Issues:

      Description

      I have got following message while run jenkins pipeline to update Jira status

      jiraTransitionIssue idOrKey: 'Test-28', input: [
                  transition: [
                      id: '1291'
                  ], 
                  comment: [ body: 'test comment' ]
              ]
      

       

      Error Code: 400
      Error Message: {"errorMessages":[],"errors":{"comment":"Please provide a comment for this transition"}}
      [
      

        Attachments

          Activity

          Hide
          nrayapati Naresh Rayapati added a comment -

          The error message is from JIRA itself, based on the JIRA version you need to make sure that the input is changed so that it works correct, there is nothing we can do in this plugin to fix this.

          Show
          nrayapati Naresh Rayapati added a comment - The error message is from JIRA itself, based on the JIRA version you need to make sure that the input is changed so that it works correct, there is nothing we can do in this plugin to fix this.
          Hide
          nrayapati Naresh Rayapati added a comment -

          Per the latest API docs the structure is bit different from what you are trying to send here.

          https://docs.atlassian.com/software/jira/docs/api/REST/8.2.2/#api/2/issue-doTransition

          Show
          nrayapati Naresh Rayapati added a comment - Per the latest API docs the structure is bit different from what you are trying to send here. https://docs.atlassian.com/software/jira/docs/api/REST/8.2.2/#api/2/issue-doTransition
          Hide
          yhjhoo Yang Huajie added a comment -

          Yes, you are right. I switched to use jira API directly to make it work. Any chance to make the plugin to support the latest API?

          Show
          yhjhoo Yang Huajie added a comment - Yes, you are right. I switched to use jira API directly to make it work. Any chance to make the plugin to support the latest API?

            People

            • Assignee:
              nrayapati Naresh Rayapati
              Reporter:
              yhjhoo Yang Huajie
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: