Hub 2017.4 Help

Search Query Grammar

This page provides a BNF description for Hub query grammar.


<Query> ::= <OrExpression> EOF <OrExpression> ::= <AndExpression> "or" <AndExpression> <AndExpression> ::= <SignExpression> "and" <SignExpression> <SignExpression> ::= ("not")? <Item> <Item> ::= <Field>| <Tuple>| <Paren>| <Phrase>| <Text> <Field> ::= <FieldName> ":" <FieldValue> <Tuple> ::= <TupleName> "(" <Field> <Field>* ")" <Paren> ::= "(" <OrExpression>| EOF ")"

Grammar is case-insensitive.

  • <Text> — arbitrary text.
  • <Phrase> — the exact text to match.
  • <FieldName> — field name (id, name, etc.). It covers all available JSON field names + some additional like "is", "in", "has", etc.
  • <FieldValue> — attribute value (admin, global, {my global permission}, etc.) for not single worded values value should be surrounded with "{" "}"
  • <Tuple> — conditional match by fields (access(project: "myProject", with: "myRole"))


name: admin Returns all users with the visibleName "admin".
is: banned Returns all banned users.
access(project: MyProject , with: read-issue-permission ) Returns all users with access to the project "MyProject" and permission "read-issue-permission".
Last modified: 9 February 2018