jira.js
    Preparing search index...

    Function getAttachmentThumbnail

    • Returns the thumbnail of an attachment.

      To return the attachment contents, use Get attachment content.

      This operation can be accessed anonymously.

      Permissions required: For the issue containing the attachment:

      • Browse projects project permission for the project that the issue is in.
      • If issue-level security is configured, issue-level security permission to view the issue.
      • If attachments are added in private comments, the comment-level restriction will be applied.

      Parameters

      • client: Client
      • parameters: {
            fallbackToDefault?: boolean;
            height?: number;
            id: string;
            redirect?: boolean;
            width?: number;
        }
        • OptionalfallbackToDefault?: boolean

          Whether a default thumbnail is returned when the requested thumbnail is not found.

        • Optionalheight?: number

          The maximum height to scale the thumbnail to.

        • id: string

          The ID of the attachment.

        • Optionalredirect?: boolean

          Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.

        • Optionalwidth?: number

          The maximum width to scale the thumbnail to.

      • Optionaloptions: RequestOptions

      Returns Promise<ArrayBuffer | ArrayBufferView<ArrayBufferLike>>