It's all about the answers!

Ask a question

Report RQM Team Member Roles using RPE


Paul Hannah (155) | asked Apr 02 '19, 12:16 p.m.
edited Apr 03 '19, 5:18 a.m. by Muralidhar Rajagopal (10114)

 I am using RPE (6.0.5) to generate a Test Report from RQM (6.0.3) data. For each test case I am including details of the "Formal Review" approvals. I can output the Name, Approval Status and Date, but I also want to include details of the Role assigned to the user within the RQM project.


For the user I obtain a URI of the format: 
https://[server]:[port]/jts/resource/itemName/com.ibm.team.repository.Contributor/username

Is it possible to access and output the assigned users role information using RPE?

2 answers



permanent link
Subramanya Prasad Pilar (4.6k15) | answered Apr 05 '19, 6:43 a.m.
edited Apr 06 '19, 7:38 a.m.
You can see that role details for contributor are not exposed through RQM's reportable API and hence you cannot output the same.
However, if you are using Foundation API, you can get the role with the following request:
https://<server>:9443/ccm/rpt/repository/foundation?name=<ProjectAreaName>&fields=foundation/teamArea/roleAssignments[contributor/userId='subprasad']/(contributor/userId|contributorRoles/name)
In RPE, this can be done in 2 ways:
1. For each testcase, make additional request to foundation API and get contributor role corresponding to the userId.
2. Store contributor/userId and contributorRoles/name in a map first. Read corresponding contributorRole for each userId from the map and print. [Recommended]

permanent link
Davyd Norris (2.2k217) | answered Apr 05 '19, 10:02 p.m.
You can get these through a call to the foundation Reportable REST API if you know the Contributor id.

It will be something like:

https://[server]:[port]/qm/rpt/repository/foundation?fields=foundation/teamArea/roleAssignments[contributor/itemId='<put the id here>']/contributorRoles/name

I haven't tested this but I use something almost exactly the same to go the other way and get the team members with a specific role.

Comments
Subramanya Prasad Pilar commented Apr 06 '19, 7:39 a.m.

Thank you for this input. I've modified my answer so that other users can find it useful.

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.