This module shows how to create a query by using the Query wizard.
You can also see a viewlet, which is an animated slide presentation,
that shows how to create a query. The viewlet is available in English
only. To run the viewlet, click the Show Me link. To create a query
by using the Query wizard:
- Click .
- 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
- 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.
- Specify the values of the filter fields you have selected:
- Select State.
- Select Contains from the Operator list,
and select the Not check box.
- Click Values. In the Select
Values window, select Closed and Resolved and
click OK.
- Click Next.
- Define the display fields for you new query:
- In the Fields pane, double-click Priority to
add it to the list in the Display Format.
- In the Fields pane, double-click State to
add it to the list in the Display Format.
- In the Fields pane, double-click Owner to
add it to the list in the Display Format.
- In the Fields pane, double-click Headline to
add it to the list in the Display Format.
- 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.
- Examine the records that the query returns in the ClearQuest Query
Results view.
- 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.