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

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 0

      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. image-2025-01-27-11-44-28-048.png
          image-2025-01-27-11-44-28-048.png
          122 kB
        2. screenshot-1.png
          screenshot-1.png
          26 kB
        3. screenshot-2.png
          screenshot-2.png
          44 kB

            Assignee:
            Unassigned
            Reporter:
            Eduardo Santos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: