sumoheavy / jira-ruby

A Ruby gem for the JIRA REST API
MIT License
654 stars 412 forks source link

Cannot add attachment to an issue when using default headers #416

Closed marlinpierce closed 4 months ago

marlinpierce commented 10 months ago

The 'Attachment#save!' method looks like it should add an attachment to an issue. However, it was not passing the default headers for a multipart post. Since we use a header to pass the Jira OAuth Access Token authorization the call would fail because of permissions.

Please see the fix in this Pull Request:

https://github.com/sumoheavy/jira-ruby/pull/415

bobbrodie commented 4 months ago

This is in master now so I'll go ahead and close. Thank you so much!