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>
</teamArea>
<uniqueId>
</uniqueId>
609677d3afe269ab6e3c4353708c60a1
<reportableUrl>
</reportableUrl>
https://localhost:9443/ccm/rpt/repository/foundation/teamArea/itemId/_gmWmMDUlEeWh0aX97ZegAg
<itemType>
</itemType>
com.ibm.team.process.TeamArea
<stateId>
</stateId>
_S-CW8z9YEeWoevTcgzlpfw
<itemId>
</itemId>
_gmWmMDUlEeWh0aX97ZegAg
<contextId>
</contextId>
_SFnNkDRJEeWiwIum56MxGg
<modified>
</modified>
2015-08-10T14:06:56.735+0200
<archived>
</archived>
false
<name>
Entidades</name>
<modifiedBy />
<teamMembers />
<projectArea />
<qualifiedName>
/Entidades</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/(*)
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
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#Examples