Add Jira Attachment
jira_add_attachmentUpload a file to any Jira issue or Product Discovery idea. Provide content as UTF-8 text or base64-encoded binary data, with optional MIME type and filename.
Instructions
Upload one attachment to a Jira issue or Jira Product Discovery idea.
The server converts UTF-8 or base64 content into Jira's required multipart request. Binary files must use encoding=base64. Uploading the same file twice creates two Jira attachments.
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": {
"issueKey": "<issueKey>",
"filename": "<filename>",
"content": "<content>"
},
"name": "jira_add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Attachment contents. Pass plain text with encoding=utf8 or binary data encoded as base64 with encoding=base64. | |
| encoding | No | How content is encoded. Defaults to utf8. | utf8 |
| filename | Yes | Filename Jira should display. | |
| issueKey | Yes | Jira issue or Jira Product Discovery idea key. | |
| mimeType | No | Attachment MIME type. Defaults to application/octet-stream. | application/octet-stream |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueKey | Yes | ||
| attachment | Yes |