How do you query team areas that a user belongs to in RTC?
4 answers
https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ section Only Analyze the Process Areas of One User using the API. Otherwise just look at the users allocation to see all RTC project areas and team ares a user is member of.
Comments
If you open the user profile in Eclipse Client, it will list all Team Areas that user belongs to.
Comments
You can just access the reportable URL to find it out. For example, to show team area for user "deb":
https://clm:9443/ccm/rpt/repository/foundation?fields=foundation/teamArea/(name|projectArea/name|teamMembers[userId="deb"]/(name|userId))
Note that you still need to filter the result by eye or using a script - only the team areas that showing the user count. Because the attribute "teamMembers" is multi-valued so we cannot use it to filter teamArea in the URL. I think that's the best we can achieve with the reportable API.
https://clm:9443/ccm/rpt/repository/foundation?fields=foundation/teamArea/(name|projectArea/name|teamMembers[userId="deb"]/(name|userId))
Note that you still need to filter the result by eye or using a script - only the team areas that showing the user count. Because the attribute "teamMembers" is multi-valued so we cannot use it to filter teamArea in the URL. I think that's the best we can achieve with the reportable API.