Create a new comment for given task.
It requires a text, a task_status and a person as arguments. This way, comments keep history of status changes. When the comment is created, it updates the task status with given task status.
Body
person ID, name, comment, revision and change status of task
-
comment string
-
person_id string(UUID)
-
created_at string(date-time)
-
checklist object
POST /actions/tasks/{task_id}/comment
curl \
-X POST http://localhost:8080/api/actions/tasks/{task_id}/comment \
-d '{"task_status_id":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25","comment":"string","person_id":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25","created_at":"2022-07-12T13:00:00","checklist":{"item 1":"string"}}'
Request examples
{
"task_status_id": "a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25",
"comment": "string",
"person_id": "a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25",
"created_at": "2022-07-12T13:00:00",
"checklist": {
"item 1": "string"
}
}