Appearance
Creates a new comment on a work item.
workspace_slug
The workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL https://app.plane.so/my-team/projects/, the workspace slug is my-team.
https://app.plane.so/my-team/projects/
my-team
project_id
The unique identifier of the project.
work_item_id
The unique identifier for the work item.
comment_html
HTML-formatted version of the comment.
comment_json
JSON representation of the comment structure.
access
Visibility level of the comment. Possible values: INTERNAL, EXTERNAL.
INTERNAL
EXTERNAL
external_source
Identifier for the external source.
external_id
ID from the external source.
curl -X POST \ "https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/work-item-uuid/comments/" \ -H "X-API-Key: $PLANE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "comment_html": "example-comment_html", "comment_json": "example-comment_json", "access": "example-access", "external_source": "example-external_source", "external_id": "example-external_id" }'
import requests response = requests.post( "https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/work-item-uuid/comments/", headers={"X-API-Key": "your-api-key"}, json={ 'comment_html': 'example-comment_html', 'comment_json': 'example-comment_json', 'access': 'example-access', 'external_source': 'example-external_source', 'external_id': 'example-external_id' } ) print(response.json())
const response = await fetch( 'https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/work-item-uuid/comments/', { method: 'POST', headers: { 'X-API-Key': 'your-api-key', 'Content-Type': 'application/json', }, body: JSON.stringify({ comment_html: 'example-comment_html', comment_json: 'example-comment_json', access: 'example-access', external_source: 'example-external_source', external_id: 'example-external_id', }), }, ); const data = await response.json();
{ "id": "project-uuid", "name": "Project Name", "identifier": "PROJ", "description": "Project description", "created_at": "2024-01-01T00:00:00Z" }
Create a work item comment
Creates a new comment on a work item.
Path Parameters
workspace_slug:requiredstringThe workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL
https://app.plane.so/my-team/projects/, the workspace slug ismy-team.project_id:requiredstringThe unique identifier of the project.
work_item_id:requiredstringThe unique identifier for the work item.
Body Parameters
comment_html:optionalstringHTML-formatted version of the comment.
comment_json:optionalobjectJSON representation of the comment structure.
access:optionalstringVisibility level of the comment. Possible values:
INTERNAL,EXTERNAL.external_source:optionalstringIdentifier for the external source.
external_id:optionalstringID from the external source.