Timill’s query language is the syntax behind item search, saved list filters, RBAC field rules, and group.queryItems(query) in scripts (JavaScript backend scripts and Gonja). A query is a boolean combination of field:value terms.
status:open exact match on a selection field
title:launch contains, case-insensitive, on a free-text field
assignee:$me the current user
created:$thisweek a relative date period
type:task AND completedDate:$empty AND of two terms
An empty query ("") matches every item.
Tip
It is not GitHub/Jira/Linear search syntax, and most of the differences fail silently: an unrecognized field name is read as a custom field id, so a wrong query simply returns zero items rather than erroring. See Common mistakes below.
Terms#
A term is field:value. There’s no bare keyword and no field=value or field!=value — everything goes through a colon, and negation is a separate NOT in front of the whole term (see Combining terms).
title:launch contains (free-text fields only)
title:"Launch plan" exact match — also how you quote a value with spaces
title:^Lau starts with
title:plan$ ends with
title:~lau explicit contains (same as bare word, for clarity)
title:/re[0-9]+/ regular expression
title:*report* wildcard (* = any run of characters, ? = one character)
count:42 numeric equality
count:>=10 comparison: > < >= <=
price:10..100 inclusive range — both bounds required
status:(open pending) IN — matches any of the listed values
assignee:$empty field has no value
assignee:$filled field has a value
A value containing a space, colon, or / must be quoted — an unquoted colon ends the value (time:"15:30", url:"http://x"), and an unquoted / is read as the start of a regex.
Text vs. selection fields#
The same bare-word syntax means something different depending on the field’s type, and this is the single most common source of a query that “runs” but matches nothing:
| Field type | Bare word means | Example |
|---|---|---|
Free text (title, description, string/html custom fields) | Case-insensitive contains | title:launch matches “Product Launch Plan” |
Selection or reference (status, type, assignee, dropdowns, item/user/group references) | Exact equality on the id | status:open matches only the status whose id is open — never a substring, never the display label |
Selection and reference values are ids, not the words a person sees in the UI. status:done does not mean “the status named Done” unless a status happens to have the id done — look the real id up (in the item type’s settings, or with group.getFields(itemTypeId) / group.getStatuses(itemTypeId) from a script) before writing the query.
Dates#
Relative dates use a $ prefix — there is no bare today or now keyword:
| Expression | Meaning |
|---|---|
$today | today — a bare field:$today matches the whole day |
$yesterday | yesterday — a bare field:$yesterday matches the whole day |
$thisweek / $thismonth / $thisyear | the current period, as an inclusive range |
$today-7days, $today+3d, $today-2weeks, $today-1month | offset from start of today — only $today accepts an offset. Units: d/day/days, w/week/weeks, m/month/months, y/year/years, h/hour/hours, min/minute/minutes |
ISO date and datetime literals also work unquoted: dueDate:2026-05-01, updated:2026-05-01T15:30:00.
Bare relative dates are ranges
A bare field:$today, field:$yesterday or field:$today+7days matches that whole calendar day (updated:$today = anything updated today). A bare field:$today-7days does not mean “before 7 days ago” — it becomes an inclusive range from 7 days ago through the end of today (i.e. “within the last 7 days”). Hour/minute offsets ($today+9h) are a single instant.
For a genuine one-sided bound, use an explicit comparison operator: dueDate:<$today (overdue), dueDate:>=$today-7days (on or after 7 days ago, open-ended).
Combining terms#
a:1 AND b:2 both must match
a:1 OR b:2 either matches
NOT a:1 negation
a:1 AND NOT b:2 combine negation with AND
(a:1 OR b:2) AND c:3 grouping with parentheses
a:1 b:2 adjacent terms are implicitly ANDed — same as a:1 AND b:2
Two rules trip people up:
- Implicit AND only works between two plain terms. Write
ANDexplicitly before aNOTor a(—a:1 NOT b:2anda:1 (b:2 OR c:3)are both parse errors.(b:2 OR c:3) a:1(group first) parses fine. NOT NOT a:1is a parse error —NOTtakes exactly one term or group; writeNOT (NOT a:1)if you really mean that.
$me, $empty, $filled#
$meis the only symbolic value, and it only works in a user-typed field —assignee:$me,author:$me, ausers(multi-user) field. It resolves to whoever the query runs as: the person if it’s an interactive read, the script’s acting user if it’s a script (for a scheduled script, that’s the script’s author — see Backend scripts). It does nothing on any other field type.$empty— the field has no value (assignee:$empty— unassigned).$filled— the field has a value (assignee:$filled— assigned to someone).
Built-in field names#
Query field names are not always the same as the JavaScript property names on item. The built-ins:
title description status assignee author subscribers type
dueDate completedDate created updated id idInGroup tag group deleted
Two differences worth calling out explicitly:
createdandupdated— nevercreatedAt/updatedAt(those are the JS property names onitem; used as a query field they’re read as an unknown custom field and match nothing).completedDate, notcompletedAt.tagis the human-readable id shown in the UI (PRJ-12,#12) —tag:PRJ-12andtag:12are both equivalent toidInGroup:12.
Prefer completedDate over a status id for “done” / “open” in general terms — the platform stamps it automatically the moment an item reaches the last status in its item type’s workflow, and clears it if the item moves back, so it works across every item type without knowing that type’s specific status ids:
completedDate:$empty still open, for any item type
completedDate:$filled finished
dueDate:<$today AND completedDate:$empty genuinely overdue
Reach for an explicit status:<id> only when the person means one specific status (e.g. “in review”, “blocked”), not “done” or “open” in general.
Custom fields#
A custom field is queried by its field id, not its display label — look the id up in the item type’s field settings, or from a script with group.getFields(itemTypeId) (returns {id, name, description, type, icon} for every field). The query syntax to use for that field then follows its type, per Text vs. selection fields above — free text is contains, selection/reference is exact-id equality, numbers support comparisons and ranges, booleans are field:true / field:false (lowercase only; an unset boolean matches neither field:true nor field:false — only NOT field:true includes it), and attachment/event fields only support $empty / $filled.
Common mistakes#
| Written | Problem | Correct form |
|---|---|---|
-status:done | No - negation prefix exists | NOT status:<doneId> |
status!=done, status = open | No != or = operators | NOT status:<doneId>, status:<openId> |
dueDate:..today | No open-ended range and no bare today keyword | dueDate:<$today |
dueDate:<today | Missing the $ | dueDate:<$today |
is:open, label:urgent, assignee:me | GitHub/Jira-isms — not fields in this language | Use the real field and, for “me”, $me (not me) |
sort:dueDate, limit:10 | Sorting and paging are not part of the language | queryItems returns an array — sort and slice it in code |
createdAt:$thisweek | Wrong field name (JS property, not query field) | created:$thisweek |
status:done (as a label) | A status name, not its id | Look up the real id, e.g. status:done-a1b2 |
a:1 NOT b:2 | Implicit AND is not allowed before NOT | a:1 AND NOT b:2 |
a:1 (b:2 OR c:3) | Implicit AND is not allowed before ( | a:1 AND (b:2 OR c:3) |
url:http://x, time:15:30 | An unquoted value containing : or / fails to parse as intended | Quote it: url:"http://x" |
Using it from scripts#
Both scripting languages run the same query through group.queryItems(query):
// JavaScript
const openTasks = group.queryItems(`type:${taskTypeId} AND completedDate:$empty AND assignee:$me`);
log(`${openTasks.length} open tasks assigned to me`);
{# Gonja #}
{% for it in group.queryItems("completedDate:$empty") %}
<li>{{ it.title }}</li>
{% endfor %}
In JavaScript backend scripts, a malformed query throws — wrap the call if the query is built from user input you can’t fully trust:
try {
const items = group.queryItems(userSuppliedQuery);
} catch (e) {
log("bad query: " + e.message);
}
queryItems only ever returns items the acting user may see — the same RBAC that applies everywhere else in the platform applies here too. See Backend scripts for what “the acting user” means per trigger, and the JavaScript API reference for the full group/item surface.