op_log_time
Log time to a work package with decimal hours or ISO-8601 durations. See the hours ledger balance to avoid double-logging between ledgers.
Instructions
Log time against a work package. Accepts decimal hours (1.5) or an ISO-8601 duration ("PT1H30M"). The entry is always attributed to the API key's own user — OpenProject makes that field read-only, so time cannot be logged on someone else's behalf. When the local hours ledger is installed, the result includes hoursLedger (the sheet's side for this task) so double-logging across the two ledgers is visible at the moment of the write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | Yes | Decimal hours (1.5) or ISO-8601 duration ("PT1H30M"). | |
| comment | No | What the time went on. | |
| spentOn | No | YYYY-MM-DD. Defaults to today. | |
| activity | No | Activity name or id. Defaults to the instance default. | |
| workPackage | Yes | Work package id to log against. |