Skip to content

This page is for integrators and developers who create or run saved queries through the API, call list routes with quick filters and parameters, or need the exact semantics behind a condition. It documents the operators by their engine names, the request parameters, the quick-filter-group and tag rules, and the error codes.

A saved query is also the unit a Grafana panel executes Since 1.6: the Apptomator data source runs saved data queries as row filters and saved statistic queries as aggregates, and any parameters a query declares become panel inputs that accept Grafana dashboard variables. See Grafana Dashboards.

Since 1.8, that integration is more reliable end to end. A quick filter built from a parameterized query now correctly substitutes its parameters when a panel applies it — previously the parameters were left unresolved and the filter matched nothing. Every request for a view’s entries, including a panel’s, is also capped by a server-enforced ceiling (10,000 entries by default) so a single request can never stream an unbounded collection; the Grafana data source already relies on this cap and always sends its own explicit row limit for exactly that reason. The same “never stream everything” principle also now bounds how many entity definitions an integration can retrieve at once through the API, paging results instead of returning every entity’s schema in one response.

Each condition is made of three parts: a field (an entity structure field, or an entry-metadata field such as Created by / Created at), an operator (the relationship between the two sides), and a value (the second side of the comparison). Conditions are grouped and joined with a logical relation — All conditions met (AND) or Any condition met (OR) — and groups can be nested to build compound logic.

Encrypted and sensitive fields in a condition Since 1.10

Section titled “Encrypted and sensitive fields in a condition Since 1.10”

Since 1.10 — two field flags decide differently whether a field may be named in a condition at all.

An encrypted field is refused outright, for everyone, before any permission is even consulted. This is not an access decision and no grant changes it: the value is stored as ciphertext, so a condition comparing against it could never match anything anyway. Naming an encrypted field in criteria fails the query rather than quietly returning nothing.

A sensitive field is now allowed to be named in the Administration query builder without a read grant for it — you can build and save a filter on a sensitive field you are not entitled to read. Two things do not change with it:

  • In the end-user area — a query or filter reached through a view — a matching grant is still required, exactly as before.
  • No value you can see changes. This governs only what a condition may reference. Masking, the unmask session, and every other sensitive-data rule are untouched: an administrator who can now filter on a sensitive field still sees that field masked in the results, unless they separately hold the read grant. See Sensitive Fields.

The operator expresses the relationship between the two sides of the condition. The available operators depend on the field type: equality operators apply to every type; text operators (contains, starts with, like, and their negations) apply to text fields; comparison operators (less/greater than, or equal) apply to dates and numbers; In / Not in apply to entity fields (reference, category, user); and Is empty / Is not empty apply to any field (see Empty and Filled require the field to exist). The Under operator matches entries that fall under a given ancestor in a tree (hierarchical) entity (Since 1.2), and Type matches by the stored value’s type.

The full operator reference — including which field types each operator applies to and the aggregate operators — is below:

The following condition operators are supported by the query engine:

OperatorMeaning
Equal / NotEqualField equals / does not equal a value.
LessThan / LessThanOrEqualNumeric or date comparison.
GreaterThan / GreaterThanOrEqualNumeric or date comparison.
In / NotInField is (is not) one of a list of values.
Contains / DoesNotContainText contains (does not contain) a substring — case-insensitive.
StartsWith / DoesNotStartWithText begins (does not begin) with a value — case-insensitive.
Like / IsNotLikePattern match on text — case-insensitive.
IsEmpty / IsNotEmptyField has no value — not present at all, null, or an empty list / field is present and has a value. Requiring the field to be present is Since 1.8.
ElemMatchMatches list fields where at least one element satisfies the nested conditions.
UnderHierarchy match — the record sits under (is a descendant of) the given record in a tree.
TypeMatches on the stored data type of the field.
And / OrCombine child conditions.

For fields that hold a list of values, a condition can additionally use a field operator that first reduces the list to a single value, then compares it:

