Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes


Accepted answer

Permanent link
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

1 vote

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?

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 478

Question asked: Jul 24 '13, 7:41 p.m.

Question was seen: 5,835 times

Last updated: Sep 04 '13, 5:29 p.m.

Confirmation Cancel Confirm