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
- links to
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?