export code-review example

export code-review example.

Examples

To export the code review data to a JSON file for 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 code review data of the work items to a file. For example:

scm export code-review -r kg --json --queryId _UU6RMMqrEeWW1pjuq1MlnQ queryResult.json

The output is written to queryResult.json.

You can also use the work item IDs to export the code review data for the list of work items to a file. For example:

scm export code-review -r kg --json --workitemIds 1243,1376,2241 exportResult.json

The work item IDs must be separated by commas, without spaces.

The output is written to exportResult.json.


video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki