+49 (30) 467086-20 service@microtool.de

Create Hierarchical Queries

Hierarchical queries allow you to clearly represent dependencies and relationships between project elements. This allows you to see at a glance which goals requirements were derived from or which test cases verify requirements. Alternatively, you can also use hierarchical queries to represent a package hierarchy or parts of it.
  1. From the context menu of a package, select the Create other → Hierarchical Query command
  2. Name the query.
  3. Use the […] button behind Query scope to specify whether the entire project or only specific packages are to be evaluated.
Select the Query Scope for the Hierarchical Query

The following Context elements row is not displayed if you have specified All entities of the current project.

  1. Under Context elements, use the Plus button to specify one or more packages or activities.
  2. Now click the Edit button next to Element Hierarchy. In the subsequent dialog, select what is to be displayed in the query.
    By default, the Package element type is preselected under Entity. You can select a different element type from the dropdown menu. The element type selected here can be considered the starting point of the query.
Open the selection dialog to select the elements to be displayed in the query
Note on the starting point
The starting point of a hierarchical query is the first element type on which the query is based. It specifies which element the query begins with and from which the hierarchy is built.
  • For example, if you select Package as the starting point, the query initially displays the packages. The elements they contain (e.g., goals or requirements) can then be displayed below them.

  • If you select Goal as the starting point, the query begins with the goals. Requirements derived from these goals, for example, can then be displayed below them.

  • If you select Requirement, the query begins with requirements, and the associated test cases or dependencies can be displayed below them.

The starting point therefore determines which elements are displayed at the top level.

Select the Top-Level Elements of the Query
  1. Under Name, select the element types that are to be displayed in the query.
    Expand Relationships to select additional connected element types. Select the individual entities and/or relationships that exist between the elements to be displayed and that are to be shown.
Select the Element Types to Be Displayed in the Hierarchical Query
  1. Then click OK to add the selection to the query.
    The selected entities now appear under Element Hierarchy.
  2. Under Element Hierarchy, select an entry (not a relationship) and then click the Plus button to select the properties that are to be displayed as columns.
Assign the Properties to Be Displayed for the Respective Element Type Using the Plus Button on the Right
  1. Save the settings with OK.

Color the Overview

If you display different element types in a query, you can highlight them in different colors to make them easier to distinguish.

  1. Select the desired element type in the Element Hierarchy.
  2. Switch to the Row tab and select a color.
Color the Element Type for Display
  1. Save the settings with OK.

The individual element types are displayed in the specified color. When selecting a color, make sure that the text remains clearly legible against the colored background. Therefore, choose colors with sufficient contrast to the font color whenever possible.

Hierarchical Query with Differently Colored Element Types