List discussion on a task. Task-level comments are returned to everyone on the task; assignment-level threads only to that assignee and their reviewers.
List discussion on a task. Task-level comments are returned to everyone on the task; assignment-level threads only to that assignee and their reviewers.
GET
https://app.softsolz.uk/api/v1/services/tasks/tasks/{id}/commentsRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Query Params
assignment_idintegerReturn the private thread for one assignment instead of the task-level discussion.
Response
Response Body · array of objects
idintegerComment id.task_idintegerTask the comment belongs to.assignment_idinteger | nullNull means task-level and visible to everyone on the task. Set means the private thread between one assignee and their reviewers.parent_comment_idinteger | nullThe comment this replies to.author_idinteger | nullWho wrote it.bodystringThe comment text.mentionsarray of integersUser ids mentioned. Stored as rows when the comment is written, never re-parsed from the text.created_atstringWhen.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.tasks.listTaskComments('<id>', {});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": [ { "id": 0, "task_id": 0, "assignment_id": 0, "parent_comment_id": 0, "author_id": 0, "body": "string", "mentions": [], "created_at": "string" } ]}