Field operatorReduces the list to…
SizeThe number of elements.
SumThe sum of the elements.
AvgThe average of the elements.
Min / MaxThe smallest / largest element.
First / LastThe first / last element.
Any(Default) match if any element satisfies the condition.

Empty and Filled require the field to exist

Section titled “Empty and Filled require the field to exist”

Since 1.8 — Is empty (IsEmpty) and Is not empty (IsNotEmpty) no longer test only whether the stored value is null or an empty list. The predicate now also tests presence: Is not empty matches only when the field exists on the entry and holds a real value, while Is empty matches an absent field just as it matches a null or empty-list value. Both the data query engine and the reaction query engine compile these two operators from the same shared builder, so a saved query and a reaction criterion always agree on what “empty” means.

The case this corrects is a reference field inside a repeatable block. When the block has no instances, the reference is stored as an empty set; the condition is expressed against the field’s dotted path, and traversing that empty set used to make the “not equal to null” test succeed — so the entry wrongly passed an Is not empty condition even though its repeatable block had no rows at all. Requiring the field to exist excludes those entries.

A follow-on fix closed the same gap for two places that resolve a query through a different internal path: a reaction condition testing Is not empty on that same kind of field, and a reference field whose source query targets an entity with a repeatable block. Before the fix, on that path the predicate silently matched nothing — the reaction never fired, and the reference field’s picker showed an empty list — even though the underlying condition was correct and the fix above was already in place.

Stated limitation — a condition cannot be scoped to a single repeatable-block instance. These operators receive a field path, not a block instance, so there is no way to express “at least one instance of the block has this field filled”. A block that mixes an empty instance with a filled one therefore reads as empty as a whole. This is pre-existing behaviour, not introduced by the 1.8 change — plan around it when you design a condition over a repeatable block, and use a separate marker field on the entry if you need per-instance semantics.

The value is the second side of the condition — what is being searched for. It can be:

  • Fixed — a specific value typed manually and left unchanged.
  • Variable (dynamic) — taken from another field on the same entry or a related entity, so the comparison is field-to-field (for example Assigned to equals metadata → modified by).
  • Indicator (pointer) — a context value that keeps the query relative: @me resolves to the current user; membership tokens keep the query relative to the current user’s memberships — myGroups (the groups the user belongs to), myRoles (the user’s roles), and myOrgUnit (the user’s organizational unit); and date pointers such as @today compare a date field against the current date when the query runs.
  • Code expression — a JavaScript expression, used for conditions the other value types cannot express (giving administrators extra flexibility).
  • Parameter — a placeholder whose value is supplied later, when the query is used (see Parameterized queries).

In the builder these sources are labelled Fixed, Field, Pointer, Expression and Parameter, and pointers are listed with their @ prefix (@me, @myGroups, @myRoles, @myOrgUnit, @today, @now, @StartOfDay, @StartOfWeek, @StartOfMonth, @StartOfYear, plus further group-membership pointers).

Relations, virtual fields and workflow metadata

Section titled “Relations, virtual fields and workflow metadata”

For example, on a Task entity that has a department reference to a Department entity, you can filter tasks where department → region = “West” without leaving the Task query. Internally the engine follows the relation (the :relation path marker) and joins the related record so the condition is evaluated on it. Relations can be traversed more than one level deep — but because each level adds a join, keep relation chains reasonably shallow.

If an entity defines virtual (computed) fields — fields whose value comes from an expression rather than being stored — you can filter and sort by them like any other field. The engine computes the virtual field first, so the condition is applied to the computed result.

If a virtual field’s expression fails to evaluate, the query still returns results (that field is simply skipped) and a warning is shown, so a broken computed field never breaks the whole list.

For entities that have a workflow, you can add conditions on workflow metadata — the current step, the current-step owner, previous steps, or previous-step owners, including detection of ad-hoc steps. These options appear when the view or query allows current-step / previous-step filtering.

