It's all about the answers!

Ask a question

Using the REST API to list team allocations of all users


Mike Shkolnik (9809161143) | asked Jul 24 '13, 7:41 p.m.
edited Jul 25 '13, 1:22 p.m.
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?

Accepted answer


permanent link
Krzysztof Kaźmierczyk (7.5k480103) | answered Jul 25 '13, 4:15 a.m.
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
Mike Shkolnik selected this answer as the correct answer

Comments
Mike Shkolnik commented Jul 25 '13, 4:36 p.m.

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.


Mike Shkolnik commented Sep 04 '13, 5:29 p.m.

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?

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.