How to get all the data values that are inside a custom attribute?
![]()
Hi,
I have a custom Attribute that has n number of data that can be selected from RTC front hand. What I am trying to do is get all the data that are included in the attribute IAttribute custom = workItemClient.findAttribute(projectArea,"affected_environments", progressMonitor); System.out.println( "Value "+workItem.getValue(custom)); This above code only gives me default value . Is there any way i can get the list of all the data that are associated with that attribute? Thanks |
Accepted answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Apr 09 '13, 3:26 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please have a look at http://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ and for enumerations here: http://rsjazz.wordpress.com/2012/08/20/manipulationg-work-item-enumeration-values/
kishan adhi selected this answer as the correct answer
Comments ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You need to get the client library workitemCommon. The code below shows it for the workitemClient, but the pattern is the same.
IWorkItemClient workItemClient = (IWorkItemClient) teamRepository().getClientLibrary(IWorkItemClient.class); WorkitemCommon would look like:
IWorkItemCommon workItemCommon = (IWorkItemCommon) teamRepository().getClientLibrary(IWorkItemCommon.class); |
2 other answers
![]()
Thank you guys for your time and suggestion.
For other reader this link also might be helpful https://jazz.net/forum/questions/52722/getset-the-displayed-name-of-an-enumeration-type-attribute Thanks |
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.