# List all comments for a task Required scopes: task-management:read Endpoint: GET /tasks/{id}/comments Version: v1 Security: http, oauth2 ## Path parameters: - `id` (string, required) ## Query parameters: - `find_by` (string) The field to search by Enum: "id", "uri", "external_id" - `origin` (string) Used if find_by=external_id by default it will use the integration slug - `sort` (string) Available sorts are created_at, updated_at.You can sort by multiple options by separating them with a comma. To sort in descending order, use - sign in front of the sort, for example: -title. Example: "sort=-created_at,title" - `include` (string) Available includes are parent_comment, sub_comments. You can include multiple options by separating them with a comma. - `page[size]` (integer) The number of results that will be returned per page. - `page[cursor]` (string) The cursor to start the pagination from. - `filter` (string) Allowed filter fields (with allowed operators): | Field | Type | Operators | |------|------|-----------| | sub_comments_in_list | enum:with, only, without | eq | | is_public | boolean | eq, ne, neq, isnull, isnotnull, notnull | | author.id | id | eq, ne, neq, in, nin, notin, isnull, isnotnull, notnull | | author.email | string | in, nin, notin, eq, ne, neq, contains, like, startswith, endswith, isnull, isnotnull, notnull | | author.type | enum | eq, ne, neq, in, nin, notin, isnull, isnotnull, notnull | | parent_comment.id | id | eq, ne, neq, in, nin, notin, isnull, isnotnull, notnull | | sub_comments | Relation - title (string) - uri (string) - status (enum) | any, none, count, all | Filtering expression. Accepts either JSON (array/tree of conditions) or a readable string DSL. You can check the full syntax at Docs Filtering section. Special values: - me.id — current authenticated user id (usable on fields of type id). Example: id eq me.id - now — current date-time. Example: dueOn lt now - sow/eow — start/end of week. Examples: dueOn gt sow, dueOn lt eow - som/eom — start/end of month. Examples: dueOn gt som, dueOn lt eom - today — special date for today; with eq it expands to the whole day range. Example: dueOn eq today - today±Nd — relative day offset. Examples: today-30d, today+5d. Example: "title contains \"Acme\" and (created_at >= \"2024-01-01\" or client.name contains \"Corp\")" ## Response 200 fields (application/json): - `data` (array, required) The list of items - `data.id` (string, required) - `data.external_id` (string,null, required) - `data.external_origin` (string,null, required) If originated from external system origin is added - `data.parent_comment_id` (string,null, required) - `data.parent_comment` (any) - `data.task` (any) - `data.sub_comments` (array, required) - `data.author` (object, required) - `data.author.first_name` (string, required) - `data.author.last_name` (string, required) - `data.author.email` (string, required) - `data.author.type` (string, required) Enum: "user", "guest", "tax_advisor", "integration" - `data.author.space` (object, required) - `data.author.space.name` (string, required) - `data.comment` (string,null, required) - `data.attachements` (array, required) - `data.attachements.file_name` (string, required) - `data.attachements.mime_type` (string, required) - `data.attachements.size` (integer, required) File size in bytes - `data.attachements.entity_id` (string, required) ID of the entity that the file belongs to - `data.attachements.entity_type` (string, required) Type of the entity that the file belongs to - `data.attachements.created_at` (string, required) - `data.is_public` (boolean, required) If false, the task is only visible to the project team - not guest users - `data.updated_at` (string,null, required) - `links` (array, required) - `meta` (object, required) - `meta.path` (string,null, required) Base path for paginator generated URLs. - `meta.per_page` (integer, required) Number of items shown per page. - `meta.next_cursor` (string,null, required) - `meta.next_cursor_url` (string,null, required) - `meta.prev_cursor` (string,null, required) - `meta.prev_cursor_url` (string,null, required) ## Response 401 fields (application/json): - `message` (string, required) Error overview. ## Response 422 fields (application/json): - `message` (string, required) Errors overview. - `errors` (object, required) A detailed description of each field that failed validation.