A validator script seems to be working but the work item is saved even if the script validation is not passed
I have two attributes, an attribute of type "enumeration" and an attribute of type "Date". I need to make sure that the Date attribute is not set to any value if a specific value of the enumeration is picked up.
|
Accepted answer
Similar questions have been asked quite many times on this forum. There are two critical things that you need to do to achieve the desired result.
Abdelrahman Hassan selected this answer as the correct answer
Comments Also this looks odd:
@Donald, thank you for your helpful comment. It really helped to figure out the issue. I added the solution in a separate answer.
@Ralph, thank you for your comment. I'm using this check "if (attrValue)" to make sure that my attribute has a meaningful value which is not (null, undefined, NaN, empty string (""), 0, false)
|
One other answer
The issue is resolved, details are below.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.