OpenProject icon

OpenProject

Consume OpenProject API

Overview

This node interacts with the OpenProject API to manage time entries among other resources. Specifically, for the Time Entry - Delete operation, it deletes a specified time entry by its ID from the OpenProject system.

Common scenarios where this node is beneficial include:

  • Automating cleanup of outdated or incorrect time entries.
  • Integrating with external systems to synchronize and remove time tracking data.
  • Managing project time logs programmatically without manual intervention.

For example, if you have a workflow that detects invalid time entries or duplicates, this node can be used to delete those entries automatically by providing their IDs.

Properties

Name Meaning
Time Entry ID The unique identifier of the time entry to delete. This is required to specify which time entry should be removed.

Output

The output JSON contains the response from the OpenProject API after attempting to delete the time entry. Typically, for a successful deletion, the API may return an empty object or confirmation details depending on the API's behavior.

Example output structure:

{
  "json": {
    // API response confirming deletion or empty object
  }
}

No binary data is output by this node.

Dependencies

  • Requires an active connection to the OpenProject API.
  • Needs an API key credential configured in n8n for authentication.
  • The base URL of the OpenProject instance must be provided in the credentials.
  • Uses HTTP Basic Authentication with the API key encoded in Base64.

Troubleshooting

  • Error: "The resource 'timeEntry' is not supported!"
    This indicates the resource parameter was set incorrectly. Ensure the resource is set to "Time Entry".

  • Error: "OpenProject error response: "
    This means the API returned an error message. Common causes include:

    • Invalid or missing Time Entry ID.
    • Insufficient permissions for the API key.
    • The time entry does not exist or has already been deleted.

    To resolve, verify the Time Entry ID is correct, check API key permissions, and confirm the time entry exists.

  • Network or Authentication Errors
    Check that the OpenProject base URL and API key are correctly configured in the node credentials.

Links and References

Discussion