jira.js
    Preparing search index...

    Function getAttachmentsForRequest

    • This method returns all the attachments for a customer requests.

      Permissions required: Permission to view the customer request.

      Response limitations: Customers will only get a list of public attachments.

      Parameters

      • client: Client
      • parameters: { issueIdOrKey: string; limit: number; start: number }
        • issueIdOrKey: string

          The ID or key of the customer request from which the attachments will be listed.

        • limit: number

          The maximum number of comments to return per page. Default: 50. See the Pagination section for more details.

        • start: number

          The starting index of the returned attachment. Base index: 0. See the Pagination section for more details.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              _expands?: string[];
              _links?: {
                  base?: string;
                  context?: string;
                  next?: string;
                  prev?: string;
                  self?: string;
                  [key: string]: unknown;
              };
              isLastPage?: boolean;
              limit?: number;
              size?: number;
              start?: number;
              values?: {
                  _links?: {
                      content?: string;
                      jiraRest?: string;
                      self?: string;
                      thumbnail?: string;
                      [key: string]: unknown;
                  };
                  author?: {
                      _links?: {
                          avatarUrls?: Record<(...), (...)>;
                          jiraRest?: string;
                          self?: string;
                          [key: string]: unknown;
                      };
                      accountId?: string;
                      active?: boolean;
                      displayName?: string;
                      emailAddress?: string;
                      key?: string;
                      name?: string;
                      timeZone?: string;
                      [key: string]: unknown;
                  };
                  created?: {
                      epochMillis?: number;
                      friendly?: string;
                      iso8601?: string;
                      jira?: string;
                      [key: string]: unknown;
                  };
                  filename?: string;
                  mimeType?: string;
                  size?: number;
                  [key: string]: unknown;
              }[];
              [key: string]: unknown;
          },
      >