onibaku.apps
Confluence Cloud app

CQL Search & Table Export for Confluence

Find exactly the content you need with Confluence Query Language, show live results on any page, and get results or page tables into a spreadsheet in one click.

CQL Search page

Run any CQL query across your site, or build one from simple filters. Sort, pick columns and save searches you use often.

CQL results macro

Embed a live list on any page: recent updates in this space, everything under a page, all pages with a label.

Export to Excel and CSV

Export every search result, or the tables on a page, with merged cells expanded and one sheet per table.

Getting started

Search

Open Apps → CQL Search in Confluence. Type a query and press Search (or Ctrl+Enter), or use Build with filters if you'd rather not write CQL. Click a column header to sort by it, and use Columns to choose what's shown.

Save search keeps the query and your chosen columns so you can run it again in one click. Saved searches are private to you.

Embed results on a page

While editing a page, type /CQL results and pick the macro. Enter a query, press Test query to check it, choose columns, and save. The list updates every time someone views the page. Two functions make macros reusable:

QueryShows
space = currentSpace() AND type = page ORDER BY lastmodified DESCRecently updated pages in the space the macro is in
ancestor = currentContent() ORDER BY titleEvery page below the current one
label = "meeting-notes" AND created >= now("-30d")Meeting notes from the last 30 days

Export

Export Excel and Export CSV on the search page (and optionally on the macro) download every matching result, up to 10,000, not just the rows on screen. Dates are exported as YYYY-MM-DD so spreadsheets can sort them, and a link to each item is always included.

To export the tables on a page, open the page's ••• menu and choose Export tables to Excel or CSV. Tick the tables you want and download them as one Excel workbook (a sheet per table) or a single CSV. Merged cells are filled in so every row lines up, and things like status lozenges come through as text.

CQL quick reference

You wantWrite
Pages in one spacespace = ENG AND type = page
Either of two labelslabel in ("q3", "okr")
Changed in the last 30 dayslastmodified >= now("-30d")
Untouched for a yearlastmodified < now("-52w")
Things you createdcreator = currentUser()
Titles starting with a wordtitle ~ "retro*"
Exact phrase in the texttext ~ "\"release plan\""
PDF attachmentstype = attachment AND title ~ "*.pdf"

Atlassian's full reference: Advanced searching using CQL.

Security and your data

Details are in our privacy policy.

Help

Found a bug, or want a feature? Email admin@onibaku.co.uk. See support for what to include.