Creates, runs, and saves queries. The query is composed on the command line and can be run immediately or saved for later use.
Create and run a query to find all the severity 1 or 2 errors. The "id", "headline" and "severity" fields are displayed in the results.
CQTOOL> new_query -id -headline -severity -in severity "1 2" "Public Queries/query1" id Headline Severity ----- --------------- ---------------------------- SAMPL00000011 The foobar is broken 1-Critical SAMPL00000021 The widget needs repair 1-Critical SAMPL00000019 query does not work 1-Critical SAMPL00000051 we need new features 2-High Count: 4 − -------------------------------------------------
Create and run a query to find all the defects currently opened by the user Tom. The "id" and "headline" fields are displayed in the results.
CQTOOL> new_query -eq State Opened -and -eq Owner Tom -id -headline "Public Queries/query2" id Headline SAMPL00000011 The foobar is broken SAMPL00000021 The widget needs repair Count: 2 -------------------------------------------
Create and run a query to find all the defects currently opened by the user Tom and severity 1 errors. The "id" and "headline" fields are displayed in the results.
CQTOOL> new_query ( -eq State Opened -and -eq Owner Tom ) -and ( -eq Severity 1-Critical -and -Project Classics ) -headline "Public Queries/query3" id Headline SAMPL00000011 The foobar is broken Count: 1 -------------------------------------------