You can now create rules that will check that your requirements meet your expectations.
Here are the validation rules you can use:
- Checking for the presence of properties
- Checking that the values of certain properties are included in a predefined list
- Checking that requirements have their key in a specific format
Checking for the presence of a dependency (given a relationship)
- Checking for the presence of an external property
To create a new rule, simply go to the "Validation" tab and click the "Create rule" button:
You can then enter the parameters of your rule:
- Label - It is the name of your rule.
- Scope - Do you want your rule to be applicable in the space you are currently in, or in all spaces?
- Severity - Requirements that do not respect an "error" rule will be displayed in red. This is not the case with the "warning" rules. Errors and warnings of a requirement can be viewed by clicking on it.
Action types
- Checking for the presence of properties:
Properties names - The names of the properties whose presence you want to check for in the requirements. The rule will check for the presence of at least one of these properties. If you want to check for multiple properties at the same time, you can simply create one rule per property.
- Checking that the values of certain properties are included in a predefined list:
- Checking that requirements have their key in a specific format:
- Checking for the presence of a dependency (given a relationship):
- Checking for the presence of an external property:
Search syntax
Query | Result |
---|---|
rulestatus = true | All requirements which respect all the rules that apply to them. |
rulestatus = false | All requirements which violate at least one rule that applies to them. |
rulestatus = 'error' | All requirements which violate at least one "error" rule that applies to them. |
rulestatus = 'warning' | All requirements which violate at least one "warning" rule that applies to them. |
rulestatus@My\ rule = true | All requirements concerned by the rule "My rule", which respect it. |
rulestatus@My\ rule = false | All requirements concerned by the rule "My rule", which violate it. |
rulestatus IS NULL | All requirements not concerned by any rule. |
rulestatus IS NOT NULL | All requirements concerned by at least one rule. |
rulestatus@My\ rule IS NULL | All requirements not concerned by the rule "My rule". |
rulestatus@My\ rule IS NOT NULL | All requirements concerned by the rule "My rule". |