Get task comments
Task Comments
Get Task Comments
Retrieve all comments for a specific task in descending order (newest first)
GET
Get task comments
Overview
Retrieve all comments for a specific task. Comments are returned in descending order (newest first) with relative timestamps based on the user’s timezone.Path Parameters
The unique identifier of the task to retrieve comments for.Example:
456Response
Returns an array of comment objects.The unique identifier of the comment.
The ID of the task this comment belongs to.
Reference ID (same as task_id).
The ID of the user who created the comment.
The ID of the team.
The comment text.
The type of comment.
Reaction data object containing reaction counts and users.
Array of users who reacted to this comment (extracted from reaction object for convenience).
Human-readable relative time since the comment was posted.Formats:
"X second ago"- Less than 1 minute"X minutes ago"- 1 minute to 1 hour"X hours X minutes ago"- 1 hour to 12 hours"DD/MMM/YYYY HH:MM AM/PM"- More than 12 hours
The timestamp when the comment was created (ISO 8601 format).
The timestamp when the comment was last updated (ISO 8601 format).
Example Request
Example Request (JavaScript)
Example Response
Example Response - Empty Comments
Time Display Format
Thetime field is calculated based on the user’s timezone and displays in the following formats:
| Time Elapsed | Format | Example |
|---|---|---|
| Less than 1 minute | X second ago | "30 second ago" |
| 1 minute to 1 hour | X minutes ago | "15 minutes ago" |
| 1 hour to 12 hours | X hours X minutes ago | "2 hours 30 minutes ago" |
| More than 12 hours | DD/MMM/YYYY HH:MM AM/PM | "27/Nov/2025 15:30 PM" |
Error Responses
Notes
- Timezone awareness: All timestamps are converted to the user’s timezone for display
- Descending order: Comments are returned with the newest first (DESC order by ID)
- Empty arrays: If a task has no comments, an empty array
[]is returned - Reaction data: Each comment includes full reaction data and a convenient
reactedUsersarray - HTML support: Comments may contain HTML formatting
- Relative time: The
timefield provides human-readable timestamps - User timezone: Timestamps are automatically adjusted to match the authenticated user’s timezone setting
- No pagination: All comments are returned in a single response (consider pagination for tasks with many comments)
Use Cases
- Display comment history: Show all discussion on a task
- Track updates: See who commented and when
- Review reactions: Check which comments received reactions
- Timeline view: Build a timeline of task discussions
- Notification context: Provide context for comment notifications
Best Practices
- Cache comment data when possible to reduce API calls
- Refresh comment list after adding/updating/deleting comments
- Display reactions inline for better user engagement
- Consider implementing pagination for tasks with many comments
- Handle empty comment arrays gracefully in your UI
- Use the
timefield for display, butcreated_atfor sorting/filtering
Related Endpoints
- Add Comment - Add a new comment to a task
- Update Comment - Edit an existing comment
- Delete Comment - Remove a comment
- Add Reaction - React to a comment
- Get Task - Retrieve task details