Retrieve one comment by id. Use it to re-read a comment you created or updated, or to check edited_at before overwriting a body you did not write.
The comment is looked up within the work item in the path. A comment id that belongs to a different work item is not reachable here and returns 404 not_found, the same as an id that does not exist.
Comma-separated list of fields to return. Fields you don't request are left out of the response instead of coming back as null, so a missing key means you didn't ask for it and null means the value is null. id is always included, whether or not you name it.
Pass all to get every requestable field. An unknown field name returns 400 with the list of valid names and the closest match, so a typo is caught instead of being silently ignored.
Comma-separated relations to embed alongside the ids: actor (the comment author).
Expanded objects get their own key: ?expand=state keeps state_id and adds a state object next to it, so an id is never replaced by an object. An unknown value returns 400.
?fields= and ?expand= take separate sets of names. Relation names aren't valid in ?fields=, field names aren't valid in ?expand=, and field filtering never removes an expanded object: ?fields=id,name&expand=state returns id, name and state. See Expanding relations.
Get a comment
Retrieve one comment by id. Use it to re-read a comment you created or updated, or to check
edited_atbefore overwriting a body you did not write.The comment is looked up within the work item in the path. A comment id that belongs to a different work item is not reachable here and returns
404 not_found, the same as an id that does not exist.Path parameters
slug:requiredstringThe workspace slug. It appears in your Plane URLs. In
https://app.plane.so/my-team/projects/, the slug ismy-team.project_id:requiredstring (uuid)The project the work item belongs to.
work_item_id:requiredstring (uuid)The work item the comment is attached to.
pk:requiredstring (uuid)The comment to retrieve.
Response shaping
fields:optionalstringComma-separated list of fields to return. Fields you don't request are left out of the response instead of coming back as
null, so a missing key means you didn't ask for it andnullmeans the value is null.idis always included, whether or not you name it.Pass
allto get every requestable field. An unknown field name returns400with the list of valid names and the closest match, so a typo is caught instead of being silently ignored.Requestable here:
access,actor_id,comment_html,comment_stripped,created_at,created_by_id,edited_at,external_id,external_source,hidden_at,hidden_by_id,hidden_reason,id,parent_id,updated_at,updated_by_id,work_item_id.See Sparse fields.
expand:optionalstringComma-separated relations to embed alongside the ids:
actor(the comment author).Expanded objects get their own key:
?expand=statekeepsstate_idand adds astateobject next to it, so an id is never replaced by an object. An unknown value returns400.?fields=and?expand=take separate sets of names. Relation names aren't valid in?fields=, field names aren't valid in?expand=, and field filtering never removes an expanded object:?fields=id,name&expand=statereturnsid,nameandstate. See Expanding relations.Scopes
projects.work_items.comments:readErrors
401unauthorized402payment_required403forbidden404not_found406not_acceptableAcceptheader asks for a representation the API can't produce.429rate_limitedRetry-Afterheader before retrying.