Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-78262

Able to update disabled custom field values using the PUT method via the REST API.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 9.12.8
    • REST API

      Issue Summary

      The values of custom fields that were disabled can be updated via REST requests.

      • Select List (multiple choices)

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Configure a custom field with select list multiple choice
      2. Add multiple options
      3. Disable one option and ensure that it is not displayed on the screens.
      4. Run the following REST request
        PUT: https://<<DC-URL>>/rest/api/2/issue/<<ISSUE-KEY>>
        
        {
          "fields": {
            "summary": "This is the summary of the issue",
            "description": "And this is the description",
            "customfield_11100": [{  "value": "testdd4"}]
          }
        }
        

        "testdd4" is the disabled value
        "customfield_11100" is the custom field 

      Expected Results

      Only non-disabled entries should be updated.

      Actual Results

      All the custom field values can be updated

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              64bb5fbf78a2 Manojkumar Ramadoss
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: