Code Review Findings, Approvals using Java APIs
vinitha dsouza (147●1●23●136)
| asked Nov 16 '17, 2:19 a.m.
retagged Jan 25 '19, 10:16 a.m. by Ken Tessier (841●1●7) Hello Team,
|
Accepted answer
David Lafreniere (4.8k●7)
| answered Jan 11 '19, 3:39 p.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Jan 11 '19, 3:41 p.m.
The easiest way to get information on Code Review (the number of issues and their states) run the 'export code-review' CLI command. This can generate a full XML or JSON report which you can then parse as you wish.
Example:
To write output to a JSON file for code review work items that result from a work item query, create a work item query that displays the work items that you want the code review data for and use the work item query ID in the export code-review command. For example, in work item query https://example:9443/ccm/web/projects/#action=com.ibm.team.workitem.runSavedQuery&id=_UU6RMMqrEeWW1pjuq1MlnQ, the query ID is _UU6RMMqrEeWW1pjuq1MlnQ. Use the query ID in the command to export the work items to the file. For example: scm export code-review -r kg --json _UU6RMMqrEeWW1pjuq1MlnQ queryResult.json
The output is written to queryResult.json.
Otherwise, in terms of Java API, see ICodeReviewService
Ralph Schoon selected this answer as the correct answer
|
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.