jira_add_attachment
Upload an attachment (image or document) to a Jira issue using a remote file URL or base64 content. Returns attachment metadata with ID and download URL.
Instructions
Uploads an attachment (image, document, etc.) to a Jira issue.
EFFICIENT METHOD (recommended for large files):
fileUrl: Provide URL to remote file - MINIMAL tokens (~60 tokens) Example: Upload to Dropbox/S3/imgur first, then provide URL
DIRECT METHOD (for small files):
content: Base64 encoded content - WARNING: HIGH token cost (~330,000 tokens for 1MB file) Only suitable for small files (< 500 KB)
Returns attachment metadata including ID and download URL. To reference the image in a comment or description, use wiki markup: !filename.png! or !filename.png|thumbnail!
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Base64-encoded or plain text content. WARNING: HIGH token cost (~330k tokens for 1MB file). Use fileUrl for large files or upload to cloud storage first. | |
| fileUrl | No | URL to download file from (efficient for remote files, ~60 tokens). Upload large files to Dropbox/S3/imgur first, then use URL. | |
| filename | Yes | Name of the file to attach | |
| isBase64 | No | Whether content is base64-encoded (default: true). Set to false for plain text files. | |
| issueKey | Yes | Issue key to add attachment to (e.g., PROJECT-123) |