deleteAttachment
Syntax | deleteAttachment(issueKey, attachmentName) | Package | |
Alias | deleteAttachment(attachmentId) | Pkg Usage |
Description
Deletes the attachment for a given id or for a specified issue and file name.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
issueKey | String | Yes | Issue key. |
attachmentName | String | Yes | Attachment name. |
attachmentId | Number | Yes | Attachment id. |
Return Type
Boolean (true/false)
Returns "true" if the attachment was deleted successfully and "false" otherwise. If returned "false" check the log for a detailed reason on why it failed.
Examples
Example 1
deleteAttachment(10104);Example 2
deleteAttachment("TEST-1", "attachmentToDelete.txt");If you have multiple attachments on an issue with the same file name, all of them will be deleted.
See also
Need support? Create a request with our support team.
Copyright © 2005 - 2026 Appfire | All rights reserved.
