Uploaded image for project: 'Atlassian Intelligence'
  1. Atlassian Intelligence
  2. AI-680

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

    • 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.

      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
      

          Form Name

            [AI-680] Allow contains operator ~ for space and space.key fields in the Search REST API to allow partial match

            No work has yet been logged on this issue.

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

                Created:
                Updated:
                Resolved: