Created On:  05 October 2011

Problem:

How do you limit the requirements retrieved in Document Factory 2 by using the wildcard filter on 'hierarchy' or 'tag' keyword?

Resolution:

Starting from CaliberRM 2008 SP1 patch 25, it is possible to apply wildcard filter on 'hierarchy' or 'tag' keword to limit the requirements retrieved in Document Factory 2. This is in addition to the compulsory filtering by defining a filter on the server side that is identified by 'criteria_name'.

For example, the filter on 'hierarchy' below returns all child requirements ending with 1 such as 1.1, 2.1, 3.1, etc.

$BEGIN_SECTION
$FILTER{criteria_name:BizRequirements}
$FILTER{hierarchy LIKE ‘%.1’}
$SORT{type,hierarchy}
<>...
$END_SECTION

To illustrate with another example, the filter on 'hierarchy' below returns all child requirements starting with 1 such as 1.1, 1.2, 1.3, etc.

$BEGIN_SECTION
$FILTER{criteria_name:BizRequirements}
$FILTER{hierarchy LIKE ‘1.%’}
$SORT{type,hierarchy}
<>...
$END_SECTION
Incident #2514501