Actions199
- Collections Actions
- Forms Actions
- Actions Capabilities Actions
- Activities Actions
- Attachments Actions
- Budgets Actions
- Categories Actions
- Custom Actions Actions
- Custom Options Actions
- Documents Actions
- File Links Actions
- View File Link
- Delete File Link
- Open File Link
- Download File Link
- List Project Storages
- Get Project Storage
- Open Project Storage
- Create Storage
- Get Storage
- Update Storage
- Delete Storage
- Get Storage Files
- Prepare Storage File Upload
- Create Storage Folder
- Create Storage Oauth Credentials
- Open Storage
- Create Work Package File Link
- List Work Package File Links
- Grids Actions
- Groups Actions
- Help Texts Actions
- Memberships Actions
- Query Filter Instance Schema Actions
- News Actions
- Notifications Actions
- O Auth 2 Actions
- Posts Actions
- Principals Actions
- Priorities Actions
- Query Columns Actions
- Query Filters Actions
- Query Operators Actions
- Query Sort Bys Actions
- Relations Actions
- Previewing Actions
- Revisions Actions
- Roles Actions
- Time Entries Actions
- Time Entry Activities Actions
- Types Actions
- User Preferences Actions
- Wiki Pages Actions
- Work Schedule Actions
- Meetings Actions
- Values Property Actions
- Projects Actions
- Queries Actions
- Users Actions
- Statuses Actions
- Versions Actions
- Work Packages Actions
- Get Project Work Package Collection
- Create Project Work Package
- List Work Package File Links
- Form Create Work Package In Project
- Project Available Assignees
- List Work Packages
- Create Work Package
- Form Create Work Package
- List Work Package Schemas
- View Work Package Schema
- Delete Work Package
- View Work Package
- Update Work Package
- List Work Package Activities
- Comment Work Package
- Work Package Available Assignees
- Available Projects For Work Package
- List Available Relation Candidates
- Available Watchers
- Create Work Package File Link
- Form Edit Work Package
- Revisions
- Reminders
- List Watchers
- Add Watcher
- Remove Watcher
- Views Actions
Overview
This node operation allows users to create a new time entry in the OpenProject system. It is useful for tracking work hours, logging time spent on tasks or projects, and managing ongoing time tracking activities. Typical use cases include recording billable hours, noting time spent on specific work packages, or starting/stopping timers for active work sessions.
For example, a project manager can automate the creation of time entries when team members submit their daily work logs, or a freelancer can track ongoing work time automatically by creating time entries with the "ongoing" flag set.
Properties
| Name | Meaning |
|---|---|
| Id | The unique identifier of the time entry to be created. |
| Comment | A formatted comment attached to the time entry. Supports JSON format with markdown, raw text, and HTML. |
| Spent On | The date for which the time expenditure is booked (e.g., the day the work was done). |
| Hours | The amount of time spent, expressed as a string (e.g., "2.5" for two and a half hours). |
| Ongoing | Boolean indicating whether the time entry is actively tracking time (true if timer is running). |
| Created At | Timestamp representing when the time entry was created. |
| Updated At | Timestamp representing when the time entry was last updated. |
| Links | JSON object containing related API links and actions such as self-reference, update, delete, schema, and relations to project, work package, user, and activity. |
Output
The node outputs the created time entry data in JSON format. This includes all properties sent during creation along with any additional metadata returned by the OpenProject API, such as unique identifiers, timestamps, and relational links.
If the node supports binary data output, it is not indicated here; thus, the output is purely JSON-based representing the newly created time entry.
Dependencies
- Requires an API key credential for authenticating with the OpenProject API.
- Needs the base URL of the OpenProject instance configured in the credentials.
- Depends on the OpenProject REST API endpoint for creating time entries (
POST /api/v3/time_entriesor similar). - Uses JSON content type for request and response payloads.
Troubleshooting
- Invalid or missing API credentials: Ensure that the API key and base URL are correctly configured in the node credentials.
- Incorrect date or time formats: The
spentOn,createdAt, andupdatedAtfields should follow the expected date/time format accepted by OpenProject (usually ISO 8601). Invalid formats may cause API errors. - Malformed JSON in Comment or Links: The
commentand_linksproperties expect valid JSON strings. Improper formatting will lead to parsing errors. - API endpoint errors: If the OpenProject API returns errors (e.g., 400 Bad Request, 401 Unauthorized), verify the request body matches the API schema and authentication is valid.
- Ongoing flag misuse: Setting
ongoingincorrectly might cause logical errors in time tracking. Usetrueonly when the time entry is actively tracking time.