The endpoint "Get fields /rest/api/3/field" will return "searchable" as "true" even when you choose "None" for the "Search Template".

XMLWordPrintable

    • 1
    • Minor

      Issue Summary

      The endpoint Get fields will return searchable as true even when you choose None for the Search Template.

      Steps to Reproduce

      1. Create a custom field (i.e Select List (single choice))
      2. Click on Edit field
      3. Select None for the Search Template
      4. Call the REST API endpoint Get fields.

      Expected Results

      The searchable property to be false.

      Actual Results

      The searchable property returned as true.

      {
              "id": "customfield_10069",
              "key": "customfield_10069",
              "name": "Add epic",
              "untranslatedName": "Add epic",
              "custom": true,
              "orderable": true,
              "navigable": true,
              "searchable": true,
              "clauseNames": [
                  "Add epic",
                  "Add epic[Dropdown]",
                  "cf[10069]"
              ],
              "schema": {
                  "type": "option",
                  "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
                  "customId": 10069
              }
          }
      

      Workaround

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

            Assignee:
            Unassigned
            Reporter:
            Ramchandra Kudtarkar
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: