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

IssueFieldUpdateStep wrong fieldValue type

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: jira-plugin
    • Labels:
      None
    • 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

          Issue Links

            Activity

            jcwoos Julio Woos created issue -
            jcwoos Julio Woos made changes -
            Field Original Value New Value
            Assignee Naresh Rayapati [ nrayapati ] Radek Antoniuk [ warden ]
            jcwoos Julio Woos made changes -
            Component/s jira-plugin [ 15515 ]
            Component/s jira-steps-plugin [ 21974 ]
            warden Radek Antoniuk made changes -
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            Resolution Cannot Reproduce [ 5 ]
            warden Radek Antoniuk made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]
            warden Radek Antoniuk made changes -
            Resolution Cannot Reproduce [ 5 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            warden Radek Antoniuk made changes -
            Remote Link This issue links to "PR-200 (Web Link)" [ 25225 ]

              People

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

                Dates

                • Created:
                  Updated: