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

scm code review export when only Change set linked to Workitem

Hello Team,
i am using scm code review export functionality part of SCM Tools for getting Code issues findings,approval status and others.

1. i have associated a Change set to Workitem (Using Submitting for Review window) without selecting the "Target Stream".
2. Ran scm export code-review for above said workitem.

Response:
- JSON response doesnt contain Change Set information at all.

My query is below,
1. Why JSON Response doesnt show Change set information.
2. Once i set Target Stream and run the scm command then JSON Response shows Change set information.
why is this behaviour?

Thanks


0 votes


Accepted answer

Permanent link

Exporting code review only makes sense when the target stream is set because you are reviewing the changes against that of the stream. The right thing to do is to show a message indicating that the code review has not been initiated or probably inform that the target stream is not set.

vinitha dsouza selected this answer as the correct answer

0 votes

Comments
In terms of implementation, the ICodeReview object is only created and associated to the work item once the Target Stream is set. The 'export code-review' command will try to find the associated ICodeReview objects of the workitem, and then dump JSON/XML data related to that (which includes the list of change sets the code review currently knows about). So that is why the output does not contain anything useful (because there is no Code Review yet). The Web UI indicates the requirements to start a code review:
-change sets associated to the work item
-closed/completed change sets
-setting a target stream

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,948

Question asked: Nov 09 '17, 9:11 a.m.

Question was seen: 2,219 times

Last updated: Jan 11 '19, 3:49 p.m.

Confirmation Cancel Confirm