Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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>

0 votes



One answer

Permanent link

 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? 

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 28 '19, 8:30 a.m.

Question was seen: 870 times

Last updated: Sep 18 '19, 2:26 a.m.

Confirmation Cancel Confirm