log_time
Records hours spent on an OpenProject work package, with optional date, activity, and comment, so teams can track effort and update time entries.
Instructions
Log time spent on a work package
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"work_package_id": "<work_package_id>",
"hours": "<hours>"
},
"name": "log_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | Yes | Number of hours spent | |
| comment | No | Comment about the logged time | |
| spent_on | No | Date the time was spent in YYYY-MM-DD format (defaults to today) | |
| activity_id | No | Numeric ID of the time entry activity | |
| work_package_id | Yes | The numeric ID of the work package |