Details
-
Improvement
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
I tried multiple times to get a custom field to update while following the helper text:
"The name of the field. For custom fields this will have something like customField_12349"
However, it turns out (or it would seem), that you have to have the field name all lowercase... (that is the only way I got it to work)... If I capitalized the "F" in Field, I'd get an error:
Filed 'customField_XXXXX' does not exist or read-only
As soon as I lowercased it all, it worked. The instructions should either specify this, OR, if it is true that the Jira REST API is always lowercase, then the value passed by the user should be lowercased before sending it to Jira.
Code changed in jenkins
User: Dan Alvizu
Path:
src/main/java/org/jenkinsci/plugins/jiraext/Config.java
src/main/java/org/jenkinsci/plugins/jiraext/svc/JiraClientSvc.java
src/main/java/org/jenkinsci/plugins/jiraext/svc/impl/JiraClientSvcImpl.java
src/main/java/org/jenkinsci/plugins/jiraext/view/UpdateField.java
src/main/resources/org/jenkinsci/plugins/jiraext/view/UpdateField/config.jelly
src/main/resources/org/jenkinsci/plugins/jiraext/view/UpdateField/help-fieldName.html
src/main/resources/org/jenkinsci/plugins/jiraext/view/UpdateField/jiraFields.jelly
http://jenkins-ci.org/commit/jira-ext-plugin/0e6cb06679a651d78eb0aef4b48d30fee9321082
Log:
JENKINS-33055add feature to check field ids, update doc