OpenProject icon

OpenProject

Interact with OpenProject via API

Actions199

Overview

This node operation lists all attachments associated with a specific work package in OpenProject. It is useful when you need to retrieve and review files or documents linked to a particular work package, such as project plans, specifications, or related resources. For example, a project manager might use this node to gather all attachments for a work package before a status meeting.

Properties

Name Meaning
Id The numeric ID of the work package whose attachments you want to list. This identifies the specific work package within OpenProject.

Output

The output will be a JSON array containing details of each attachment linked to the specified work package. Each item typically includes metadata such as attachment name, file type, size, URL, and possibly timestamps or uploader information. This allows further processing or display of attachment data downstream in your workflow.

If the node supports binary data output (e.g., actual file contents), it would represent the attachments' binary content; however, based on the provided code snippet, only JSON metadata output is indicated.

Dependencies

  • Requires an active connection to an OpenProject instance via its API.
  • Needs an API authentication token or key configured in n8n credentials to authorize requests.
  • The base URL of the OpenProject server must be set in the node's credential configuration.

Troubleshooting

  • Invalid Work Package ID: If the provided ID does not exist or is incorrect, the node may return an error or empty results. Verify the ID corresponds to an existing work package.
  • Authentication Errors: Missing or invalid API credentials will cause authorization failures. Ensure the API key/token is correctly configured.
  • Network Issues: Connectivity problems to the OpenProject server can cause timeouts or request failures. Check network access and server availability.
  • Permission Denied: The authenticated user must have permission to view the work package and its attachments; otherwise, access errors will occur.

Links and References

Discussion