public class

AttachmentZipFileCreator

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.attachment.AttachmentZipFileCreator

Class Overview

This class can create temporary zip files containing all the attachments on an issue

Summary

Public Constructors
AttachmentZipFileCreator(Issue issue)
Public Methods
File toZipFile()
This will return a ZIP file that contains all the attachments of an issue.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AttachmentZipFileCreator (Issue issue)

Public Methods

public File toZipFile ()

This will return a ZIP file that contains all the attachments of an issue. The file will be created in the temporary directory and end in .zip

you shoudl delete the file when you are done, otherwise, well this is JIRA not Bamboo!

Returns
  • a zip file containing all the attachments of an issue
Throws
IOException if stuff goes wrong