Crea, esegue e salva le query. La query viene composta sulla riga comandi e può essere eseguita immediatamente o salvata per un utilizzo futuro.
Creare ed eseguire una query per individuare tutti gli errori di severità 1 o 2. I campi "id", "headline" e "severity" vengono visualizzati nei risultati.
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 − -------------------------------------------------
Creare ed eseguire una query per individuare tutti i difetti correntemente aperti dall'utente Tom. I campi "id" e "headline" vengono visualizzati nei risultati.
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 -------------------------------------------
Creare ed eseguire una query per individuare tutti i difetti correntemente aperti dall'utente Tom e gli errori di severità 1. I campi "id" e "headline" vengono visualizzati nei risultati.
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 -------------------------------------------