andygrunwald / go-jira

Go client library for Atlassian Jira
https://pkg.go.dev/github.com/andygrunwald/go-jira?tab=doc
MIT License
1.44k stars 458 forks source link

Cloud: Issue.DownloadAttachment is using deprecated API #662

Open markuszm opened 4 months ago

markuszm commented 4 months ago

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