Allow contains operator ~ for space and space.key fields in the Search REST API to allow partial match

XMLWordPrintable

      Summary

      Allow partial match when searching for spaces using space or space.key fields

      Otherwise, we need to fetch all spaces from the paginated REST API and filter them in the frontend code.

      Expected Results

      E.g. a request with a query of "ex" would return a list of spaces like

      ...
      {"key": "external", "name": "external content"}, 
      {"key":"example", "name":"example space"}, 
      {"key":"xyz", "name":"extra space"}
      ...
      

      Note

      Although using contains operator with the space field is not supported based on the documentation, for some instances it does work.

      /wiki/rest/api/search?cql=space ~ "ex*" AND type = space
      

            Assignee:
            Unassigned
            Reporter:
            Jon Bevan [Adaptavist]
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: