Appearance
Add a new comment to a work item with HTML content.
issue_id
Issue ID
project_id
Project ID
slug
Workspace slug
comment_json
Comment json.
comment_html
Comment html.
access
INTERNAL
EXTERNAL
external_source
External source.
external_id
External id.
parent
Parent.
projects.work_items.comments:write
curl -X POST \ "https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/comments/" \ -H "X-API-Key: $PLANE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "comment_html": "<p>Example content</p>", "external_id": "550e8400-e29b-41d4-a716-446655440000", "external_source": "github" }'
import requests response = requests.post( "https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/comments/", headers={"X-API-Key": "your-api-key"}, json={ "comment_html": "<p>Example content</p>", "external_id": "550e8400-e29b-41d4-a716-446655440000", "external_source": "github" } ) print(response.json())
const response = await fetch( "https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/comments/", { method: "POST", headers: { "X-API-Key": "your-api-key", "Content-Type": "application/json", }, body: JSON.stringify({ comment_html: "<p>Example content</p>", external_id: "550e8400-e29b-41d4-a716-446655440000", external_source: "github", }), } ); const data = await response.json();
{ "id": "550e8400-e29b-41d4-a716-446655440000", "comment_html": "<p>Example content</p>", "comment_json": { "type": "doc", "content": [ { "type": "paragraph", "content": [ { "type": "text", "text": "This issue has been resolved by implementing OAuth 2.0 flow." } ] } ] }, "actor": { "id": "550e8400-e29b-41d4-a716-446655440000", "first_name": "John", "last_name": "Doe", "display_name": "Example Name", "avatar": "https://example.com/assets/example-image.png" }, "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z" }
Create a work item comment ​
Add a new comment to a work item with HTML content.
Path Parameters ​
issue_id:requiredstringIssue ID
project_id:requiredstringProject ID
slug:requiredstringWorkspace slug
Body Parameters ​
comment_json:optionalobjectComment json.
comment_html:optionalstringComment html.
access:optionalstringINTERNAL- INTERNALEXTERNAL- EXTERNALexternal_source:optionalstringExternal source.
external_id:optionalstringExternal id.
parent:optionalstringParent.
Scopes ​
projects.work_items.comments:write