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

    XMLWordPrintable

Details

    Description

      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+

      Attachments

        Issue Links

          Activity

            People

              cpetchell Petch (Inactive)
              5bddf9d55ec5 Alfonse Pinto
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: