IssueFieldUpdateStep wrong fieldValue type

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

            Assignee:
            Radek Antoniuk
            Reporter:
            Julio Woos
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: