It's all about the answers!

Ask a question

Read only attribute of Enumeration type


Pallavi Deore (38141) | asked Aug 28 '19, 8:30 a.m.
edited Aug 28 '19, 8:35 a.m.

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>

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Sep 18 '19, 2:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 This is not a valid script. In addition this is a really terrible idea, I think. What if the user would accidentally select a wrong value. No way to fix? 

Your answer


Register or to post 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.