Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt
hiddentrue
Deletes the attachment for a given id or for a specified issue and file name.

Deletes the attachment for a given id or for a specified issue and file name.

Parameters

Or

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

Code Block
languagejs
deleteAttachment(10104);

Example 2

Code Block
languagejs
deleteAttachment("TEST-1", "attachmentToDelete.txt");

Note

If you have multiple attachments on an issue with the same file name, all of them will be deleted.

See also

Filter by label
showLabelsfalse
max25
showSpacefalse
cqllabel = "attachment_routine" and space = currentSpace ( )
labelsarray_routines

We've encountered an issue exporting this macro. Please try exporting again later.