Before this change, named queries searches for changes based on the queries defined by the current user. This change makes it possible to search for changes based on queries defined by other users. This feature can be used to allow users to define personal sets of queries that interest them, perhaps queries that they would like to watch, or review, and it allows them to share those sets with other users. Feature: Issue 13336 Change-Id: I57981a238d3b5d233714ce4754953f0d85a57941
30 lines
935 B
Plaintext
30 lines
935 B
Plaintext
= Gerrit Code Review - Named Queries
|
|
|
|
[[user-named-queries]]
|
|
== User Named Queries
|
|
It is possible to define named queries on a user level. To do
|
|
this, define the named queries in the `queries` file under the
|
|
link:intro-user.html#user-refs[user's ref] in the `All-Users` project. The
|
|
user's queries file is a 2 column tab delimited file. The left
|
|
column represents the name of the query, and the right column
|
|
represents the query expression represented by the name. The named queries
|
|
can be publicly accessible by other users.
|
|
|
|
Example queries file:
|
|
|
|
----
|
|
# Name Query
|
|
#
|
|
selfapproved owner:self label:code-review+2,user=self
|
|
blocked label:code-review-2 OR label:verified-1
|
|
# Note below how to reference your own named queries in other named queries
|
|
ready label:code-review+2 label:verified+1 -query:blocked status:open
|
|
----
|
|
|
|
GERRIT
|
|
------
|
|
Part of link:index.html[Gerrit Code Review]
|
|
|
|
SEARCHBOX
|
|
---------
|