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

Trying to search with a custom field without any search template shows misleading error message.

XMLWordPrintable

      Issue Summary

      When searching with a custom field that doesn't have a search template (search template is set to none) with JQL, we get the following error message.

      Field '<customfield_name>' is not searchable, it is only sortable.
      

      This error message is misleading as it suggests that the custom field is sortable. However, a custom field that is lacking a search handler, is neither searchable nor sortable.

      So, trying to sort by the custom field also throws an error.

      An unknown error occurred while trying to perform a search.
      

      Steps to Reproduce

      1. Create a custom field [ Gear > Issues > Custom Fields ]
      2. Click the ellipsis button (...) on the newly create custom field and click "Edit Details"
      3. Select "None" in Search Template.
      4. Try searching using the custom field. Example JQL <Custom_field Name> IS NOT EMPTY
      5. Also try sorting by the custom field.
        1. using JQL. example: ORDER BY <Custom_field name>
          Field '<customfield_name>' is not searchable, it is only sortable.
          
        2. Or, add the custom field as a column in issue search, then click the column header
          An unknown error occurred while trying to perform a search.
          

      Expected Results

      Since a custom field that is lacking a search handler, is neither searchable nor sortable, the error message should clarify that.

      Actual Results

      Field '<customfield_name>' is not searchable, it is only sortable.
      

      The error message suggests that the custom field is sortable.

      Workaround

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

        1. 2023-05-19_09-47-27.png
          2023-05-19_09-47-27.png
          124 kB
        2. 2023-05-19_10-07-28.png
          2023-05-19_10-07-28.png
          39 kB
        3. 2023-05-19_10-20-27.png
          2023-05-19_10-20-27.png
          37 kB

              Unassigned Unassigned
              2ed764d1efd7 Nashid Farhad
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: