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

Misleading helper text on "Update a Field"

    XMLWordPrintable

    Details

    • Similar Issues:

      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.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          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-33055 add feature to check field ids, update doc

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - 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-33055 add feature to check field ids, update doc
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          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/e064df9139e81ab544712a7609ae4a0e6506d45c
          Log:
          [FIXED JENKINS-33055] add feature to check field ids, update doc

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - 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/e064df9139e81ab544712a7609ae4a0e6506d45c Log: [FIXED JENKINS-33055] add feature to check field ids, update doc
          Hide
          dalvizu Dan Alvizu added a comment -

          I added a button to pull field IDs from JIRA into master branch - let me know if that works for you. Updated doc as suggested. It does look like all of the fields I see are lowercase, I'm not sure if there are exceptions to that rule though.

          Show
          dalvizu Dan Alvizu added a comment - I added a button to pull field IDs from JIRA into master branch - let me know if that works for you. Updated doc as suggested. It does look like all of the fields I see are lowercase, I'm not sure if there are exceptions to that rule though.
          Hide
          dalvizu Dan Alvizu added a comment -

          Fixed in 0.4

          Show
          dalvizu Dan Alvizu added a comment - Fixed in 0.4

            People

            • Assignee:
              dalvizu Dan Alvizu
              Reporter:
              billapepper Nikk Folts
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: