@fatecannotbealtered-/jira-cli 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.5] - 2026-06-02
11
+
12
+ ### Added
13
+
14
+ - **`issue attachments` download** — the command can now fetch attachment content, not just list metadata. `--out <dir>` downloads all attachments into a directory; add `--id <attachmentId>` to download a single one (exit code 4 if not found). With `--json` it prints `{id, filename, path, mimeType}` per saved file. Downloads stream to disk (handles large files like screen recordings) and validate the content URL points at the configured Jira host. The `attachments --json` listing now also includes the `content` download URL.
15
+
10
16
  ## [1.0.4] - 2026-05-31
11
17
 
12
18
  ### Fixed
@@ -113,7 +119,9 @@ Initial release of jira-cli for Jira Data Center.
113
119
  - SKILL.md with JSON output schemas, error codes, exit codes, and complete flag reference.
114
120
  - GitHub PR template for contributors.
115
121
 
116
- [Unreleased]: https://github.com/fatecannotbealtered/jira-cli/compare/v1.0.3...HEAD
122
+ [Unreleased]: https://github.com/fatecannotbealtered/jira-cli/compare/v1.0.5...HEAD
123
+ [1.0.5]: https://github.com/fatecannotbealtered/jira-cli/compare/v1.0.4...v1.0.5
124
+ [1.0.4]: https://github.com/fatecannotbealtered/jira-cli/compare/v1.0.3...v1.0.4
117
125
  [1.0.3]: https://github.com/fatecannotbealtered/jira-cli/compare/v1.0.2...v1.0.3
118
126
  [1.0.2]: https://github.com/fatecannotbealtered/jira-cli/compare/v1.0.1...v1.0.2
119
127
  [1.0.1]: https://github.com/fatecannotbealtered/jira-cli/compare/v1.0.0...v1.0.1
package/README.md CHANGED
@@ -148,6 +148,9 @@ jira-cli issue worklog list PROJ-123
148
148
  # Links & Attachments
149
149
  jira-cli issue link PROJ-123 --to PROJ-456 --type "blocks"
150
150
  jira-cli issue attach PROJ-123 --file ./screenshot.png
151
+ jira-cli issue attachments PROJ-123 # List attachments
152
+ jira-cli issue attachments PROJ-123 --out ./downloads # Download all attachments
153
+ jira-cli issue attachments PROJ-123 --out ./downloads --id 4609477 # Download one by ID
151
154
  jira-cli issue remote-link PROJ-123 --url https://pr.url --title "PR #42"
152
155
  ```
153
156
 
@@ -295,6 +298,8 @@ Credentials stored at `~/.jira-cli/config.json` (permissions: 0600):
295
298
  | `--raw` | `issue get`, `issue list`, `search`, `filter run`, `sprint list`, `sprint issues`, `sprint active` | Return raw Jira API response instead of flat format |
296
299
  | `--fields` | `issue get`, `issue list`, `sprint list`, `sprint issues`, `filter run` | **Output trimming** — include only listed fields in flat JSON (e.g. `--fields key,summary,status`) |
297
300
  | `--fields` | `search` only | **Jira fetch fields** — comma-separated fields to request from the API (e.g. `--fields summary,status,customfield_10001`); does not trim flat output |
301
+ | `--out` | `issue attachments` | Download attachments into this directory instead of listing (default cwd via the dir you pass); with `--json` prints `{id, filename, path, mimeType}` |
302
+ | `--id` | `issue attachments` | With `--out`, download only the attachment with this ID (exit code 4 if not found) |
298
303
 
299
304
  ## Troubleshooting
300
305
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fatecannotbealtered-/jira-cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Full-featured Jira Data Center CLI for humans and AI Agents — manage issues, sprints, boards, epics, projects, users, and filters from your terminal",
5
5
  "keywords": [
6
6
  "jira",
@@ -109,7 +109,9 @@ jira-cli issue remote-links PROJ-123 --json
109
109
 
110
110
  # Attachments
111
111
  jira-cli issue attach PROJ-123 --file ./screenshot.png
112
- jira-cli issue attachments PROJ-123 --json
112
+ jira-cli issue attachments PROJ-123 --json # list metadata (incl. content URL)
113
+ jira-cli issue attachments PROJ-123 --out ./dl --json # download all -> [{id,filename,path,mimeType}]
114
+ jira-cli issue attachments PROJ-123 --out ./dl --id 4609477 # download a single attachment by ID
113
115
  ```
114
116
 
115
117
  ## Search (JQL)