It's all about the answers!

Ask a question

Get team areas of an user with Javascript API


Fran Burgos (1081540) | asked Aug 10 '15, 6:33 a.m.
edited Aug 10 '15, 7:47 a.m.

I'm able getting the user from session object with:

dojo.require("com.ibm.team.repository.web.client.session.Session");

(function() {

var getAuthenticatedContributor = com.ibm.team.repository.web.client.session.getAuthenticatedContributor;

 var loggedInUser = getAuthenticatedContributor().itemId;

})();

I have looked into API JavaScript but I didn't see any method for getting the Team Areas of this user. Do you know any way to get their TAs?

Accepted answer


permanent link
Martha (Ruby) Andrews (3.0k43750) | answered Aug 12 '15, 2:50 p.m.
JAZZ DEVELOPER
Hello

There is not an API to get that information directly. You can create the list if you are willing to navigate project and team areas.  You can use REST APIs to get the list of all project areas, then their team areas, then the members of the team areas. The methods are described here:
https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi

Ruby
Fran Burgos selected this answer as the correct answer

Your answer


Register or to post your answer.