Versions Compared

Key

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


This routine is available starting with SIL Engineā„¢ 4.0.3.

This routine is available for Jira server and cloud deployment options.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

copyAttachmentById(attachmentId, issueKey)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Copies the attachment for the provided id from one issue to another.

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

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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 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

Code Block
copyAttachmentById(10205, "TEST-2");

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel in ( = "attachment_routine" , "ps_cloud" and space = currentSpace ( )
labelsattachmentarray_routineroutines