OpenProject icon

OpenProject

Interact with OpenProject via API

Actions199

Overview

This node operation allows you to add an attachment to a specific post within the OpenProject system. It is useful when you want to programmatically upload or link files, images, or documents to posts for collaboration, documentation, or record-keeping purposes. For example, you might use this node to attach meeting notes, screenshots, or specification documents directly to a discussion post in a project.

Properties

Name Meaning
Id The numeric ID of the post that will receive the attachment. This identifies the target post where the file or document will be attached.

Output

The output JSON contains information about the result of the attachment operation. Typically, it includes confirmation details such as the post ID, attachment metadata (like filename, size, type), and status of the upload. If the node supports binary data input for the attachment itself, the output confirms successful attachment but does not output the binary content.

Dependencies

  • Requires an API key credential for authenticating with the OpenProject API.
  • Needs the base URL of the OpenProject instance configured in the credentials.
  • The node depends on the OpenProject REST API being accessible and the user having permission to add attachments to posts.

Troubleshooting

  • Common issues:

    • Invalid or missing post ID: Ensure the post ID exists and is correct.
    • Authentication errors: Verify that the API key and base URL are correctly set in the credentials.
    • Permission denied: Confirm that the authenticated user has rights to add attachments to the specified post.
    • Network or connectivity problems: Check network access to the OpenProject server.
  • Error messages:

    • "Post not found" or similar indicates the provided post ID does not exist.
    • "Unauthorized" or "Authentication failed" suggests invalid credentials.
    • "Attachment upload failed" may indicate file size limits or unsupported file types.

Resolving these typically involves verifying input parameters, credentials, and user permissions.

Links and References

Discussion