Versions Compared

Key

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

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

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

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

The first line of each set will give you all pages that have the macro on it up to the 1st 25 uses. The second line will raise the limit to 250. 

The limit is AtlassiansAtlassian's, and you can type a larger number in the line; however, you will still not get 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 beyond 250, you can add some more language to start over after the 1st 250 results, but in practice, we have not found that to work very well.  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 the process by Atlassian.

Advanced searching using CQL

The Confluence Cloud REST API

...

Info

We have a few new features that we'd love to have your vote or feedback on to make this process easier as we gather interest for their implementation. 

Jira
serverSystem JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverIdcdd2336e-5e38-30de-bda5-d0608228f2d3
keyMEPOD-57

Jira
serverSystem JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverIdcdd2336e-5e38-30de-bda5-d0608228f2d3
keyMEPOD-58

Jira
serverSystem JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverIdcdd2336e-5e38-30de-bda5-d0608228f2d3
keyMEPOD-9

How to Vote on Jira Issues

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 = "SUP"
labelsmultiexcerpt-cloud

...