• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • jira-plugin
    • None

      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"] ]);
      

          [JENKINS-60113] IssueFieldUpdateStep wrong fieldValue type

          Julio Woos added a comment -

          Hello warden, 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?

           

           

          Julio Woos added a comment - Hello warden , 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?    

          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'

          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'

          Pending PR review

          Radek Antoniuk added a comment - Pending PR review

            warden Radek Antoniuk
            jcwoos Julio Woos
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: