attach_file
Attach a local file to a Jira issue by providing the issue key and file path. Returns attachment metadata including filename, size, MIME type, and URL.
Instructions
Attach a local file to a Jira issue. Provide the issue key and the absolute or relative path to the file on the local filesystem. The file must exist and be readable. Maximum file size is 10 MB (Jira Cloud limit). Common file types are supported: images, PDFs, documents, logs. Returns attachment metadata including filename, size, MIME type, and URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | No | Optional custom filename to use as the attachment name in Jira. | |
| filePath | Yes | Absolute or relative path to the file. REQUIRED. | |
| issueKey | Yes | Issue key (e.g., "PROJ-123"). REQUIRED. | |
| mimeType | No | Optional MIME type override (e.g., "image/png", "text/plain"). |