Actions
Bug #108
opentask completion time is never updated
Status:
New
Priority:
Normal
Assignee:
-
Start date:
01/01/2026
Due date:
% Done:
0%
Estimated time:
Description
Sending a post request to update
{
"completed": true
}
only updates that field
{
"completed": true,
"completed_at": null,
"created_at": "2026-01-01T17:31:38.129044",
"description": null,
"id": 40,
"principles": [],
"project_id": null,
"tags": [],
"title": "Test task",
"updated_at": "2026-01-01T17:31:38.267634",
"user_id": 2
}
note the "completed at" field is null.
Instead of sending a post request to update, make a new endpoint, something like tasks/{{id}}/complete so the logic to complete can all go in there. Otherwise we'll have to jam additional "update this field if this" logic into the update endpoint.
Updated by Sam Pearson 20 days ago
subtasks may not be affected by this?
output from API testing:
PUT /api/projects/350/tasks/225
Request Body
{
"completed": true
}
Response Body
{
"completed": true,
"completed_at": "2026-01-02T17:34:21.451508",
"created_at": "2026-01-02T17:34:21.238112",
"description": null,
"id": 225,
"principles": [],
"project_id": 350,
"tags": [],
"title": "Test subtask",
"updated_at": "2026-01-02T17:34:21.451948",
"user_id": 2
}
Actions