Using the REST API to list team allocations of all users
I am trying to get a list of all the team allocations of all the users. So far I can't find any variable for doing this. I can get a list of all teams and their members:
https://SERVER:PORT/jazz/rpt/repository/foundation?fields=foundation/teamArea/(name|teamMembers/name)
However, the list of team member fields does not include any allocations. Likewise I can get a list of users:
https://SERVER:PORT/jts/rpt/repository/foundation?fields=foundation/contributor/(userId|name|archived)&size=999
But no team info is available under the "contributor" field.
Any ideas how to get team allocations from the REST API?
https://SERVER:PORT/jazz/rpt/repository/foundation?fields=foundation/teamArea/(name|teamMembers/name)
However, the list of team member fields does not include any allocations. Likewise I can get a list of users:
https://SERVER:PORT/jts/rpt/repository/foundation?fields=foundation/contributor/(userId|name|archived)&size=999
But no team info is available under the "contributor" field.
Any ideas how to get team allocations from the REST API?
Accepted answer
Hi Mike,
You can try running following query:
https://localhost:9443/ccm/service/com.ibm.team.apt.internal.service.rest.IResourcePlanningRestService/workEnvironment?contributorId=_m78fZPLBEeKEw44P0pm9CQ
This should display the data which you want to see.
Let us know if it helps for you.
Best regards,
Krzysztof Kazmierczyk
You can try running following query:
https://localhost:9443/ccm/service/com.ibm.team.apt.internal.service.rest.IResourcePlanningRestService/workEnvironment?contributorId=_m78fZPLBEeKEw44P0pm9CQ
This should display the data which you want to see.
Let us know if it helps for you.
Best regards,
Krzysztof Kazmierczyk
Comments
How do I get that to show me all the contributors instead of just one? I can't seem to get the right wildcard syntax. Is there a full list of variables for this call somewhere? I could not find one via google. The only references to "IResourcePlanningRestService" I could find were in reference to error messages.
So far I have my program load the complete list of users, then load the team allocations of each user one at a time as above. It's tedious, but it works. The last thing I need to add: user licenses. Any idea how to get license info on each user through the api?