jira.js
    Preparing search index...

    Function getWorklogsForIds

    • Returns worklog details for a list of worklog IDs.

      The returned list of worklogs is limited to 1000 items.

      Permissions required: Permission to access Jira, however, worklogs are only returned where either of the following is true:

      • The worklog is set as Viewable by All Users.
      • The user is a member of a project role or group with permission to view the worklog.

      Parameters

      • client: Client
      • parameters: {
            expand?:
                | string
                | string[]
                | string & {}
                | ("properties" | string & {})[];
            ids: number[];
        }
        • Optionalexpand?: string | string[] | string & {} | ("properties" | string & {})[]

          Use expand to include additional information about worklogs in the response. This parameter accepts properties that returns the properties of each worklog.

        • ids: number[]

          A list of worklog IDs.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              author?: {
                  accountId?: string;
                  accountType?: string;
                  active?: boolean;
                  avatarUrls?: {
                      "16x16"?: string;
                      "24x24"?: string;
                      "32x32"?: string;
                      "48x48"?: string;
                      [key: string]: unknown;
                  };
                  displayName?: string;
                  emailAddress?: string;
                  self?: string;
                  timeZone?: string;
                  [key: string]: unknown;
              };
              comment?: {
                  content: Record<string, any>[];
                  type: string & {} | "doc";
                  version: number;
                  [key: string]: unknown;
              };
              created?: Date;
              id?: string;
              issueId?: string;
              properties?: { key?: string; value?: unknown; [key: string]: unknown }[];
              self?: string;
              started?: Date;
              timeSpent?: string;
              timeSpentSeconds?: number;
              updateAuthor?: {
                  accountId?: string;
                  accountType?: string;
                  active?: boolean;
                  avatarUrls?: {
                      "16x16"?: string;
                      "24x24"?: string;
                      "32x32"?: string;
                      "48x48"?: string;
                      [key: string]: unknown;
                  };
                  displayName?: string;
                  emailAddress?: string;
                  self?: string;
                  timeZone?: string;
                  [key: string]: unknown;
              };
              updated?: Date;
              visibility?: {
                  identifier?: string
                  | null;
                  type?: "role" | "group" | string & {};
                  value?: string;
                  [key: string]: unknown;
              };
              [key: string]: unknown;
          }[],
      >