The instructions on this page describe how to define and execute a search in the project navigator using advanced search. You can also define and execute a search using basic search.
...
What is advanced search?
An advanced search in the project navigator allows you to use structured and complex queries to search for projects.
...
As an example, we would like to see what Projects are on a "PREPARING" Status in the "Apps Management" Category.
Go
...
to Projectrak →
...
Project navigator.
Click on the
...
Show PQL link to switch to advanced Search.
Type any field you would like to filter through, "Status" and then
...
type equals to (=) and finally
...
type "ON TRACK"
To filter through our projects, even more,
...
type "Lead" and then type equals to (=)
...
and finally type "currentUser()"
Our PQL is completed and we can now click on the
...
magnifying glass
...
that will show us our result.
You can see how easy this can be in the video below.
...
A simple query in PQL consists of a a field, followed by an operator, followed by one or more values. For example, the following simple query will find all projects whose Technology ( id=23 ) is "Java":
...
In general, a query created using busing basic searching will be able to be translated to advanced search (i.e. PQL), and back again.
However, a query created using advanced search may not be able to be translated to Basic Search, particularly if:
The query contains
anan OR
operatoroperator (Note:
YouYou can have
anan IN
operatoroperator and it will be translated, e.g.
project in (A, B)
)The query contains the same field two or more times
The query is too complex to translate to Basic Search
Setting the precedence of operators
You can use parentheses in complex PQL statements to enforce the precedence of operators or you can let autocomplete suggest it for you and choose it simply by clicking on it. For , for example, if you want to find all development projects where Country is China or Continent is Asia:
Code Block |
---|
category = development AND ( Country ~= China OR Continent ~= Asia ) |