Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud: Issue.DownloadAttachment is using deprecated API #662

Open
markuszm opened this issue Mar 5, 2024 · 0 comments
Open

Cloud: Issue.DownloadAttachment is using deprecated API #662

markuszm opened this issue Mar 5, 2024 · 0 comments

Comments

@markuszm
Copy link

markuszm commented Mar 5, 2024

What happened?

Jira Cloud deprecated multiple endpoints regarding attachment and thumbnail downloads, see https://community.developer.atlassian.com/t/deprecation-of-obsolete-jira-cloud-download-attachment-and-thumbnail-urls.
This affects the Issue.DownloadAttachment method as it uses the deprecated method.
Since 4. February, the methods are removed from the cloud instance, as such the DownloadAttachment function does not work anymore.
Affected code line is: https://github.com/andygrunwald/go-jira/blob/main/cloud/issue.go#L656.

What did you expect to happen?

DownloadAttachment method works properly.

How can we reproduce it (as minimally and precisely as possible)?

Create an attachment and then download it using the plain jira.Issue methods.

Anything else we need to know?

Not sure if other methods are also affected related to thumbnails.

Your Environment

Include as many relevant details about the environment you experienced the problem in

  • go-jira version (git tag or sha):v2.0.0-20240116150243-50d59fe116d6
  • Go version (go version):1.22
  • Jira type (cloud or on-premise):cloud
  • Jira version / Api version:1001.0.0-SNAPSHOT
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

No branches or pull requests

1 participant