create_time_entry
Log work hours in OpenProject by specifying activity, spent date, and optional project, work package, start time, or comment. Preview the entry before confirming.
Instructions
Create a time entry.
hours accepts an ISO8601 duration string (e.g., 'PT8H' for 8 hours, 'P1D' for 1 day). start_time is an ISO 8601 date-time and requires the instance setting "allow tracking of start and end times"; ignored otherwise. No end_time parameter -- OpenProject derives it read-only from start_time + hours. Use create_time_entry_until to specify an end time instead of hours directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | ||
| hours | Yes | ||
| comment | No | ||
| confirm | No | false: preview only, nothing changes. true: applies it; get the user's approval of the preview first. | |
| ongoing | No | ||
| project | No | Project identifier, id, or name; a unique part of a name or identifier also matches. | |
| activity | Yes | ||
| spent_on | Yes | ||
| start_time | No | ||
| work_package_id | No | Work package id (e.g. 952) or display id (e.g. "PROJ-51"), not the bare number 51. |