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

IssueFieldUpdateStep wrong fieldValue type

    Details

    • Similar Issues:

      Description

      I'm trying to update a label field in Jira.

      When I use this step on the pipeline, I got the error 'RestClientException{statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors=

      {customfield_12606=data was not an array}

      , errorMessages=[]}]}'

      step([$class: 'hudson.plugins.jira.pipeline.IssueFieldUpdateStep',step([$class: 'hudson.plugins.jira.pipeline.IssueFieldUpdateStep',    issueSelector: [$class: 'hudson.plugins.jira.selector.DefaultIssueSelector'],    fieldId: '12606',    fieldValue:  "some-label" ]);
      

      But when I use this step, I got another error 'java.lang.ClassCastException: hudson.plugins.jira.pipeline.IssueFieldUpdateStep.fieldValue expects class java.lang.String but received class java.util.ArrayList'

      step([$class: 'hudson.plugins.jira.pipeline.IssueFieldUpdateStep',step([$class: 'hudson.plugins.jira.pipeline.IssueFieldUpdateStep',    issueSelector: [$class: 'hudson.plugins.jira.selector.DefaultIssueSelector'],    fieldId: '12606',    fieldValue:  ["some-label"] ]);
      

        Attachments

          Activity

          Hide
          jcwoos Julio Woos added a comment -

          Hello Radek Antoniuk , I'm trying to fix this error by my own, but when I run the [Jira-plugin|https://github.com/jenkinsci/jira-plugin] on my enviroment, the Jira Site configuration on Jenkins Configuration dosen't appear.

          I'm running this plugin with the 'mvn hpi:run' command.. can you give me some help with it?

           

           

          Show
          jcwoos Julio Woos added a comment - Hello Radek Antoniuk , I'm trying to fix this error by my own, but when I run the [Jira-plugin| https://github.com/jenkinsci/jira-plugin ] on my enviroment, the Jira Site configuration on Jenkins Configuration dosen't appear. I'm running this plugin with the 'mvn hpi:run' command.. can you give me some help with it?    
          Hide
          jcwoos Julio Woos added a comment - - edited

          After removing the work and target folders and restarted the plugin, the Jira Site configuration appears.

          Running with 'mvn hpi:run -Djenkins.version=2.204'

          Show
          jcwoos Julio Woos added a comment - - edited After removing the work and target folders and restarted the plugin, the Jira Site configuration appears. Running with 'mvn hpi:run -Djenkins.version=2.204'

            People

            • Assignee:
              warden Radek Antoniuk
              Reporter:
              jcwoos Julio Woos
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: