Class AttachmentZipFileCreator

java.lang.Object
com.atlassian.jira.issue.attachment.zip.AttachmentZipFileCreator

public class AttachmentZipFileCreator extends Object
This class can create temporary zip files containing all the attachments on an issue
Since:
v4.1
  • Constructor Details

  • Method Details

    • toZipFile

      public File toZipFile(Issue issue) throws IOException
      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 should 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