R38205 Case - Check Case Categories Relationship

Code R38205
Entity Projects.Agile.Cases Entity
Name CheckCaseCategoriesRelationship
Attribute CaseCategory, Parent
Layer Back-End
Events Commit
Priority Normal
Modify NO
Action If Parent field has a value Validates that:

There is a record in CaseCategoryRelationships where ChildCaseCategory = Case.CaseCategory AND ParentCaseCategory = Case.Parent.CaseCategory.
Description The rule ensures that the selected parent case belongs to a category that is allowed to be a parent of the current case’s category.
Message Invalid case categories relationship.

A case of category '{Parent.CaseCategory.DisplayText}' cannot be a parent of a case of category '{CaseCategory.DisplayText}'.

Please change or remove the parent or select a different case category.
Version Introduced: v.25
Revocable YES

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.