Skip to content

Function: getAttachment() ​

ts
function getAttachment(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  author?: {
   [key: string]: unknown;
     active?: boolean;
     avatarUrls?: Record<string, string>;
     displayName?: string;
     emailAddress?: string;
     key?: string;
     name?: string;
     self?: string;
     timeZone?: string;
  };
  content?: string;
  created?: string;
  filename?: string;
  id?: string;
  mimeType?: string;
  properties?: Record<string, any>;
  self?: string;
  size?: number;
  thumbnail?: string;
}>;

Defined in: src/server/api/issueAttachments.ts:27

Returns the meta-data for an attachment, including the URI of the actual attached file.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ id: string; }-
parameters.idstringId of the attachment to view
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; author?: { [key: string]: unknown; active?: boolean; avatarUrls?: Record<string, string>; displayName?: string; emailAddress?: string; key?: string; name?: string; self?: string; timeZone?: string; }; content?: string; created?: string; filename?: string; id?: string; mimeType?: string; properties?: Record<string, any>; self?: string; size?: number; thumbnail?: string; }>