Jira Get Attachment
jira_get_attachmentDownload a Jira attachment to a local file with or without a specified output path.
Instructions
Download a Jira attachment to a local file.
Usage:
jira_get_attachment({
attachmentId: "12345",
outputPath: "/tmp/report.pdf" // optional
})Parameters:
attachmentId(required): The attachment ID from issue metadataoutputPath(optional): Where to save the file. If not provided, saves to system temp directory with original filename.
To find attachment IDs: Use jira_get with:
path:
/rest/api/3/issue/{issueKey}jq:
fields.attachment[*].{id:id,filename:filename,size:size}
Returns: Download result with file path, filename, MIME type, and size.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"attachmentId": "<attachmentId>"
},
"name": "jira_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | No | Local file path where to save the attachment. If not provided, saves to system temp directory with original filename. | |
| attachmentId | Yes | The Jira attachment ID to download. Get this from issue metadata using jira_get with path "/rest/api/3/issue/{issueKey}" and jq "fields.attachment[*].{id:id,filename:filename}" |