Report RQM Team Member Roles using RPE
Paul Hannah (15●5)
| asked Apr 02 '19, 12:16 p.m.
edited Apr 03 '19, 5:18 a.m. by Muralidhar Rajagopal (101●1●4) 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
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]
|
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
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.