Skip to end of banner
Go to start of banner

copyAttachmentById

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »


Availability

This routine is available starting with katl-commons 4.0.3.

Syntax

copyAttachmentById(attachmentId, issueKey)

Description

Copy the attachment for the provided id from one issue to another.


Parameters

Parameter name

Type

Required

Description

attachmentIdnumberYesThe attachment id

issueKey

string

Yes

The issue key where you want to copy the attachment

Return type

boolean (true/false)

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

Example

copyAttachmentById(10205, "TEST-2");

See also

  • No labels