Skip to content

jira issue attachment list

  • Usage: jira issue attachment list KEY... [flags]

List attachments on one or more issues. Use it to find attachment IDs before downloading or deleting files.

Jira returns attachments as part of the issue data; the command applies --limit client-side unless --all is set. Multiple issue keys are read with bounded parallelism.

Pagination

--all

Return every attachment regardless of --limit

--limit <N>

Page size (max attachments returned without --all); 0 uses the default

Default: 50

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 Jira user identity; null when Jira reports none.
attachments[].created string (date-time)
attachments[].filename string
attachments[].id string
attachments[].mime_type string
attachments[].size integer
issue.id string
issue.key string
issue.self string
pagination.isLast boolean
pagination.maxResults integer
pagination.nextCursor string
pagination.startAt integer
pagination.total integer

Examples

jira issue attachment list PROJ-123 # (1)!
jira issue attachment list PROJ-123 --all # (2)!
jira issue attachment list PROJ-123 --output=json # (3)!
  1. List attachments on an issue
  2. Return every attachment regardless of page size
  3. List attachments as JSON