Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Atlassian Atlassian’s general search can be flaky challenging at times when you are looking for Macros. You can use the API search for better accuracy; however. However, it has a limit of 250 results, and the results which are not as easily read.

To use the REST API search function, you will need to add the Add the below search after your instance URL to use the REST API search function.

Below are two sets of queries; the first set searches for the MultiExcerpt, and the second searches for the MultiExcerpt Include.

  • The first line of each set will give you all pages

...

  • with the macro on it up to the 1st 25 uses. The second line will raise the limit to 250. 

  • The limit is Atlassian's, and you can type a larger number in the line; however, you will still not get more than 250 results because Atlassian's search REST API pagination is broken.

Code Block
/wiki/rest/api/content/search?cql=macro=%27multiexcerpt-macro%27 
/wiki/rest/api/content/search?cql=macro=%27multiexcerpt-macro%27&limit=250


/wiki/rest/api/content/search?cql=macro=%27multiexcerpt-include-macro%27 
/wiki/rest/api/content/search?cql=macro=%27multiexcerpt-include-macro%27&limit=250

Atlassian's

...

documentation on using the API search indicates that if you have

...

more than 250 words, you can add

...

more language to start over after the 1st 250 results, but in practice, we have not found that to work.

...

It will not paginate the result correctly. If you have more than 250 results, we recommend you review the documents and open a ticket with Atlassian for further assistance. 

Below is some documentation on

...

Atlassian's process

...

.

Advanced searching using CQL

The Confluence Cloud REST API


Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1422e
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "multiexcerpt-cloud" and type = "page" and space = "ME"
labelsmultiexcerpt-cloud
Page Properties
hiddentrue


Related issues