An advanced guide for architects and power users on writing complex UQL queries, including traversing object relationships, using functions, and performing historical analysis.
field = "value"
structure of UQL. Now it’s time to unlock its true power: the ability to ask deep, relational questions that span across your entire business data model.
This guide covers advanced patterns that will allow you to perform sophisticated data analysis, focusing on cross-object queries, built-in functions, and historical queries.
Object Picker
field or a Parent-Child
relationship, UQL allows you to “walk” across that relationship using dot notation to query fields on the referenced 🧊 Object
.
referencing_field_key.field_on_referenced_object
Projects
for enterprise clients.
🧊 Project
Object Type has an Object Picker
field with the key client
.client.tier = "Enterprise"
client
is the field on the 🧊 Project
, and tier
is a field on the referenced 🧊 Client
Object.Tasks
where the parent Project
’s Client
is based in “New York”.
parent.client.city = "New York"
Task
→ Project
→ Client
).parent.client.city
query, with arrows pointing from each part of the query to the corresponding field in the diagram.]
Function | Description | Example |
---|---|---|
currentUser() | A dynamic value representing the user currently running the query. | assignee = "currentUser()" |
now() | The current date and time. | start_date > "now()" |
today() | The current date (without time). | due_date = "today()" |
count(field_key) | Counts the number of items in a multi-value field (e.g., a Multiple Objects Picker ). | count(sub_tasks) > 10 |
🧊 Object
’s status changes. This is a powerful feature for process analysis.
status changed from "IN_REVIEW" to "APPROVED"
Dashboards
that measure process efficiency or Saved Filters
that find 🧊 Objects
that have ever passed through a critical review stage.IN_PROGRESS
Tasks
assigned to me, which belong to a Project
for an ‘Enterprise’ tier Client
, and where that Project
has more than 5 stakeholders.”
Universal Object
to the UQL
engine that queries them.
You have the full architectural knowledge. It’s time to put it all together and build your first complete solution.