It's all about the answers!

Ask a question

Is it possible to get the Team Path using the Plain Java API


Russell Norlund (17221724) | asked Jun 23 '20, 4:40 a.m.

 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


permanent link
Ralph Schoon (63.5k33646) | answered Jun 23 '20, 7:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

findProjectAreaByFQN">https://github.com/jazz-community/work-item-command-line/blob/master/com.ibm.js.team.workitem.commandline/src/main/java/com/ibm/js/team/workitem/commandline/utils/ProcessAreaUtil.java?_pjax=%23js-repo-pjax-container","user_id":28647924}}">findProjectAreaByFQN

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.

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


Register or to post 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.