Upload attachment
op_upload_attachmentAttach a local file to a work package. Optionally embed an image reference in a comment or description.
Instructions
Upload a file from the local filesystem as an attachment on a work package. Provide the absolute path to the file. Optionally override the file name. Set embedIn to "comment" or "description" to also insert an image reference () into the work package.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workPackageId | Yes | ||
| filePath | Yes | Absolute path to the file on disk | |
| fileName | No | Override the file name (defaults to basename of filePath) | |
| description | No | ||
| embedIn | No | Embed the uploaded file in a comment or the WP description | |
| embedText | No | Text to include alongside the image reference (used with embedIn) |