Read only attribute of Enumeration type
Hello Everyone,
I need to make attribute of type Enumeration Read only when its Value is other than "Unassigned" and editable when it is "Unassigned".
I tried this scenario with below Condition script and applied precondition but still its not working.
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
var DeviceName = workItem.getValue("com.itr.workitem.deviceEnum");
if(DeviceName != "com.itr.workitem.deviceEnum.literal.l1")
{ return true; } else { return false; }
Kindly help me.</pre>