Availability
This routine is available starting with SIL Engine™ 4.0.3.
This routine is available for Jira server and cloud deployment options.
Syntax
copyAttachmentById(attachmentId, issueKey)
Description
Copies the attachment for the provided id from one issue to another.
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
attachmentId | number | Yes | Attachment id. |
issueKey | string | Yes | Issue key where you want to copy the attachment. |
Return type
boolean (true/false)
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.
Example
copyAttachmentById(10205, "TEST-2");
See also