I've been trying to set a rule to validate the labels of a Bug to ensure they belong to a fixed set of allowed values. The rule is simple, if any value was entered that doesn't match the regex, the reporter of the issue and the person who modified it will both receive an email and a comment will be added to the issue.
The allowed values will include a list of specific words plus:
- MERGE_X.X
- X.X.X-rcX
- GLOBALMTOM-X
where X are digits.
I've been reducing the regex trying to make the rule work, and I'm currently testing with only this (the specific words only):
(ALERTS|API|BILLING_ACCOUNTS|BULK_FILES|CIR_FILES|COMMUNICATIONS|CUSTOMERS|DASHBOARDS|ENDPOINTS|EXTRACTORS|ICCID_PROVISIONS|IMPERSONATE|INFRASTRUCTURE|ORDERS|REPORTS|REQUESTS|RESOURCES|SERVICE_ACCOUNTS|SIM_REPLACEMENT|SMS_CONSOLE|USER_MANAGEMENT|USER_NOTIFICATIONS|DOCUMENTATION|REGRESSION|Smart2M_MEO)?
Problem is, not matter what I enter on the field Labels of a Bug, allowed or not allowed values, the rule is always triggered.
This is how the rule is configured:
