Query Results Table shows the Confluence content that matches a CQL query as a table on any page: readers sort it, browse it page by page and export it to CSV. The search always runs with the permissions of the person reading the page.
search:confluence) and reading content summaries (read:confluence-content.summary). It has no access to anything outside your Confluence site./Query Results Table and press Enter.To change the settings later, edit the page, select the macro and open its settings.
| Setting | Values |
|---|---|
| CQL query | Any Confluence Query Language query, up to 2,000 characters |
| Columns | Title, Space, Type, Created by, Last modified, Labels (Title, Space and Last modified by default) |
| Maximum number of results | 25, 50, 100, 200 or 500 (50 by default): the table shows up to 500 results |
| Rows per page | 10, 25, 50, 100 (25 by default) |
The settings dialog checks the query before saving it: an unclosed quote, unbalanced parentheses or a query that is too long are reported right away. Confluence itself checks the rest of the syntax when the page is displayed.
type = page AND space = "DOC" ORDER BY lastmodified DESCtype = page AND label = "meeting-notes" ORDER BY created DESCtype = blogpost AND created >= now("-30d")creator = currentUser() AND type = pagetype = page AND title ~ "release"See Atlassian's reference for the full CQL syntax: fields, operators and functions.
The interface is in English or French, following each reader's Confluence language.
Export CSV downloads query-results.csv with the selected columns for every result, up to the maximum number of results, not only the visible page. The file is encoded in UTF-8 with a byte order mark so that spreadsheet programs read accents correctly; columns are separated by commas, or by semicolons when the interface is in French. A cell that starts like a spreadsheet formula (=, +, -, @) is prefixed with an apostrophe so that it never runs as a formula.
See the privacy policy and the security policy.
Query Results Table is a paid app with a free trial, both managed by the Atlassian Marketplace. When the license of your site is not active (trial ended without a subscription, or subscription cancelled), the macro stops searching and shows this message instead of the table: "The license of this app is inactive: contact your Confluence administrator." Nothing is lost: the macro and its settings are kept in your pages by Confluence, and the table comes back as soon as an administrator renews the subscription in Apps > Manage apps.
| Message | Cause and solution |
|---|---|
| Enter a CQL query in the macro settings. | The macro has no query yet: edit the page and open the macro settings. |
| The query has an unclosed quote. | Close every " in the query. |
| The query has unbalanced parentheses. | Check that every ( has its ). |
| The query is too long (2,000 characters at most). | Shorten the query, for instance by using labels. |
| Confluence rejected the query: | Confluence's own message follows: fix the field, operator or value it names. |
| You are not allowed to run this search. | Your account cannot search this site: ask your Confluence administrator. |
| Too many requests: try again in a minute. | Confluence limits the number of searches per minute: reload the page later. |
| Confluence search is unavailable: try again later. | Confluence search did not answer: reload the page later. |
| The license of this app is inactive: contact your Confluence administrator. | The subscription has ended: an administrator can renew it in Apps > Manage apps. |
For any other question, see support.