Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-21108

REST API for searching pages by labels does not return any results

      There is currently a parameter in the API that allows you to filter search results by label (see http://docs.atlassian.com/atlassian-confluence/REST/latest/#id288504) but queries that use it return an empty results list.

      eg:

      /rest/prototype/1/search/site?spaceKey=TST&type=page&label=testing
      

      will return nothing.

      Workaround for Confluence 3.5:

      User a query parameter with 'labelText' to define the label:

      /rest/prototype/1/search/site?spaceKey=TST&type=page&query=labelText:testing
      

      This workaround no longer works in Confluence 4.0+

            [CONFSERVER-21108] REST API for searching pages by labels does not return any results

              cpetchell Petch (Inactive)
              5bddf9d55ec5 Alfonse Pinto
              Affected customers:
              6 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: