Attachments

As we have seen so far, JIRA uses fields such as summary and description to capture data. This works for most cases, but when you have complex data such as application log files or screenshots, fields become insufficient. This is where attachments come in. JIRA allows you to attach files to issues as support documents.

Enabling attachments in JIRA

Attachments are saved as files on the JIRA file server and not in the database, so you need to ensure that there is sufficient disk space to accommodate the volume of attachments for now and future growth. As attachments are not stored in the database, JIRA will not backup the files as a part of its backup process. Attachments need to be backed up separately.

Attachments are enabled by default in JIRA, so users will be able to attach files to issues as soon as JIRA is installed. However, if it is disabled for some reason, you can re-enable it. Perform the following steps to enable attachments for JIRA:

  1. Log in to JIRA as a JIRA administrator.
  2. Browse to the administration console by clicking on the Administration link at the top navigation panel.
  3. Click on Attachments under the Advanced section at the bottom-right end of the page. This will take you to the Attachment Settings page.
  4. Click on the Edit Settings button. This will bring up the Edit Attachment Settings page.
  5. Select Use Default Directory for the Attachment Path.
  6. Click on the Update button to enable attachments in JIRA.

On the Attachment Settings page, as shown in the following screenshot, there are a few options that you will need to configure when enabling attachments in JIRA:

Enabling attachments in JIRA

The following table summarizes the configuration options:

Options

Description

Attachment Path

This specifies the location where attachments will be stored on the filesystem. The only options are the default directory, which is inside your JIRA_HOME directory, or disabled attachments in JIRA.

Attachment Size

This specifies the maximum size of the attachment that users can upload.

Enable Thumbnails

This specifies whether or not to enable thumbnail generation when the attachment is an image.

Enable ZIP support

This specifies whether or not to enable ZIP support, which allows users to download multiple attachments as a single ZIP file, and also view the contents of ZIP attachment files.

Attachments are enabled and disabled globally across JIRA. You cannot selectively enable or disable attachment functions on a per project basis. You can, however, achieve a similar result by controlling the permission around who can attach files. Permissions are discussed in Chapter 8, Securing JIRA.

Attaching files

JIRA allows you to attach any arbitrary files to issues. These can be image files, Microsoft Office documents, and other binary files. Perform the following steps to attach a file to an issue:

  1. Browse to the issue you wish to attach a file.
  2. Select Attach File from the More Actions menu. This will bring up the Attach Files page.
  3. Click on the Browse button to select the file you wish to attach.
  4. Optionally, provide a comment for the attached file. The comment will be added as a normal comment to the issue.
  5. Optionally, select the security level for who can see the comment.
  6. Click on the Attach button:
    Attaching files

Tip

There are a few things you need to keep in mind when attaching files to JIRA:

The file name cannot contain the following characters – , /, ", %, :, $, ?, and *.

Attaching screenshots

Apart from letting you attach any files to an issue, JIRA also allows you to directly attach a screenshot from your system clipboard to issues. This saves you from having to take a screenshot, save it as a physical file on the disk, and finally attach it to JIRA.

Perform the following steps to attach a screenshot:

  1. Browse to the issue you wish to attach a screenshot.
  2. Select Attach Screenshot from the More Actions menu. This will bring up the Attach Screenshot page.
  3. Click on Yes when prompted for whether you want to trust the applet.
  4. Click on the Paste button and the screenshot will be pasted into the panel above.
  5. Enter a file name for the screenshot or accept the default name.
  6. Optionally, provide a comment for the attached file. The comment will be added as a normal comment to the issue.
  7. Optionally, select the security level for who can see the comment.
  8. Click on the Attach button.

Just like attaching a file to JIRA, the same file name restriction applies to attaching a screenshot.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset