Filter item search by assignee, team, status, tag, and creator
The items field of the search API now accepts five optional filter arguments, so you can narrow item search results by who is involved with an item and how it is labeled, not only by board, workspace, and date range:
person_ids: items with at least one of the given user IDs assigned in any of their people columns.team_ids: items with at least one of the given team IDs assigned in any of their people columns.status_labels: items where any status column has one of the given labels. Labels match the whole label text, ignoring case.tag_names: items tagged with at least one of the given tag names, such asbug. Names match the whole name, ignoring case, and a leading#is ignored.creator_ids: items created by at least one of the given user IDs.
Within a single list, values are alternatives (any of them can match). When you provide several filters, an item must satisfy all of them. The people, status, and tag filters check every column of that type on the item, not one specific column. Limits apply: at most 50 unique IDs in total across person_ids and team_ids, and at most 10 labels in status_labels and 10 names in tag_names, each up to 64 characters.
These arguments are optional, so existing queries keep working unchanged.
query {
search {
items(
query: "launch plan"
person_ids: [12345678]
status_labels: ["Working on it", "Stuck"]
tag_names: ["q1"]
) {
results {
id
live_data {
id
name
}
}
}
}
}See the Searching across your account guide for filtering strategies.
