What to change in the below script to add "State" condition
Hi, In workitems, the below script makes a field mandatory if priority=medium. What changes needs to be done to add a condition that, the field should become mandatory only if "state=Assigned" and "priority=medium":
dojo.provide("org.example.workitems.providers.Priority");
(function() {
dojo.declare("org.example.workitems.providers.Priority", null, {
|
One answer
Get the value "WorkItemAttributes.STATE", compare it with "Assigned", and do an "AND" together with the comparison on "Priority".
http://www.ibm.com/developerworks/rational/library/rational-team-concert-calculated-fields-work-item/
http://www.w3schools.com/js/js_comparisons.asp
Comments
Pravin Patil
commented May 14 '15, 7:34 p.m.
By any chance, do you have the code that can be shared? I am not able to grab the scripting concepts... |
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.