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

A proper way to get all the comments directed to the current user on DNG

Hello,

 We are trying to build a widget for all comments directed to the current user. The purpose of this widget will be that the curent user will have all comments directed to him on one place. The comments will be from all project areas the current user is involve. This will be the main diference between the current widget „Comments” and the one we want to build. In the current „Comments” widget the area where the comments are coming is very limited, you need to select the project area, the configuration and a specific component and also in the current widget the comments are disappearing after a while we also want to keep the comments in the widget as long as the user wants.

For the implemetantion of this widget we tried to use DNGReportableRestAPI to get the comments but the problem with this API is that you need to make a request for every module/collection or specific artifact and for the widget we try to build way to many request are necessary to get all the comments. This will be damaging for the widget loading time but also for the server.

After this we tried to use the stored query that the current „Comments” widget use this was an improvment because we only need to make one request for every componet, but the problem with the stored query is that the comments are stored just for a limited time.

So our question is if there is a way to get all the comments for the curent user apart from the api mentioned before or the stored query that the other widget use. Maybe there is an existing query that is not limited to recent comments.

0 votes



One answer

Permanent link

 The other service i know apart from the DNGReportableRestAPI is the comments service, but seems to be a little limited, for example it is used like this to retrieve a review's comments



or like this to get the comments for a single artifact


so probably the best way keeps being the Publish API, and probably adding some filters to your widget to retrieve the comments per project/configuration/artifact basis

0 votes

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,927
× 139
× 115
× 84

Question asked: Sep 16 '21, 6:53 a.m.

Question was seen: 2,142 times

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

Confirmation Cancel Confirm