Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-85513

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

XMLWordPrintable

      Issue Summary

      Disabled values of custom field options can still be updated via PUT Edit issue REST API request.

      Steps to Reproduce

      1. Create a select list custom field.
      2. Add multiple options.
      3. Disable one option and ensure that it is not displayed on the screens.
      4. Run the following REST request
        curl -D- -X PUT \
        --url 'https://<YourInstance>.atlassian.net/rest/api/3/issue/<Issue Key>' \
        --user 'email:token' \
        --header 'Accept: application/json' \
        --header 'Content-Type: application/json' \
        --data '{"fields": {"customfield_<ID>": {"id": "<Disabled Option ID>"}}}'
        

      Expected Results

      Only non-disabled entries should be updated.

      Actual Results

      All the custom field values can be updated. Including the disabled ones.

      Workaround

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

        1. screenshot-2.png
          screenshot-2.png
          44 kB
        2. screenshot-1.png
          screenshot-1.png
          26 kB
        3. image-2025-01-27-11-44-28-048.png
          image-2025-01-27-11-44-28-048.png
          122 kB

              Unassigned Unassigned
              esantos@atlassian.com Eduardo Santos (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: