Get a list of comments for a task


GET /api/project/:projectId/task/:taskId/comment/in_tree

Returns a list of comments for a given task.

Endpoint URL

https://<space_id>.repsona.com/api/project/:projectId/task/:taskId/comment/in_tree

Authorization

Owner Admin Member

Path parameters

NameTypeDescription
projectId*stringProject ID
taskId*stringTask ID

Example responses

{
  "requestedBy": 1,
  "project": 1,
  "taskComments": [
    {
      "files": [],
      "createdAt": 1672498800000,
      "updatedAt": 1672498800000,
      "id": 1746,
      "deletedAt": null,
      "comment": "I'll try.",
      "space": 1,
      "user": {
        "id": 1746,
        "name": "Seb",
        "fullName": "Seb Osborn",
        "avatarUrl": "/dummy/avatar2.png",
        "extra": null
      },
      "parent": null,
      "task": 2,
      "children": [
        {
          "files": [],
          "createdAt": 1672498800000,
          "updatedAt": 1672498800000,
          "id": 1746,
          "deletedAt": null,
          "comment": "What do you think?",
          "space": 1,
          "user": {
            "id": 1746,
            "name": "Rita",
            "fullName": "Rita Hurst",
            "avatarUrl": "/dummy/avatar5.png",
            "extra": null
          },
          "parent": 5,
          "task": 2,
          "children": [
            {
              "files": [],
              "createdAt": 1672498800000,
              "updatedAt": 1672498800000,
              "id": 1746,
              "deletedAt": null,
              "comment": "I think it's good.",
              "space": 1,
              "user": {
                "id": 1746,
                "name": "Joel",
                "fullName": "Joel Blackburn",
                "avatarUrl": "/dummy/avatar6.png",
                "extra": null
              },
              "parent": 8,
              "task": 2,
              "children": []
            }
          ]
        }
      ]
    }
  ]
}

Human-centered, best team!

Repsona is an ideal work management tool for your team
Get started for free