How do you query team areas that a user belongs to in RTC?
![]()
I have user that spans multiple team (team areas) in RTC. Is there an easy way to query the team areas that a user belongs to?
|
4 answers
![]()
thank you all. I have mentioned all these workarounds to the user and hopefully they are good with it.
|
![]()
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. |
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Apr 12 '16, 2:48 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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 thanks Ralph. I will see if the runtime report will suffice for this project. The link mentions code using API but not REST/OSLC. Does this mean nothing in REST/OSLC to retrieve this kind of information?
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
That only means I have focussed on the Java APIs and have example code for Java.
|