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:
- Browse Projects and Create attachments project permission for the project that the issue is in.
- If issue-level security is configured, issue-level security permission to view the issue.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { attachments: | AttachmentInput | AttachmentInput[]; issueIdOrKey: string; } | - |
parameters.attachments | | AttachmentInput | AttachmentInput[] | - |
parameters.issueIdOrKey? | string | The ID or key of the issue that attachments are added to. |
options? | RequestOptions | - |
Returns
Promise<object[]>