bj issue attachment upload¶
Attach local files to an issue.
Synopsis¶
Description¶
Attach local files to an issue, like gh release upload. Each file is uploaded on its own, and bj prints its name, size and the new attachment id. Every path is checked before the first upload. If Jira refuses a file, the error names it and lists the files that were already uploaded.
Arguments¶
| Argument | Description |
|---|---|
KEY |
Issue key. (required) |
FILES |
Files to attach. (required) |
Options¶
| Option | Description |
|---|---|
--json |
Output raw JSON. |
-q, --jq <text> |
Filter JSON with a jq expression. |
Examples¶
bj issue attachment upload PROJ-42 screenshot.png
bj issue attachment upload PROJ-42 build.log report.pdf --jq '.[].id'