It's all about the answers!

Ask a question

how to generate comments of artifatcs in RPE


Lochana R (233) | asked Aug 17 '20, 3:37 a.m.

 Hi,


I'm trying to generate all the comments of artifacts of a module inside DNG.

I have added comment datasource.

These are the below queries that I have used to generate the same.

Container 1- DNG Text "datasource/artifact/modulecontent/contextbinding"

Container 2- DNG Text "datasource/artifact/collarboration/comments"

Added data source configuration inside container 2 - gave "href.replace("/resources/", "/publish/comments?resourceURI=")" for uri in dynamic configuration

Paragraph - DNG Comments "datasource/artifact/content/comment/text"

Text - selected value as "div"

I'm not able to print the comments of the artifacts.

Please provide me the solution.

Regards,
Lochana

3 answers



permanent link
Subramanya Prasad Pilar (4.6k15) | answered Aug 17 '20, 4:11 a.m.

You can use dataSource/artifact/collaboration/comments/href as the URI for "DNG Comments" data source (dynamically configured). For "DNG Comments" data source, use the query dataSource/artifact/content/comments to print comment details (author, date, priority, etc.) and dataSource/artifact/content/comments/text to print the comment (div).


Comments
Lochana R commented Aug 17 '20, 4:31 a.m.

 Hi Subramanya,


Followed your suggestion,

Container 2- DNG Comments "datasource/artifact/collarboration/comments"
Added data source configuration inside container 2 - gave "href.replace("/resources/", "/publish/comments?resourceURI=")" for uri in dynamic configuration

I'm not able to generate.If I'm wrong please correct me.


permanent link
Bartosz Chrabski (3.4k12648) | answered Aug 17 '20, 12:15 p.m.

If you are using value from dataSource/artifact/content/comments please do not replace anything in the URL and just use it in the comments data source as it is.


permanent link
Subramanya Prasad Pilar (4.6k15) | answered Aug 17 '20, 1:02 p.m.
edited Aug 17 '20, 1:29 p.m.

It should work as is. If not, try appending &includeComments=true to the URI of DNG Comments data source.


Comments
Lochana R commented Aug 18 '20, 4:47 a.m.

Hi, 


I gave url as about.replace("/resources/", "/publish/comments?resourceURI=")

And queried out for datasource/artifact/content/comments/text

Selected value as div

I was able to generate the comments.

Thanks for the response.

Your answer


Register or 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.