1.4 Under the Hood: UCM ClearQuest Concepts

Rational ClearQuest is a change-request management system that can integrate with UCM projects to provide extended functionality. This section describes fundamental concepts for the UCM-ClearQuest integration:

Reading this section isn't necessary to start working on a UCM project that is enabled for ClearQuest, but it does provide a basis for understanding how ClearQuest implements the integration and may be helpful if you need to diagnose problems.

The UCM-ClearQuest Schema

ClearQuest stores change requests as records in a database. A schema defines the types of records in the database, the states available to each type of record, and other attributes of the database.

ClearQuest supplies two UCM-enabled schemas: Unified Change Management and Enterprise. Your project manager can set up a custom UCM-enabled schema. To support the UCM-ClearQuest integration, a ClearQuest database must use one of these UCM-enabled schemas.

ClearQuest stores all schemas in a schema repository, which is a master database of schemas. The schema repository does not contain any user-owned data or change request data. Change-request data is stored in a user database.

UCM-Enabled Record Types and ClearCase Activities

A UCM-enabled record type is a template for ClearQuest records. It includes definitions for a set of fields that store information about ClearCase activities. Your ClearQuest database may include different UCM-enabled record types for different purposes (such as tracking defects and enhancement requests), and it may include other record types that are not UCM enabled.

In a project that uses the UCM-ClearQuest integration, records based on a UCM-enabled record type can be linked with ClearCase activity objects (Figure 9).

Figure 9 Activities and UCM-Enabled Records

This link enables ClearQuest to display information about the ClearCase activity (such as its change set, its stream, and whether it is currently set in any view). It also enables policies that govern when you can deliver an activity in ClearCase and when you can close an activity in ClearQuest. Because of the close association between linked UCM-enabled records and ClearCase activities, the UCM documentation usually refers to both linked entities as activities.

At any point in a project, your ClearQuest database may contain UCM-enabled records that are not linked to a ClearCase activity object. For example, a newly created record may not be linked to a ClearCase activity. You must explicitly complete an action (for example, by clicking Action > WorkOn in ClearQuest) to link a UCM-enabled record to a ClearCase activity.

Each ClearCase activity in a UCM project that is enabled for ClearQuest must be linked to a ClearQuest record. You cannot create a ClearCase activity object without linking it to a UCM-enabled record in a ClearQuest database.

Queries

Queries are the vehicle for navigating through the ClearQuest database. Before viewing or modifying records, you must query the database to find the records you are interested in. For example, you may want to see only activities that are assigned to you or that are associated with your project, or you may want to see activities created before or after a particular date.

A UCM-enabled schema includes a set of queries that you can use to find UCM-enabled records. ClearQuest places the queries into two categories in the ClearQuest Public Queries folder (Figure 10).

Figure 10 UCM-Enabled Queries in ClearQuest

You can run queries in the UCMUserQueries folder and modify them when necessary. You can save in your Private Queries folder any public query that you modify.

Do not run queries in the UCMSystemQueries folder from ClearQuest; they are intended to be run by the ClearQuest and ClearCase system only.

This section describes the following queries:

In addition to the queries included in the database schema, you and your project manager can create your own queries.

MyToDoList

The MyToDoList query finds UCM-enabled records that match all of the following criteria:

You or your project manager can modify this query.

UCMCustomQuery1

The UCMCustomQuery1 query finds UCM-enabled records that match any of the following criteria:

The ClearCase checkin and checkout dialog boxes present the activities that UCMCustomQuery1 finds. Although you can also see this query from ClearQuest, it is not designed to be run outside the context of a ClearCase view.

Your project manager can modify this query.

Other Queries

A UCM-enabled schema also supplies the queries described in Table 1. You can run any of these queries.

Table 1 Other Queries in the Unified Change Management Schema


Query

Description

ActiveForProject


For one or more specified projects, selects all activities in an active state type.


ActiveForStream


For one or more specified streams, selects all activities in an active state type.


ActiveForUser


For one or more specified developers, selects all assigned activities in an active state type.


UCMProjects


Selects all UCM-project records in ClearQuest user database.

State Types and State Transitions

Change requests move through a pattern, or life cycle, from submission through resolution. In ClearQuest, each stage in this life cycle is called a state, and each movement from one state to another is called a state transition.

As with record types and records, a state type is a template that defines actions and other attributes associated with a state. The states in a UCM-enabled schema must be based on one of the following state types:

Your project manager may give the states in your UCM-enabled schema different names and may create multiple, different states based on the same state type. For example, your UCM-enabled schema may contain the states Scheduled and Deferred, both of which are based on the Active state type but have different associated actions and meanings.

State Transitions

Schemas include rules for changing records from one state type to the next. Some examples of state transitions are shown in Figure 11.

Figure 11 Example of ClearQuest State Transitions

In a UCM-enabled schema, records must follow these state-transition rules: