How do I get an EnumerationList (multiple choice)?
![]()
I'm using the Java EWM plugin in RTC7.0.2.
I don't know how to get the value of the Multiselection List( Enumeration List )
How can we get it?
|
Accepted answer
![]() I am sorry. I solved it in the following way. IAttributeHandle attributeHandle = workItemServer.findAttribute(iProjectArea, attributeName, monitor); IAttribute artifactAttribute = (IAttribute) itemService.fetchItem( attributeHandle, IRepositoryItemService.COMPLETE );
Object artifactObj = workItem.getValue(artifactAttribute);
ILiteral literal = enumeration.findEnumerationLiteral( (Identifier<ILiteral>) list.get( i ) );
}
Ralph Schoon selected this answer as the correct answer
Comments The question would have been, how do I access work item attributes of type enumeration list using the EWM SDK or the Plain Java API. I would have suggested to look into https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ |
One other answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Feb 24 '22, 3:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Click on attribute in editor, see the results.
If you expect a different answer provide a better question. E.g. read How should I ask a question in the Forum if I want to receive useful answers? and modify your question accordingly. Sigh, my answer is already way longer than the original question.
|
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.