Discussion attribute on Artifact is a collection of ConversationPost objects.
Web Services API interactive documentation allows to test queries without the overhead of making a custom grid or writing a custom javascript code. Below are two examples of queries ran directly in WS API document.
Example 1:query by Discussion.Textin WS API
(Discussion.Text contains "xyz")
The equivalent endpoint URL can be pasted in the browser after replacing <WORKSPACE_OID> with the valid ObjectID of the user's workspace:
The screenshots below illustrate a custom grid based on UserStory object. Note: ConversationPost option is not availalble on the custom grid's settings page in the Object dropdown.
This custom grid have limitations: - custom grids are limited to 200 records. If a query returns more than 200 records the custom grid will not display all of them. - it cannot return attribute of objects that are not being queried directly. If the custom grid is based on User Story object a column like ConversationPost.CreationDate is not available.
Example 5: custom app
A sample app that builds a grid of Discussions filtered by creation date (posts created in the last 30 days) with their artifact data is available from this github repo. This app is not a part of CA Agile Central App Catalog and is not formally supported by CA Agile Central.