jira issue attachment add¶
- Usage:
jira issue attachment add KEY... [PATH...] [flags]
Upload one or more local files to one or more issues. Use positional paths for quick uploads or repeated --file flags when paths contain shell-sensitive characters.
Before any HTTP request, the command checks every path, file type, and size. --dry-run performs that local preflight and prints the inferred files without uploading anything.
Input¶
--file <PATH>…¶
Path to attach (repeatable)
Accepts a file.
Safety¶
--dry-run¶
Preview without uploading
Execution¶
-p --parallelism <N>¶
Maximum concurrent requests (1-16)
Default: 1
Output fields¶
With --output json, the response envelope's data object carries these fields. Run jira agent schema for the full machine-readable schema.
| Field | Type | Description |
|---|---|---|
attachments[].author |
object | Fields: account_id, display_name |
attachments[].created |
string | |
attachments[].filename |
string | |
attachments[].id |
string | |
attachments[].mime_type |
string | |
attachments[].size |
integer | |
dry_run |
boolean | |
files[].mime_inferred |
string | |
files[].path |
string | |
files[].size |
integer | |
issue.id |
string | |
issue.key |
string | |
issue.self |
string |
Examples¶
jira issue attachment add PROJ-123 ./report.pdf # (1)!
jira issue attachment add PROJ-123 --file ./report.pdf --file ./logs.txt # (2)!
jira issue attachment add PROJ-123 ./report.pdf --dry-run # (3)!
- Attach a file to an issue
- Attach several files via repeated --file
- Preview local file checks without uploading