Export review comments from DNG review
I have created a DNG review and I have added a module to be reviewed. Then I have added the reviewers and I set it of to review the module and all the artifacts within the module.
How can I export the review comments on the individual artifacts that the reviewers have introduced? DNG shows that are review comments against the artifacts you can reply to the comments but when you try to produce a reports those comments do not come out.
If it is not possible in DNG directly can it be done in RPE? I have been trying with RPE but I cannot get the REST api to get the specific comments out.
We are using JTS 6.0.6 and RPE 7.0.2
Kind regards,
Costas
Accepted answer
For anyone else having the same issue I have raised a case with IBM, so if you want to get the review comment from the module artifact then you need to create a template that the data source is a review and you pass that the review information as
https://<server:port>/rm/publish/reviews?resourceURI=<reviewUUID>
With https://<server:port>/rm/publish/reviews?metadata=schema as schema for the review
Then by going through the attached artifacts of the review when you find the module that you need you can reconfigure the module data source with a dynamic configuration element.
Then you can get the artifacts of the module and reconfigure a comment data source with schema https://<server:port>/rm/publish/comments?metadata=schema
The URI that you need to pass in the comments data source is of the following form:
https://<server:port>/rm/publish/comments?resourceURI=<artifactUUID>&artifactReviewUri=<ReviewURI>;
where artifactUUID can be taken from the about of the context binding from the module data source and the review URI constructed from the initial review data source in the form of https://<server:port>/rm/reviews/<ReviewUUID>
Kind regards,
Costas
4 other answers
Have you used the Reviews report built into DNG? You can use that report to produce a detailed summary for a Review, including comments.
The report is available from the menu in the top right of the Review
Comments
Hi Costas,
thanks for your answer regarding the export of review comments from DNG review.
How can I insert an appropriate data source schema for the Review and the artifact Review Comments into the Rational Publishing Engine template (.dta file) or where can I get an appropriate data source schema.
Is there a sample .dta file for this?
Kind regards,
Martin
Comments
Hi Costas,
in the document studio (Data > Add Data Source Schema ) there is no predefined data source schema for "Reviews" and "Comments" (only DNG Text and DNG Module).
Did you use the schema discovery (Data > Schema Discovery > REST Schema Discovery) to get the two schemas (https://<server:port>/rm/publish/reviews?metadata=schema and https://<server:port>/rm/publish/comments?metadata=schema) into the document studio?
Kind regards,
Martin
Hi Costas,
thank you very much for your answer and your help.
I have now implemented everything so far.
To export only the comments that are review comments (and not the normal artifact comments) I check the review ID of the corresponding comment.
But now I ran into the following problem:
The order of the comments seems to be not correct anymore. So if an artifact has multiple comments, then the comments and the replies to the comments do not occur in the correct order. Do you know about this problem?
Kind regards,
Martin