iRole and itemType
Andrew Salmela (8●2●3)
| asked Sep 23 '14, 9:26 a.m.
edited Sep 23 '14, 10:27 a.m. by Ralph Schoon (63.5k●3●36●46)
I am trying to retrieve the itemType of a RTC role but I not able to determine how to find it. Here are the attributes I able to find. How can I get the itemType of the IRole using the java api?
IRole[] projectAreaProcessRoleCollection = clientProcess.getRoles(projArea, null);
for (IRole iRole : projectAreaProcessRoleCollection)
{
IRole2 role2 = (IRole2) iRole;
String id = role2.getId();
String name = role2.getRoleName();
String label = role2.getRoleLabel();
String desc = role2.getDescription();
}
|
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Sep 23 '14, 11:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As far as I can see from looking into the SDK IRole and IRole2 are no interfaces that implement IItem. Therefore I assume you won't be able to get that information. I would suggest to store the identifier, name etc from IRole and IRole2 instead.
Andrew Salmela 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.
Comments
For what purpose would you want to get the IItemType? What do you want to do?
We are creating a solution to programmaticly administer RTC to create projects, manage user, manage roles, etc. to reduce administration needs and streamline with our company processes and policies. According to a post by Nick it is best to store both the UUID and itemType.