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

how to generate comments of artifatcs in RPE

 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

0 votes



3 answers

Permanent link

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).

0 votes

Comments

 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

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.

0 votes


Permanent link

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

0 votes

Comments

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

Question asked: Aug 17 '20, 3:37 a.m.

Question was seen: 1,490 times

Last updated: Jan 09 '23, 9:53 p.m.

Confirmation Cancel Confirm