Get team areas of an user with Javascript API
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
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
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