Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To create a new rule, simply go to the "Validation" tab and click the "Create rule" button:

Image RemovedImage Added

Image RemovedImage Added

You can then enter the parameters of your rule:

...

1. Checking for the presence of properties:

Image RemovedImage Added

  • 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.

...

2. Checking that the values of certain properties are included in a predefined list:

Image Added

  • Properties names - The names of the properties whose value you want to check.
  • Allowed values - The allowed values ​​for the properties (case sensitive).


3. Checking that requirements have their key in a specific format:

Image Added

  • Format type - Should the requirements key start with a specific prefix, or should it match a regular expression? 
  • Prefix (or regex) - The prefix with which the requirements key must start, or the regular expression it must match (depending on the format type chosen).


4. Checking for the presence of a dependency (given a relationship):

Image Added

  • Dependency type - Do you want to chec
  • Dependencies names - The names of the dependencies whose presence you want to check for in the requirements. The rule will check for the presence of at least one of these dependencies. If you want to check for multiple dependencies at the same time, you can simply create one rule per dependency.


5. Checking for the presence of an external property:

Image Added



Search syntax

QueryResult
rulestatus = trueAll 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 NULLAll requirements not concerned by the rule "My rule".
rulestatus@My\ rule IS NOT NULLAll requirements concerned by the rule "My rule".

...