For fields that hold multiple values (multi-value fields, or fields inside a repeatable block), the builder offers aggregate operators that reduce the set of values before comparing: Size (count of values), Sum, Average, Max, Min, First, and Last. For example, “block Size greater than 3” returns entries whose repeatable block has more than three rows. These operators appear in the operator reference above (in the builder: Count of values, Sum, Average, Max, Min, First Value, Last Value, and Any Value for the default).

A condition that does not use an aggregate operator is evaluated with the default Any behaviour — the condition matches when any of the field’s values satisfies it. Since 1.8 a condition saved with the aggregate operator left unset is reliably recognised as “no operator chosen” and falls through to that default, instead of being rejected as an unsupported operator. An operator name the engine genuinely does not recognise is still rejected with an error.

This also matters for reaction criteria, which are evaluated by the same engine: a criterion with no aggregate operator used to be treated as “not matched”, so the reaction silently never fired.

After building the conditions you can save the query for reuse in views, reports, reference fields, dashboards, and other places. Since 1.10 the Queries tab’s new / edit dialog always saves — its “save query” toggle and its apply-without-saving mode were removed, and the confirm button is always Save Query. To try conditions without saving them, build them in the entries list’s Filter panel; saved queries are still applied from the queries list.

A saved query’s multilingual name is 3–128 characters. Since 1.10 the query’s normalizedName is generated by the server, and a clash answers 409 DATA_QUERY_NORMALIZED_NAME_DUPLICATE instead of a server error.

  • When creating or editing a query, choose Parameter as the value source and give the parameter a name.
  • The same parameter name can be reused across conditions on fields of the same data type; it cannot be reused across fields of different data types.
  • Saving a query that contains parameters classifies it as a parameterized query, shown with a dedicated Parameterized query tag in the query list. Since 1.10 a shared Parameterized badge marks such queries everywhere an administrator picks one — the Queries tab, the reference / relation / users entries-source pickers, the view-source and summary / dashboard query selectors, a public view’s saved-queries list and the admin quick-filter lists. In the Status dropdown and on quick-filter toggles it appears on the admin Entries tab only, never in the end-user list of queries to apply.
  • A parameterized query can be used as a source elsewhere — for example in reference fields or views, where the parameter values are supplied in that feature’s settings.

If every parameterized condition is removed (or switched to another value type), the query reverts to a standard query. Note the reverse is blocked: a standard (non-parameterized) query cannot be turned into a parameterized one on update.

Parameterized quick queries: per-query values Since 1.10

Section titled “Parameterized quick queries: per-query values Since 1.10”

Up to 1.8 a parameterized quick filter took its values from one flat parameters object on the request (the Grafana path), so two parameterized quick queries applied together could not carry different values for a parameter they both named. 1.10 gives each applied quick query its own values, and gives end users a way to supply them.

  • What end users see. Applying a parameterized query — from the Status list, a standalone quick-filter toggle, the saved-queries list or the Filter panel — opens a Query parameters dialog that asks for each declared parameter. The query then runs as a copy whose Parameter conditions became Fixed ones; the Filter panel shows them as editable conditions, and saving that copy creates a new query rather than overwriting the parameterized one.
  • The request parameter. quickFilterParameters is an object keyed by query id: {"<queryId>": {"<parameterName>": value}}. It is accepted by the entries, tree, summary and count routes (entity-scoped and view-scoped), by the Kanban board and Kanban column-values routes, and by both quick-export routes (Data Views & Faces).
  • Resolution. Whether a quick query is parameterized is decided by counting the Parameter conditions in its criteria — not by its stored isParameterized flag or its parameters array, either of which can be stale. For such a query, quickFilterParameters[queryId] is the complete answer when present (never merged with anything else); otherwise the flat parameters object is used, so existing Grafana panels keep working. Names match case-insensitively (Dept = dept); declared parameters are coerced to their declared type, and a name used in the criteria but never declared takes the raw value.
  • Isolation. Each quick query’s values are filled into a copy of its own criteria, so one quick filter’s values can never leak into another’s or into the view source’s resolved parameters.
  • Missing values fail the request with HTTP 422 QUICK_FILTER_PARAMETER_VALUE_MISSING (details: {query, parameter}); null counts as missing.
  • Sensitive fields. The filled criteria is checked against the caller’s sensitive-field grants like any other criteria, so a caller without the grant cannot vary a parameter on a sensitive field to probe its hidden value.
  • Never by default. A view cannot mark a parameterized quick query as applied by default — see Quick filters, groups and ordering.

