Skip to content

[Jira]: Improve attachment download methods.#1622

Merged
gonchik merged 3 commits intoatlassian-api:masterfrom
jerubball:jira-attachment-dev
Mar 13, 2026
Merged

[Jira]: Improve attachment download methods.#1622
gonchik merged 3 commits intoatlassian-api:masterfrom
jerubball:jira-attachment-dev

Conversation

@jerubball
Copy link
Contributor

Improved get_attachment_content() as following:

  • Use content URL obtained from get_attachment() metadata.
  • Use Accept: */* request header instead of the default of Accept: application/json.

Modified download_issue_attachments() as following:

  • Check for existing file before sending download request, and add overwrite parameter to skip this check.
  • Add stream parameter to more efficiently process large attachment zip file, and block_size parameter for control.
  • Add timeout parameter to raise HTTPError to handle cases where download freezes.

@jerubball jerubball changed the title [Jira]: improve attachment download methods. [Jira]: Improve attachment download methods. Mar 12, 2026
@gonchik gonchik merged commit 1e1e24a into atlassian-api:master Mar 13, 2026
4 of 10 checks passed
@jerubball jerubball deleted the jira-attachment-dev branch March 13, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants