Can we show all comments for a work item in a single report.
Accepted answer
/ccm/rpt/repository/workitem?fields=workitem/workItem[id=67]/(id|summary|commentCount|comments/*)
Comments
Hello Donald,
Not sure why you got to "download" the output. The URL should display content in XML format in your browser (IE, Firefox or Chrome). Since it's in XML format, you will need to use other tools, such as RPE, to make it into a pretty and readable "report" format.
still not able to read that file....
Can't really help any further if you don't give more details of what you're doing, since it works for me without much extra settings.
Actually....
You still did not tell us what "report" it was. But if it was a report based on a work item query, then the answer is no - you can only show the last comment. If you run a work item query with the "comments" attribute added as a column to display, the column title will clearly say "last comment".
Ohhhh....
Donald,
If you just want comments only, change the field selection from "(id|summary|commentCount|comments/) to "(comments/) in the REST URL (in my original answer).
If you want to transform the XML content into a "report" format, you need a separate tool such as Rational Publishing Engine - the browser does not do that.
http://www-03.ibm.com/software/products/en/ratipublengi
Thank you Donald,
2 other answers
i am searching for you in rtc in this topic:
query give just last comment. but maybe you can try reports menu in rtc.
Comments
Yes Hakki, Reports in RTC only shows latest comment , but the customer requires to see all the comments in a single report.
Hi Ashok,
I did more research on this topic. I think its will cover what you want.
please check the linked image. http://prntscr.com/7ob1ib
we see just lastest comment in query b'cas its must be has little area i think.
but can i click "view full result set in printable format" button (top right corner in the page) i can see all comment for each workitems.
I hope its usefull for you. Thanks.
Yes Hakki.
Yes we can get whole comments from work item through Query. When exporting query results to CSV then you have to select required fields including with Comment field. It will import all the comments from work item in CSV but it will visible only latest comment if you see on spreadsheet. But if you double click on it then will show the whole comments
Hope this information will help you :)