A template export does not take parameter values, so it leaves parameterized quick filters out and tells the user so; the quick export applies them with their values.

A query saved with Quick Filter ticked (useInQuickFilter) is listed under Quick Filter on the Queries tab. To apply it, open the entries listing, go to the Status dropdown (which holds the additional filtering options), and enable the quick query: its conditions are added to the currently applied filters and combined with an AND. The filter conditions then appear in the custom filters list as disabled.

Since 1.10 the quick-filter part of the form also carries:

  • Name (the quick filter name) — the localized label end users see for this query as a quick filter. Left blank, it is filled from the query name on save; after that the two are independent.
  • Group — the quick filter group the query belongs to (or none). You can create a group inline with New group.

Where a quick query appears in a gallery — inside the Status list or as a standalone toggle — and whether it is applied by default is decided per view, not on the query; see Quick filters, groups and ordering. A quick query is reached by end users only through a gallery that lists it (or enables its group).

A quick filter group classifies an entity’s admin quick queries — for example By region over North, South and West. Groups are managed on the entity’s Queries tab, in the Quick filter groups sub-tab: create a group, name it in each language, and Add existing filter or Create quick filter inside it. A gallery then enables the whole group at once.

  • Membership lives on the query (quickFilterGroup, a group id or null), so a query is in at most one group, and deleting a query needs no group clean-up. Adding a query that is in another group moves it (the dialog warns Moves from …).
  • Only an entity’s admin quick queries can be grouped. A query that is not a quick query, or an end user’s own saved query, is always stored ungrouped.
  • Names are unique per entity, compared trimmed and case-insensitively per locale (G1, g1 and G1 clash) — QUICK_FILTER_GROUP_NAME_DUPLICATE.
  • Deleting a group keeps its quick filters; they simply become ungrouped.
RoutePurpose
GET / POST /v1/entities/{entity}/quick-filter-groupsList / create.
PATCH / DELETE /v1/entities/{entity}/quick-filter-groups/{id}Update / delete (delete ungroups the members, then deletes the group).
GET /v1/quick-filter-groups[/{id}]Raw groups, for packaging and dependency tracking.

Create and update answer with the group plus its member query ids. A queries array on a write sets membership exactly: listed queries move in, current members not listed are ungrouped, and only the entity’s admin quick queries may be listed (QUICK_FILTER_GROUP_INVALID_QUERY). A query response carries the read-only quickFilterGroupName; a write body that includes it is rejected with 422. A group of another entity answers 404 (QUICK_FILTER_GROUP_NOT_FOUND). Moving a query between groups does not change the query’s updateIdentifier. Known limitation: a group created after a package export snapshot reaches the dependency graph only on the next rebuild / sync scan.

Follow the same steps, and before saving enable the Save with tag toggle. Enter the tag’s multilingual name (3–128 characters), choose its color, and either pick an existing tag group or enable New tag group and name it. The query is then saved with both its tag name and the Standard query tag. When applied from the entries listing (via the Tag list, as a color frame or colored background), the tag color is applied to the entries that match the query.

Since 1.10 — PATCH /api/v1/entities/{entity}/queries/{id} now takes the same tag shape that creating a query already took, and answers with the updated query.

