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

Implement Safety Measures for Custom Field's Option Deletion via REST API

    XMLWordPrintable

Details

    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Issue Summary

      Currently, if you try to delete a Custom Field option via the Jira Users Interface and the option is being used in an issue then you will see the following message:

      But if you try to delete the same Option using REST API call Delete custom field options it goes through without any verification.

      Steps to Reproduce

      1. Create a custom field with Options, for any of:
        • Checkboxes.
        • Radio Buttons.
        • Select List (single choice).
        • Select List (multiple choices).
        • Select List (cascading).
      2. Assign the field to a screen.
      3. Select a value in an issue.
      4. Delete the Custom field option via REST API: Delete custom field options

      Expected Results

      Just like the Jira UI, to respond with an error stating that the option is being used by issues.

      Actual Results

      The REST API successfully deletes the option without any verification.

      Workaround

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            4c399280d82e Gerson Gutierrez
            Votes:
            7 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: