log_time
Record hours worked on OpenProject tasks to track project time and maintain accurate work logs.
Instructions
Log time entry for 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": {
"workPackageId": "<workPackageId>",
"hours": "<hours>"
},
"name": "log_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workPackageId | Yes | Work package ID | |
| hours | Yes | Hours spent (e.g., 2 for 2 hours, 0.5 for 30 minutes) | |
| comment | No | Comment for the time entry | |
| spentOn | No | Date spent (YYYY-MM-DD), defaults to today | |
| activityId | No | Activity type ID (1=Development) |