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 allows you to create an attachment for a specific work package in OpenProject. It is useful when you want to programmatically add files or documents related to a work package, such as specifications, images, or reports, directly from your workflow automation.
A practical example would be automatically attaching a generated PDF report to a work package whenever a certain event occurs, like the completion of a task or receipt of an email.
Properties
| Name | Meaning |
|---|---|
| Id | The numeric ID of the work package that will receive the attachment. This identifies the target work package within OpenProject where the attachment should be added. |
Output
The node outputs JSON data representing the result of the attachment creation operation. This typically includes details about the newly created attachment such as its ID, filename, and metadata confirming successful upload.
If binary data (the actual file content) is involved, it would represent the attachment being sent to OpenProject, but the output mainly confirms the attachment's creation status and related information.
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 managing work package attachments.
Troubleshooting
Common issues:
- Invalid or missing work package ID can cause errors; ensure the ID corresponds to an existing work package.
- Authentication failures if the API key or URL is incorrect or expired.
- File size or type restrictions imposed by OpenProject may prevent attachment uploads.
Error messages:
- "Unauthorized" or "Authentication failed": Check API credentials and permissions.
- "Work package not found": Verify the provided work package ID exists.
- "Attachment upload failed": Confirm the file meets OpenProject’s requirements and the request payload is correctly formed.