The REST API > How to... > Working with comments > GET: Read a comment

GET: Read a comment

The comment instance is represented by data in JSON format.

To get the entity ID, first read all instances and locate the desired entity.

Note: When GETting instances, the REST API does not necessarily display all fields for the instance. For a complete list of available fields, see Retrieving metadata about entities and fields.

For performance optimization, when GETting entities, comments are not included in the response. To see a list of comment IDs and types, you have to explicitly request them using the fields clause.

GET .../api/shared_spaces/<shared_space_id>/workspaces/<workspace_id>/defects&fields=comments