Skip to content

Function: addAttachment() ​

ts
function addAttachment(
   client, 
   parameters, 
   options?
): Promise<object[]>;

Defined in: src/cloud/api/issueAttachments.ts:182

Adds one or more attachments to an issue.

This operation can be accessed anonymously.

Permissions required:

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ attachments: | AttachmentInput | AttachmentInput[]; issueIdOrKey: string; }-
parameters.attachments| AttachmentInput | AttachmentInput[]-
parameters.issueIdOrKey?stringThe ID or key of the issue that attachments are added to.
options?RequestOptions-

Returns ​

Promise<object[]>