How do you query team areas that a user belongs to in RTC?
4 answers
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?
That only means I have focussed on the Java APIs and have example code for Java.
If someone comes up with an OSLC/REST way, you could use that.
Comments
thanks Alexandre, I think we are closer with this answer as this pertains to one specific user. Is there a way to see a list of users with their associated team areas without having to create complicated report or write code?
Hi Gary,
So also in Eclipse Client if you browse to Open Users, and type an asterisk to list all users, in the front of the user name it will display all the Team Areas the user belongs to.
However I understand this is not very user friendly
hi Alexandre, thanks for this tip. I am not able to get to this dialog in Eclipse client. Can you comment? Is it somewhere in the Team Org tab?
Hi Gary, under the Team Artifacts tab, right click the repository connection and browse to Administer > Open Users...
You must have JazzAdmin permissions.
hi Alexandre, the user accepted this Open User suggestion. Thanks!
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.