RTC - How to resolve the STATE enumeration?
Hi,
When I am loading the STATE attribute from workitem, I am getting something like "com.ibm.team.workitem.defectWorkflow.state.s13", then to get the STATE name I do: <code>WorkflowUtilities.findWorkflowInfo(workItem, monitor).getStateName(workItem.getState2());</code>
But when I need to get other attributes value, from Enumeration, I do: <code>(List<ConfigurationItem>) workItemClient.resolveEnumeration(iAttribute, monitor).getEnumerationLiterals();</code>, then I can get the display name making <code>configurationItem.getDisplayName()</code>
It's possible to make something like this to STATE property?
|
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Jul 29 '14, 3:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The state attribute is no enumeration. I think you should provide more information on what you want to achieve. I blogged about working with workflow states here: http://rsjazz.wordpress.com/2012/11/26/manipulating-work-item-states/
If you want the (display) name of a state, I think you need to use workflowInfo.getStateName(stateId) Vinícius Rabelo selected this answer as the correct answer
|
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.