gerrit/Documentation/user-named-queries.txt
Martin Fick 21c557b6fe Move 'User Refs' docs to the intro-user doc.
Since there are more uses than just the named queries for the user refs
in All-Users, move the docs describing the refs to its own section where
it can be referenced by other sections.  Reference it from the 2 feature
sections which currently make use of it.

Change-Id: Ia95d25ca61df1c7df91dfd6bfede32acdcf65b20
2015-09-04 14:55:15 +00:00

29 lines
874 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.
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
---------