Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned and metadata for the ZIP archive. Currently, only the ZIP archive format is supported. Use this operation to retrieve data that is presented to the user, as this operation returns the metadata for the attachment itself, such as the attachment’s ID and name. Otherwise, use Get contents metadata for an expanded attachment, which only returns the metadata for the attachment’s contents. This operation can be accessed anonymously. Permissions required: For the issue containing the attachment: * Browse projectsproject permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
Returns the metadata for the contents of an attachment, if it is an archive. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned. Currently, only the ZIP archive format is supported. Use this operation if you are processing the data without presenting it to the user, as this operation only returns the metadata for the contents of the attachment. Otherwise, to retrieve data to present to the user, use Get all metadata for an expanded attachment which also returns the metadata for the attachment itself, such as the attachment’s ID and name. This operation can be accessed anonymously. Permissions required: For the issue containing the attachment: * Browse projectsproject permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
Returns the metadata for an attachment. Note that the attachment itself is not returned. This operation can be accessed anonymously. Permissions required: * Browse projectsproject permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
Returns the contents of an attachment. A Range header can be set to define a range of bytes within the attachment to download. See the HTTP Range header standard for details. To return a thumbnail of the attachment, use Download attachment thumbnail. This operation can be accessed anonymously. Permissions required: For the issue containing the attachment: * Browse projectsproject permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
Returns the attachment settings, that is, whether attachments are enabled and the maximum attachment size allowed. Note that there are also project permissions that restrict whether users can create and delete attachments. This operation can be accessed anonymously. Permissions required: None.
Returns the thumbnail of an attachment. To return the attachment contents, use Download attachment content. This operation can be accessed anonymously. Permissions required: For the issue containing the attachment: * Browse projectsproject permission for the project that the issue is in. * If issue-level security is configured, issue-level security permission to view the issue.
Deletes an attachment from an issue. This operation can be accessed anonymously. Permissions required: For the project holding the issue containing the attachment: * Delete own attachmentsproject permission to delete an attachment created by the calling user. * Delete all attachmentsproject permission to delete an attachment created by any user.