Task comments, page links and blockers (API)
Around each task sit three kinds of relations an integration often writes: comments (for example “Invoice 2026/114 paid” from your ERP), links to docs pages (the contract or the spec), and blockers (task A must finish before task B). This page covers all three, plus the task’s activity history (who changed what, and when).
Scope: reading needs tasks:read; writing needs tasks:write. Linking a page also needs edit access to that page. A blocker between two projects needs access to both.
Comments
Section titled “Comments”The comment object
Section titled “The comment object”{ "id": "3d4e5f60-7a8b-4c9d-8e0f-1a2b3c4d5e6f", "taskId": "7c3e9a15-2d4f-4b6a-9e8c-1f3a5b7d9e20", "authorId": "2c9a7f41-5b3e-4d1a-8f20-7e6b5c4d3a21", "content": "Invoice 2026/114 paid in full.", "parentCommentId": null, "createdAt": "2026-11-14T07:45:00Z", "editedAt": null, "deletedAt": null, "via": { "kind": "pat", "name": "ERP sync" }}contentis plain text or a rich-text document string (see Rich text).parentCommentIdis set on a reply. Replies are one level deep.deletedAtis set on a deleted comment, which stays in the list as a placeholder so its replies keep their place.viais set when an AI app or a personal token with AI scopes wrote it;nameis the app’s or token’s name. It’snullfor comments people wrote in the app, and for comments written with an integration account’s token — those show the account as the author (authorId).
List a task’s comments
Section titled “List a task’s comments”GET /api/v1/tasks/{taskId}/comments — Scope: tasks:read. Paged, oldest first; default 50, at most 100 top-level comments per page, each with its replies.
curl -G https://acme.sofiaspace.uz/api/v1/tasks/7c3e9a15-2d4f-4b6a-9e8c-1f3a5b7d9e20/comments \ -H "Authorization: Bearer $SOFIA_TOKEN" \ --data-urlencode "limit=50"{ "comments": [ { "id": "3d4e5f60-7a8b-4c9d-8e0f-1a2b3c4d5e6f", "content": "Invoice 2026/114 paid in full.", "parentCommentId": null } ], "nextCursor": null, "hasMore": false}Post a comment or a reply
Section titled “Post a comment or a reply”POST /api/v1/tasks/{taskId}/comments — Scope: tasks:write. Returns 201 and the comment.
| Field | Required | Meaning |
|---|---|---|
content |
yes | Up to 40,000 characters |
parentCommentId |
no | Reply to this top-level comment |
curl -X POST https://acme.sofiaspace.uz/api/v1/tasks/7c3e9a15-2d4f-4b6a-9e8c-1f3a5b7d9e20/comments \ -H "Authorization: Bearer $SOFIA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"content":"Invoice 2026/114 paid in full."}'Errors: 400 COMMENT_EMPTY, 400 COMMENT_REPLY_DEPTH (reply to a reply), 400 TEXT_TOO_LONG or TEXT_TOO_LARGE, 403 when your project role can only view and the project has Viewers can comment off, 429 over 60 comments a minute. Posting is not idempotent: a retry posts again.
Edit a comment
Section titled “Edit a comment”PUT /api/v1/task-comments/{commentId} — Scope: tasks:write. Body {"content": "…"}. Only the comment’s author can edit it; returns the comment with editedAt set.
Read a task’s activity history
Section titled “Read a task’s activity history”GET /api/v1/tasks/{taskId}/activity — Scope: tasks:read. The task’s change history, as on its History tab in the app: one entry per changed field, newest first. You need to be able to open the task’s project.
It is paged like other lists: limit (default 50, at most 100) and cursor (the nextCursor of the previous page). See Pagination.
curl -G https://acme.sofiaspace.uz/api/v1/tasks/7c3e9a15-2d4f-4b6a-9e8c-1f3a5b7d9e20/activity \ -H "Authorization: Bearer $SOFIA_TOKEN" \ --data-urlencode "limit=20"{ "entries": [ { "id": "5c7e9a1b-3d5f-4b7a-8c9e-1f3b5d7a9c02", "taskId": "7c3e9a15-2d4f-4b6a-9e8c-1f3a5b7d9e20", "actorId": "2c9a7f41-5b3e-4d1a-8f20-7e6b5c4d3a21", "eventType": "status_changed", "details": { "from": "To Do", "to": "In Progress", "fromId": "5a2b3c4d-6e7f-4a81-9b0c-1d2e3f4a5b61", "toId": "6b3c4d5e-7f80-4b92-8c1d-2e3f4a5b6c72" }, "createdAt": "2026-11-13T14:02:11Z" }, { "id": "4b6d8f0a-2c4e-4a6b-9d8f-0e2a4c6e8b11", "taskId": "7c3e9a15-2d4f-4b6a-9e8c-1f3a5b7d9e20", "actorId": "2c9a7f41-5b3e-4d1a-8f20-7e6b5c4d3a21", "eventType": "due_date_changed", "details": { "from": "2026-11-20", "to": "2026-11-25" }, "createdAt": "2026-11-13T09:40:00Z" } ], "nextCursor": "MjAyNi0xMS0xM1QwOTo0MDowMFp8NGI2ZDhmMGE", "hasMore": true}actorIdis who made the change; turn it into a name with Turn user IDs into names.eventTypeis one ofstatus_changed,assignee_changed,title_changed,description_changed,priority_changed,story_points_changed,start_date_changed,due_date_changed,team_changed,component_changed,parent_changed,epic_changed,initiative_changed,sprint_changed,label_added,label_removed,custom_field_changed,archivedorunarchived. New types may be added; skip ones you don’t know.detailsholds what changed, usuallyfromandto. A status change also givesfromIdandtoId; an assignee change gives user IDs; a label change giveslabel(its name). A description change has emptydetails: the text isn’t repeated.- Comments aren’t in this list; list them separately. For a whole project’s recent activity, see Projects.
Errors: 404 NOT_FOUND for no such task, 403 when you can’t open its project, 400 CURSOR_INVALID for a damaged cursor.
Links to docs pages
Section titled “Links to docs pages”A task can link to docs pages — the contract, the spec, the meeting notes. The link shows on both the task and the page.
List the pages linked to a task
Section titled “List the pages linked to a task”GET /api/v1/tasks/{taskId}/links — Scope: tasks:read.
{ "docs": [ { "pageId": "0e2c4a6f-8b1d-4e3a-9c5f-7a9b1d3f5e81", "title": "Contract 2026/114", "spaceKey": "OPS" } ]}Link a page
Section titled “Link a page”POST /api/v1/tasks/{taskId}/links — Scope: tasks:write, and you must be able to edit the page. Body {"docPageId": "…"}. 204 on success.
curl -X POST https://acme.sofiaspace.uz/api/v1/tasks/7c3e9a15-2d4f-4b6a-9e8c-1f3a5b7d9e20/links \ -H "Authorization: Bearer $SOFIA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"docPageId":"0e2c4a6f-8b1d-4e3a-9c5f-7a9b1d3f5e81"}'Remove a link
Section titled “Remove a link”DELETE /api/v1/tasks/{taskId}/links/{docPageId} — Scope: tasks:write. 204. Only the link goes; the page stays.
Blockers
Section titled “Blockers”“Task A blocks task B” means B can’t be finished until A is. In the API you record it on the blocking task (A). The two tasks can be in different projects of the same workspace; you need access to both projects.
Add a blocker
Section titled “Add a blocker”POST /api/v1/tasks/{taskId}/blocks — Scope: tasks:write. {taskId} is the blocking task; the body names the blocked one. 204 on success.
Example — the server set-up OPS-7 (9a8b7c6d-…) must finish before onboarding SALES-42 can be done:
curl -X POST https://acme.sofiaspace.uz/api/v1/tasks/9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d/blocks \ -H "Authorization: Bearer $SOFIA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"blockedTaskId":"7c3e9a15-2d4f-4b6a-9e8c-1f3a5b7d9e20"}'Errors:
| Status | code |
Why |
|---|---|---|
400 |
TASK_BLOCKS_SELF |
A task can’t block itself |
400 |
TASK_BLOCK_EXISTS |
That blocker is already recorded |
400 |
BLOCKER_LOOP |
It would make a loop: the blocking task already waits, directly or through other tasks, on the one it would block. Neither could ever be finished first |
400 |
TASKS_DIFFERENT_WORKSPACE |
The two tasks are in different workspaces |
403 |
PERMISSION_DENIED |
You can’t open one of the two projects |
404 |
NOT_FOUND |
No such task |
Remove a blocker
Section titled “Remove a blocker”DELETE /api/v1/tasks/{blockingTaskId}/blocks/{blockedTaskId} — Scope: tasks:write. 204. Same access as adding one: both projects, except a side whose project has been deleted. Removing a blocker that isn’t there still answers 204.
Read blockers
Section titled “Read blockers”There is no separate list: get the task and read
blockedBy— tasks that block this one, each withid,taskNumber,title,statusId,projectId,projectKey,doneandstatusName;blocks— tasks this one blocks;hiddenOpenBlockers/hiddenBlocks— how many are in projects you can’t open. They’re counted, never named.
"blockedBy": [ { "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", "taskNumber": 7, "title": "Set up customer server", "statusId": "5a2b3c4d-6e7f-4a81-9b0c-1d2e3f4a5b61", "projectId": "c0d1e2f3-a4b5-4c6d-8e7f-9a0b1c2d3e4f", "projectKey": "OPS", "done": false, "statusName": "In Progress" }]List what holds an epic back
Section titled “List what holds an epic back”GET /api/v1/tasks/{epicId}/epic-blockers — Scope: tasks:read. The epic’s outside blockers: unfinished tasks from any project of the workspace that are neither the epic nor under it, but block the epic or a task under it. Each comes with the tasks it holds up. You need to be able to open the epic’s project.
curl https://acme.sofiaspace.uz/api/v1/tasks/2e4a6c8f-0b1d-4f3a-8c5e-7a9b1d3f5c80/epic-blockers \ -H "Authorization: Bearer $SOFIA_TOKEN"{ "blockers": [ { "blocker": { "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d", "taskNumber": 7, "title": "Set up customer server", "statusId": "5a2b3c4d-6e7f-4a81-9b0c-1d2e3f4a5b61", "projectId": "c0d1e2f3-a4b5-4c6d-8e7f-9a0b1c2d3e4f", "projectKey": "OPS", "done": false, "statusName": "In Progress" }, "blocked": [ { "id": "7c3e9a15-2d4f-4b6a-9e8c-1f3a5b7d9e20", "taskNumber": 42, "title": "Onboard new customer (deal #1042)", "statusId": "5a2b3c4d-6e7f-4a81-9b0c-1d2e3f4a5b61", "projectId": "9d2e7a10-4b6c-4e8f-a1d3-5c7e9b2f4a68", "projectKey": "SALES", "done": false, "statusName": "To Do" } ] } ], "hiddenCount": 1}blockeris the outside task;blockedlists the epic and the tasks under it that it holds up. Both use the shape ofblockedByabove.hiddenCountis how many outside blockers are in projects you can’t open. They’re counted, never named.- Blockers that are already done aren’t listed.
Errors: 404 NOT_FOUND for no such task, 403 when you can’t open its project.
What a blocker does
Section titled “What a blocker does”Moving the blocked task to a done status while a blocker is unfinished is refused with 409 and "error": "BLOCKED_BY_INCOMPLETE_TASK" when the blocker is in the same project. For a blocker in another project, it depends on the blocked task’s project (its crossProjectBlockerGate, see Get a project): with Warn (WARN, the default) the move goes through; with Block (BLOCK) it’s refused the same way. A blocker in a deleted project never stops a move. See Dependencies.
When the last unfinished blocker of a task is done, its assignee gets a notification.
What you can’t do with the API
Section titled “What you can’t do with the API”- You can’t delete comments with a token:
DELETE /api/v1/task-comments/{commentId}answers403with"error": "SIGNED_IN_APP_ONLY". Delete them in the app, or from an AI app you signed in to through the Sofia Space MCP server. - You can’t edit someone else’s comment.
- You can’t list the tasks linked to a page from the page’s side.
- You can’t change a project’s cross-project blocker setting with a token; a project admin sets it in the app.
Related
Section titled “Related”- Tasks
- Spaces and pages
- Dependencies — blockers in the app
- Comments and activity