Download attachment
jira_download_attachmentDownloads a Jira attachment into the server’s media directory and returns the local file path, avoiding transfer through the conversation. Refuses files over 50 MiB and never overwrites existing files.
Instructions
Downloads one attachment INTO THIS SERVER'S media directory and returns the local path — the bytes never pass through the conversation. Requires JIRA_MEDIA_DIR; without it the call is refused, while jira_list_attachments keeps working. Files over 50 MiB are refused. The name on disk is derived from Jira's filename and may be rewritten to keep it safe; an existing file is never overwritten, so calling this twice leaves two files (renamed: true says so).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Named credential profile for this call. Omit to use the active profile. Rejected when the server locks the profile (JIRA_LOCK_PROFILE). | |
| attachmentId | Yes | Attachment id from jira_list_attachments — not the filename. |