copyAttachment

Description

Copies an attachment from one page to another.

Return Type

Boolean (true/false)

Example

copyAttachment(11800, "attachmentToCopy.txt", 11801);

Returns true if the attachment was copied successfully and false otherwise. If returned false check the log for a detailed reason on why it failed.

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

See also