新規クエリーを作成します。
クエリーを作成、実行、および保存します。クエリーはコマンド行で作成され、すぐに実行することも、後で使用するために保存することもできます。
重要度が 1 または 2 のエラーをすべて検出するクエリーを作成して実行します。結果には「id」、「headline」、および「severity」フィールドが表示されます。
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 − -------------------------------------------------
ユーザー Tom が現在開いているすべての障害を検索するクエリーを作成して実行します。 結果には、「id」フィールドおよび「headline」フィールドが表示されます。
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 -------------------------------------------
ユーザー Tom が現在開いているすべての障害のうち、重要度が 1 のエラーを検索するクエリーを作成して実行します。 結果には、「id」フィールドおよび「headline」フィールドが表示されます。
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 -------------------------------------------