Create a query

Learn how to create queries with the Query wizard.
This module shows how to create a query by using the Query wizard. To create a query by using the Query wizard:
  1. Click File > New > Query.
  2. In the New Query Wizard window, select Defect and click Personal Queries. You can use an existing query as a template in the Query wizard. This exercise does not use a template, so click Next
  3. Use the Select fields to use as query filters page to specify which fields to use as filters in establishing the query's selection criteria. To choose a field from the Fields pane, double-click it or drag it to the Filters pane. Choose the following fields to display:
    • Headline
    • Owner
    • Priority
    • State
    then click Next.
  4. Specify the values of the filter fields you have selected:
    1. Select State.
    2. Select Contains from the Operator list, and select the Not check box.
    3. Click Values. In the Select Values window, select Closed and Resolved and click OK.
    4. Click Next.
  5. Define the display fields for you new query:
    1. In the Fields pane, double-click Priority to add it to the list in the Display Format.
    2. In the Fields pane, double-click State to add it to the list in the Display Format.
    3. In the Fields pane, double-click Owner to add it to the list in the Display Format.
    4. In the Fields pane, double-click Headline to add it to the list in the Display Format.
  6. The query is now defined to return all records that are not in a closed or resolved state. Click Run Query checkbox, then click Finish.
  7. Examine the records that the query returns in the Rational® ClearQuest® Query Results view.
  8. Click the Save as button. Enter NotClosedorResolved in the Query Name field, and click Finish to save the query in the Personal Queries folder of your workspace.