Crea una consulta nueva.
Crea, ejecuta y guarda consultas. La consulta se compone de la línea de mandatos y se puede ejecutar y guardar inmediatamente o posteriormente.
Creación de una consulta y ejecución de esta para detectar todos los errores de gravedad 1 y 2. Los campos "id", "headline" y "severity" se muestran en los resultados.
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 -------------------------------------------