+49 (30) 467086-20 service@microtool.de
Products » objectiF RM » Analyses » Create query

Create query

There are two types of queries in objectiF RM: the simple queries, which list the different properties of an entity type flatly, and the detail queries (master detail queries), which can provide further information on an entity type. You can create queries for project entities (requirements, test cases, and so on) as well as for user-defined artifacts. To create queries, you need a query type. You can then create queries based on query types.

You can use queries at any time to display all the elements that you have created in the system.

  • select according to self-defined criteria,
  • display as (nested) lists,
  • export result list as MS Excel, MS Word or as CSV file,
  • filter the results and
  • edit the results.
Create simple query

You can use simple queries to, for example, list all the requirements of a package or the entire project flatly. Queries are always based on query types. A query type determines which properties are offered for an element. The tool comes with a number of predefined query types that can be used. Query types for flat lists can be identified by the name …list. If you have defined your own artifacts, you must first create a query type for the artifact.

  1. Open the Products window via the eye with the Show Products command.
  2. Define a package and select the context menu command Create other/ Query.
  3. Select a query type for the query by clicking the […] button behind Query type.
  4. Navigate to the package with the query types. By default, they are found in Package Settings/ Query types.
  5. Overwrite the query name if you do not want to use the suggested one.
  6. Under Query scope, use the drop-down menu to specify what the query should evaluate. Does the query refer to the entire project or only to one package?
  7. Under Context elements, enter the concrete package or activity from the project.
  1. Switch to the Selected Properties tab and use the plus button to select all the properties that you want to display.
  2. In the next dialog box, select the individual properties and confirm with OK.
  1. Drag and drop the columns to the desired position… 

… and overwrite the column name if necessary.

  1. Save with OK.
Create detail-query

Queries can also display nested lists. To do this, a detail query type must be integrated in the query type used. You can recognize query types for detail queries by their names. They are, for example, Requirements with stakeholders, Documents with reviews, or Activities with developed elements. If you have defined your own artifacts and artifact relationships, you must first create a query type for the artifact.

  1. Open the Products window via eye with the command Show Products.
  2. Select a package and select the context menu command Create other/ Query.
  3. Click on the […] button behind Query Type to select a suitable query type.
  4. Overwrite the name if you want to see another one.
  1. Under Query scope use the dropdown menu to specify what the query should evaluate. Does the query refer to the entire project or only to one package?
  2. Under Context elements, enter the concrete package or activity from the project. You can also specify several packages or activities here.
  3. Switch to the Selected Properties tab.
  4. Click on the plus button to select all properties to be displayed in the subsequent dialog.
  5. Accept the properties with OK.
  6. Drag and drop the columns to the desired position and change the column names if necessary.
  7. Switch to the Detail Query tab and repeat steps 8 and 9 for the detail query.

If you want to restrict the elements to be evaluated according to certain criteria, you can do this using Filters. To do this, switch to the Filter or Detail Filter tab page and click the plus button. There you select a filter that you want to use and specify the properties using the editable areas (underlined in blue). Some properties can be selected from a list, other properties you need to know in order to enter them.

Create query with assigned members

Requirements, test cases and activities are processed and implemented by individual users or project groups. There are tabs in the respective editing dialogs that allow you to assign project members.

  1. First, create a new query type using the context menu command Create other/ Query Type.
  2. Under Entity, choose Associated project user to test case, or Associated project user to requirement …
  1. .. and select the entry Project user/ User/ Database user under Associated entities.
  1. Confirm the settings with OK.

Creating a second query type

  • Create a new query type. For the Entity choose Requirement and for Detail query type choose the previously created query type.
  • Confirm the settings with OK.

Create query

  1. Create a new query with Create other/ Query based on the second query type.
  2. On the Selected Properties tab, use the plus button to add the Associated project users column and any others you want to see in the query.
  1. Now switch to the Detail Filter tab and use the plus button to create the Related Project Staff Member filter.
  2. Click on the blue link in the filter (select a navigation path) and select Associated project user to requirement.Project user.
  3. Create another filter to hide the detail rows by selecting the Property Filter filter via the plus button. Choose Associated project user to requirement/Project user.User in the filter expression under select a navigation path. Under select a property select Name, as operator select “=” and as comparison value a 0.
  1. Accept the property via OK.
    When you open the query, the assigned users are displayed in a comma-separated column.

Query “My requirements…”

You can also create queries in which a logged-in user only sees the requirements, test cases, or reviews that are assigned to him or her. You can only create such queries if the element or artifact contains the Staff tab in the editing form.

  1. Create a new query using the context menu of a package with the command Create other / Query.
  2. Enter a requirement, test case, or review list under Query Type.
  3. Specify the scope of the query and the context element.
  4. On the Selected Properties tab, select the properties you want to see in the query.
  1. Switch to the Filter tab.
  2. Click the plus button and select the Related Project Staff Member filter.
  3. Click the blue entry and select Associated project users.
  1. Save with OK.