Skip to content

Flowplan is now available hostedServers in Germany, backups and updates included – nothing for you to look after. Self-hosting stays free and complete.

See plans
flowplanDocumentationCommunityMarketplaceStart page

Collaboration and search

Query block

A query block shows inside a document what a collection or a filter finds right now – or your open tasks – and keeps it up to date.

3 min read

On this page
  1. Inserting a query
  2. Task query
  3. Who sees what
  4. Export and printing

Inserting a query Since 0.13.0

Type /query and choose Query. The block opens its settings right away (later with ⚙ at the top right of the block):

  • Source: a collection you can see, or filters – the same conditions as when you create a collection: tags, properties, created or last edited by, created or updated on, type, space, title and text, combined with AND, OR and NOT. Edit as text shows the query in the search language, e.g. #project -#done updated:-7d.
  • Display: List, Table (title and the chosen columns) or Cards. As columns or details you can pick type, space, tags, updated, created, created by and the page properties; under Property of a record … you enter the name of a database property.
  • Sort by updated, created, title or a chosen property, ascending or descending.
  • Group by tag, space, type, month updated or created, or a chosen property.
  • Show: 10, 25 or 50 matches; Show more loads further ones (up to 200).
  • Heading: shown above the matches; without one, the collection's name.

A click on a match opens the page or record. Archived pages and the trash stay out.

Task query Since 0.13.0

/task query inserts a query for tasks – from tasks in documents and from task databases, as My tasks shows them. You can filter by

  • Status: open, done or all;
  • Due: overdue, by today, this week (7 days), with or without a date, or a date range;
  • Assigned to: me, a person, nobody or anyone;
  • Tag of the page the task is on (for records: of the database);
  • Where: the whole workspace, this page and its sub-pages, a space or below a page;
  • Priority: high, medium or low – only records of a database with a “Priority” property;
  • From: documents, databases or both.

Tasks are sorted by due date (overdue first) or by page, and grouped by due date, page, space or person. Ticking a task off in the block ticks it off where it is – in the document or the record; open tasks then leave the block. Tasks you may not edit show without a checkbox you can change.

Who sees what

The server works out the matches for each person reading the page – with their own permissions. Two people can see different things in the same block: only pages and spaces they may read, no private records of others, no hidden properties, no journals behind a PIN. End-to-end encrypted spaces are not searched. A private collection shows only for its owner; everyone else reads “The collection no longer exists or is not shared with you.” – use a shared collection or filters.

The block updates by itself as soon as pages or tasks change in the workspace, and with ↻ by hand. The document holds only the query, never its results; it is purely declarative, without code.

Note

Published pages and share links show nothing in place of a query block – so nothing only members may read gets out.

Export and printing

Markdown, Word, PDF, e-book, Jira and Confluence contain the results at the time of the export as a fixed list or table (tasks as a task list) – as you may read them. Printing shows what the block shows at that moment. Backups and Git exports keep a note “Query (only in Flowplan)” instead of the results.

Note

Through the API, GET /api/query-block?page=<page>&config=<settings> returns a block's matches for the person asking; GET /api/query-block/options the collections, spaces, tags and people for the settings.

Was this helpful?
YesThanks!
No – tell us what's missing

Found a mistake or something missing?Edit on GitHub