All or Nothing
Powersheet applies the wholewhere clause together with the entity type, the project and the data model constraints. It never skips part of a filter: if a predicate cannot be applied, the query stops with an error that names the reason, so the sheet never shows rows the query meant to exclude.
Supported Predicates
What Stops a Query
A query stops with an error when it uses:startsWith,endsWithorcontainson a field that is not a string, including enum fields- any predicate on a built-in date and time field; these fields can only be sorted. Custom date fields can be compared
- any predicate on a multi-valued built-in work item field
- a custom field of rich text, currency or duration type
eq,neor a null check on the rich-textdescription; it takescontains,startsWithandendsWithnullwithlt,le,gt,georin, orinwith an empty list- a calculated or server-rendered custom field
- a dotted path through a to-many relationship, or to anything other than the document or project
- an
orderByon a field that cannot be sorted, such as a multi-valued field
eq or in on an enum instead of contains.
Query Execution Pipeline
The query processor follows this execution order:- Security enforcement — Verify read permission for the queried entity type
- Scoping — Combine the
wherepredicates with the entity’spolarionType, the current project and the data model constraints - Execution — Run the combined query, sorted by
orderBy, together with the related entities of its expansion paths, which stay within the same project and follow their own constraints - Row permissions — Drop work items the current user cannot read
- Paging — Apply
takeandskipto the readable rows
Document Predicates
Predicates on document properties — a dotted path such asdocument.moduleName — are applied in the same query as the rest of the where clause, restricting the work items to those in matching documents.
Query Parameters
The query processor extracts parameters that control query behavior.
See Query Context and Baseline and Revision Queries for parameter details.
Security Enforcement
Before any query executes, the processor verifies that the current user has read permission for the queried entity type. A query against an entity type the user cannot read returns no rows, without running.Constraint Annotations
The query processor applies constraint annotations from the data model to queries:- Project constraints from entity type annotations are added to the query
- Document constraints from entity type and expansion path annotations are merged into document filters
- Navigation property constraints combine both the expansion path and target entity type constraints
Complete YAML Example
- The
whereclause is a supported equality predicate - The
applyCurrentDocumentToconstraint restricts results to the current document context - Expansion paths load related entities after the primary query executes
Related Pages
- Predicates — predicate types and syntax
- Document Filtering — document-level query constraints
- Expand Clause — expansion path configuration
- Query Context — query parameters and execution context