How to correct my Script Based Validator?
I'm Trying to write a script based validator but it didn't work out.
here is my code
I want to validate when workItem.getValue("com.bay.task.attribute.sit_exempt02" === "com.bay.task.enumeration.sit_exempt01.literal.l2") >>> literal.l2 is YES
this attribute must not be empty (workItem.getValue("com.bay.task.attribute.exemption_reason02") === ""))
if it empty it shouldn't be able to save and show error.
Please help me with this code.
Regards,
Derm Phongninlaarphon
|
One answer
Ralph Schoon (63.3k●3●36●46)
| answered Aug 26 '22, 4:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Aug 26 '22, 4:22 a.m.
PS: This should work with other browsers, but I always struggle to find my scripts in Firefox for example. Chrome works best for me.
|
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.