Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-20921

REST API values should be case-insensitive to match other Jira functionality

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • REST API
    • None
    • 1
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Problem

      • When making an API call using a 'value' for a custom field, that value is handled with case-sensitive matching
        • 'abc123' != 'ABC123'
      • In Jira, custom field single- and multi-select values are handled with case-insensitive matching.
        • 'abc123' = 'ABC123'

      Thus, an API call using 

      "customfield_10101":{"value":"abc123"}

       will fail (400 error) and unhelpfully return 

      {"errorMessages":[],"errors":{"customfield_10101":"Option id 'null' is not valid"}}%

      (unhelpful because value is being used here, not id, and the problem is the value match/case sensitivity, not the lack of id)

       Suggested Solution

      The desired behavior would be for API calls to handle case the same way Jira does; case-insensitively match ABC123 to abc123.

      Why This Is Important

      • While the solution is to simply write API calls to use the exact desired value, the current behavior is still inconsistent, and this inconsistency prevents certain workarounds (see below Workaround section)
      • Users coming from other platforms expect this case-insensitive behavior

      Workaround

      The main reason this is important is because there isn't really a workaround. 

      If you want to add abc123 & ABC123 both as options in the select list, which would be a workaround for the API call sensitivity in some cases, you will be prevented from 'creating a duplicate.' 

      The only solution is to be aware of the inconsistent case-sensitivity and to use exactly the matching value.

            [JSWSERVER-20921] REST API values should be case-insensitive to match other Jira functionality

            SET Analytics Bot made changes -
            Support reference count New: 1
            Daniel C Berlin (Inactive) created issue -

              Unassigned Unassigned
              2465d1b7d8cb Daniel C Berlin (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: