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

How to get the name of the team areas where a specific user is a member via RTCs reportable REST API?

I am trying to get the name of the team areas where a specific user is a member via RTCs (6.0.5) reportable REST API, but I fail with this error message: "Error 500: CRRED0135E: Illegal filter. The field 'foundation/teamMembers/userId' may not be used in a filter because it returns multiple values.".

My URL includes the userID: https://<ALM server>/ccm/rpt/repository/foundation?fields=foundation/teamArea[teamMembers/userId='<userID>']/name. But I get the same result if I try to use the uniqueID of the user.

Can anybody help me?

Thanks a lot,
Jochen

0 votes


Accepted answer

Permanent link
Hi Jochen,

I took a quick look at the RTC RRAPI and didn't see anything about returning a collection of team areas based on a search. But this uses the Foundation API so you could just use the teamembers collection API and pass it the URI of the team member in the main URL in the "hasMembers" parameter. You should get back some XML with all the teams that the team member belongs to. You'll need to use the team-areas-url returned from the projectareas API. For example:


Here's the Foundation API doc for the team areas collection. You might also find this CLM API landing page helpful.

- Jim
Jochen Widmaier selected this answer as the correct answer

0 votes

Comments

I struggled a little bit with the correct URLs on our side, but I managed to get it running. The only "drawback" is that I need to iterate over all available project areas, but that is manageable. Thank you.

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,937
× 479

Question asked: Oct 09 '18, 10:37 a.m.

Question was seen: 2,072 times

Last updated: Oct 10 '18, 3:11 a.m.

Confirmation Cancel Confirm