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

javascript for enumerations

Hi,

I am trying to grab the contents from an enumeration and copy it into another field using workitem.getvalue("enumerationID"); but instead of getting the actual value of the field, I get the literal ID of the item in the enumeration.

Is there a way for me to get the actual value rather than the literal ID of the items in an enumeration?

thanks!

0 votes



2 answers

Permanent link
Hi Luis,

if you are talking about attribute customization I can't provide you with an answer. The support for all not string based types is still very limited. I have not been able to set certain attribute types such as contributor types. You might have to create a translation table for the enumeration literals. Since you would have to maintain it in several places I would consider not using attributeCustomization in this case.

I am not really sure what you try to achieve, but in general the Java API provides more complete capabilities that can be used in advisors and participants (precondition/followup action). If you are looking for an answer for the Java API, you should be able to find some hints here: http://rsjazz.wordpress.com/2012/08/20/manipulationg-work-item-enumeration-values/.

1 vote

Comments

Hi Ralph!

Do you know if there is way to get enumeration label by attribute customization in 4.0.1?

Tnks for your help!


Permanent link
You can access the Enumeration using workItem.getValue("enumerationID") and workItem.getLabel("enumerationID") provides you with its label/displayname at least in RTC 4.x. See  https://jazz.net/library/article/1093 Lab 5 for details.

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
× 6,118

Question asked: Aug 17 '12, 9:28 a.m.

Question was seen: 5,243 times

Last updated: Oct 03 '13, 2:08 p.m.

Confirmation Cancel Confirm