The practical gain is tag.tagGroupName. Sending it on an update used to be silently dropped — no error, no effect, because the update’s request schema had no such property. It now behaves the way it does on create: naming a group that does not exist creates the tag group on the fly and stamps the tag with it. And because the response now returns the updated query with the tag group resolved, a client that just created a group inline learns its id from the same response instead of issuing a follow-up read. The status code is unchanged; what changed is that the 200 now carries a body.

The tag rules on update, in full:

What you send as tagWhat happens
OmittedThe stored tag is left alone — the update stays genuinely partial.
null, or a tag with enabled: falseThe tag is deleted outright, taking its group reference with it.
A tag carrying a new tagGroupNameThe tag group is created on the fly and the tag is stamped with its id.
A tag carrying a tagGroup id that does not existThe request fails — an unknown group is an error, not a silent no-op.

tagGroupName is a request-only convenience: it is never stored on the query itself, which keeps the group’s id. The audit record for the update is computed against the tag as it ends up, so omitting tag is no longer logged as a removal that never happened.

Open the Queries tab, select the query, click the delete icon next to its name, and confirm — deletion is permanent. Some queries cannot be deleted: implicit (system-generated) queries, and any query currently in use by a virtual, joiner, or aggregator entity.

The entity’s Queries tab has two sub-tabs, Queries and Quick filter groups. The Queries list carries the same toolbar as the Reactions tab:

  • Filters — checkbox filters by query Type, Tag and Field, plus a metadata filter (created / updated by, created / updated date ranges).
  • Sort — up to three keys among Last modified (the default, newest first), Created date and Name.
  • Group by — Type (default), Tag or None.
  • Search — over the query name and its condition text.

This is client-side list state; GET /v1/entities/{entity}/queries did not change. Separately, a query read now attaches a _resolved label to every Fixed reference value in its criteria, so the filter panel shows the referenced record’s name instead of its id; _resolved is stripped again on write, so you never need to send it.

On the entries listing you can type a value into the search box to show every entry that matches, across all searchable fields (text, number, email, and so on) with no explicit conditions. Search must be allowed on a field for it to be included — either by enabling search when creating a view (search is then limited to the view’s added fields) or by enabling the search option on an individual field from its settings.

By default, an entity’s entries are shown in a table sorted descending by modification date. You can change this in two ways:

  • Sort dropdown (next to the search box): choose a direction and a sort-by field. Ascending sorts text and Created by / Updated by alphabetically (0–9, then A–Z, then أ–ي) and dates from oldest to newest; descending reverses both. You can sort by Created by, Creation date, Updated by, Modification date, or any entity field.
  • Field-header sort icon: click the sort icon in a field’s column header to toggle that field between ascending and descending.

Additional filters narrow entries by their state — active, archived, obsolete, or non-obsolete. They are reached from the dropdown next to the filter, available to administrators and (when allowed and enabled) to end users through views. Enable the states you want and disable the rest; you can combine states (for example Archived and Obsolete together). Entry states include obsolete (no longer matching the entity’s current structure or workflow), valid (matching the current structure and workflow), current (present in any state), and archived (moved to the archive).

Where a standard query returns a list of entries, a statistic query aggregates entries into a number, chart, or list — for example “count of requests by department”. It reuses the same filter builder, plus an aggregation function (Count, Sum, Min, Max, Average), a group-by field (dates can be bucketed by day, week, month, quarter, year, and so on; reference and classification group-by values are resolved to their display labels automatically), a display-as choice (Number, Chart, or List), and a sort direction (ascending or descending on the grouped result). Statistic queries always exclude archived and obsolete entries; very high-cardinality group-bys use a segment limit with an “Other values” bucket. They are the building blocks of dashboards and summary widgets. A statistic query is a different resource from an entity aggregate, which totals a column of an entries list in place rather than producing a widget — see Entity Aggregates & Entry Grouping.

The statistic-query model and routes are in Summary and dashboard API reference.

Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27