Query Results Table for Confluence — documentation

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.

Install

  1. A Confluence Cloud administrator opens Apps > Explore more apps, searches for Query Results Table and selects Get it now.
  2. The app asks for two permissions: searching Confluence content (search:confluence) and reading content summaries (read:confluence-content.summary). It has no access to anything outside your Confluence site.

Add the macro to a page

  1. Edit a page, type /Query Results Table and press Enter.
  2. The settings dialog opens: write your CQL query, choose the columns, then select Save.
  3. Publish the page. Every reader sees the results they are allowed to see.

To change the settings later, edit the page, select the macro and open its settings.

Settings

SettingValues
CQL queryAny Confluence Query Language query, up to 2,000 characters
ColumnsTitle, Space, Type, Created by, Last modified, Labels (Title, Space and Last modified by default)
Maximum number of results25, 50, 100, 200 or 500 (50 by default): the table shows up to 500 results
Rows per page10, 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.

CQL examples

See Atlassian's reference for the full CQL syntax: fields, operators and functions.

Reading the table

The interface is in English or French, following each reader's Confluence language.

Export to CSV

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.

Permissions and data

See the privacy policy and the security policy.

License

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.

Troubleshooting

MessageCause 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.