Team members empty in REST API
I try to get the members of a team area: https://localhost:9443/ccm/rpt/repository/foundation?fields=projectAreas/teamArea/(*)
<?xml version="1.0" encoding="UTF-8" ?>
<foundation Version="1.0.0" rel="next" href="https://localhost:9443/ccm/rpt/repository/foundation?fields=projectAreas%2FteamArea%2F%28*%29&id=_w79RUD9aEeWoevTcgzlpfw&size=100&pos=100">
<teamArea>
<uniqueId>
609677d3afe269ab6e3c4353708c60a1
<reportableUrl>
https://localhost:9443/ccm/rpt/repository/foundation/teamArea/itemId/_gmWmMDUlEeWh0aX97ZegAg
<itemType>
com.ibm.team.process.TeamArea
<stateId>
_S-CW8z9YEeWoevTcgzlpfw
<itemId>
_gmWmMDUlEeWh0aX97ZegAg
<contextId>
_SFnNkDRJEeWiwIum56MxGg
<modified>
2015-08-10T14:06:56.735+0200
<archived>
false
<name>
<modifiedBy />
<teamMembers />
<projectArea />
<qualifiedName>
<roles />
<roles />
<roles />
<roleAssignments />
<parentTeamArea />
</foundation>
Why are teamMembers and roles completely empty when actually there are users with different roles in this Team Area?
|
Accepted answer
I think there are child nodes under "teamMembers" that you have to dig into further to get the info you are looking for. Try this URL to see what I mean: https://localhost:9443/ccm/rpt/repository/foundation?fields=projectAreas/teamArea/teamMembers/(*) Fran Burgos selected this answer as the correct answer
|
One other answer
Take a look at the examples in the reportable REST API document to understand how to do field selection and filtering, and in particular how to expand child nodes. In your original URL, (*) or simple * means "all fields at this level". If you want "all fields at this level and the next level", use (*/*) or */*. If you are only interested in the details of "teamMembers" and "roles", use (*|teamMembers/*|roles/*)
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#Examples |
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.