It's all about the answers!

Ask a question

How can I get a list of all project areas and team members using REST?


Josh Crawford (984615) | asked May 20 '13, 3:21 p.m.
 For auditing purposes I would like to get a list of all project areas for my ccm instance and a list of users who are members of the PA.  

5 answers



permanent link
Josh Crawford (984615) | answered May 20 '13, 3:23 p.m.
The following syntax will list out all of the project areas and members of that PA.  

 https://<SERVER>:<PORT>/ccm/rpt/repository/foundation?fields=foundation/projectArea/(name|teamMembers/userId)

The output will look like:



Comments
Ankit Vashistha commented Apr 04 '14, 5:37 a.m.

In my Case i am not getting the list as per the structure shown above.

In Fact it doesn't gave any data output to me related to the project team and there userid's. 


permanent link
Gayathri Vikraman (6611210) | answered Apr 04 '14, 5:23 a.m.
Along with team member User ID how to get User name and also process roles? Also the above said will give only information from project area, how to get that of team area as well?

permanent link
Brian Fleming (1.6k11928) | answered Apr 04 '14, 11:13 a.m.
Check the documentation for the Team Process REST API:
https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi

permanent link
Gayathri Vikraman (6611210) | answered Apr 04 '14, 3:55 p.m.
My motive is to get the list of all members of a project area with their process roles. I tried the below format but not able to pull the RoleAssignment details even though it is mentioned as an element under ProjectArea in the REST API

https://<server>:<port>/ccm/rpt/repository/foundation?fields=foundation/projectArea/(name|teamMembers/name|roleAssignments/contributorRoles)

Comments
Benjamin Silverman commented Apr 04 '14, 4:26 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I think you just need to add /id after contributorRoles.  That seems to work for me.

https://clmweb.ibm.com:9443/ccm/rpt/repository/foundation?fields=foundation/projectArea/(name|teamMembers/name|roleAssignments/contributorRoles/id)


permanent link
Brian Fleming (1.6k11928) | answered Apr 04 '14, 4:21 p.m.
What version of RTC are you using?  I see results using roleAssignments in a query against 4.0.6, but like you get an error against 4.0.3.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.