Is it possible to get the Team Path using the Plain Java API
Hi Folks, I can get a team name using the Java Plain API:
ITeamAreaHandle resultHandle = (ITeamAreaHandle) ITeamArea.ITEM_TYPE.createItemHandle(UUID.valueOf(teamUuid), null);
ITeamArea teamArea1 = (ITeamArea) repo.itemManager().fetchCompleteItem(resultHandle, IItemManager.DEFAULT, null);
if (teamArea1 == null) {
System.out.println(teamUuid + " Team area not found.");
} else {
teamName = teamArea1.getName() ;
}
Is it also possible to get the path for a specific team e.g. a team with the name ccc may have a path aaa/bbb/ccc?
|
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Jun 23 '20, 7:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
shows an example, where you would provide the FQN such as "JKE Banking(Change Management)/Business Recovery Matters" and it would look up the area.
Another example: https://rsjazz.wordpress.com/2014/05/26/finding-a-process-area-using-its-name/ https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ where the tree structure is iterated if I remember correctly.
Russell Norlund selected this answer as the correct answer
Comments
Russell Norlund
commented Jun 24 '20, 4:02 a.m.
Thanks Ralph this information is really useful. Especially, the first link with example code to get the fully qualified name. |
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.