[JIRA] (JENKINS-60113) IssueFieldUpdateStep wrong fieldValue type

0 views
Skip to first unread message

jcwoos@gmail.com (JIRA)

unread,
Nov 8, 2019, 1:34:03 PM11/8/19
to jenkinsc...@googlegroups.com
Julio Woos created an issue
 
Jenkins / Bug JENKINS-60113
IssueFieldUpdateStep wrong fieldValue type
Issue Type: Bug Bug
Assignee: Naresh Rayapati
Components: jira-steps-plugin
Created: 2019-11-08 18:33
Priority: Minor Minor
Reporter: Julio Woos

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"] ]);
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jcwoos@gmail.com (JIRA)

unread,
Nov 13, 2019, 11:44:04 AM11/13/19
to jenkinsc...@googlegroups.com
Julio Woos assigned an issue to Radek Antoniuk
Change By: Julio Woos
Assignee: Naresh Rayapati Radek Antoniuk

jcwoos@gmail.com (JIRA)

unread,
Nov 13, 2019, 11:56:03 AM11/13/19
to jenkinsc...@googlegroups.com
Julio Woos commented on Bug JENKINS-60113
 
Re: IssueFieldUpdateStep wrong fieldValue type

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?

 

 

jcwoos@gmail.com (JIRA)

unread,
Nov 13, 2019, 1:46:52 PM11/13/19
to jenkinsc...@googlegroups.com
Julio Woos updated an issue
Change By: Julio Woos
Component/s: jira-plugin
Component/s: jira-steps-plugin

jcwoos@gmail.com (JIRA)

unread,
Nov 14, 2019, 6:14:02 AM11/14/19
to jenkinsc...@googlegroups.com

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

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

jcwoos@gmail.com (JIRA)

unread,
Nov 14, 2019, 6:26:13 AM11/14/19
to jenkinsc...@googlegroups.com
Julio Woos edited a comment on Bug JENKINS-60113
After removing the work folder and target folders and restarted the plugin, the Jira Site configuration appears.


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

radek.antoniuk@quiddia.com (JIRA)

unread,
Mar 27, 2020, 1:40:02 PM3/27/20
to jenkinsc...@googlegroups.com
Change By: Radek Antoniuk
Status: Fixed but Unreleased Closed
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

radek.antoniuk@quiddia.com (JIRA)

unread,
Mar 27, 2020, 1:40:03 PM3/27/20
to jenkinsc...@googlegroups.com
Change By: Radek Antoniuk
Status: Open Fixed but Unreleased
Resolution: Cannot Reproduce
Reply all
Reply to author
Forward
0 new messages