
Hi Elisa,
I do not know if you have already checked the below documentation which provides an information on creation of new quality rules:
https://doc.castsoftware.com/display/DOC83/CMS+-+Create+a+new+Quality+Rule
Please go through the above document and kindly let us know if it fulfills your requirement?