run_query

Runs an existing query that is defined by using static filters.

Synopsis

run_query query-name

Description

Attention: This command only runs queries that are defined by using static filters.

Runs a specified query in the database.

Options and arguments

query-name
The name of the query to run.

Example

Run an existing query that returns a list of all the defects in the Assigned or Opened state for the current user.

CQTOOL> run_query "Public Queries/My To Do List" 
id State Headline
------ --------- -----------------------------------
SAMPL00000002 Opened The foobar is broken
SAMPL00000003 Opened The widget needs repair
SAMPL00000004 Assigned The other foobar is broken
Count: 3
--------------------------------------------------------- 

Feedback