jira.js
    Preparing search index...

    Function getBulkChangelogs

    • Bulk fetch changelogs for multiple issues and filter by fields

      Returns a paginated list of all changelogs for given issues sorted by changelog date and issue IDs, starting from the oldest changelog and smallest issue ID.

      Issues are identified by their ID or key, and optionally changelogs can be filtered by their field IDs. You can request the changelogs of up to 1000 issues and can filter them by up to 10 field IDs.

      Permissions required:

      Parameters

      • client: Client
      • parameters: {
            fieldIds?: string[];
            issueIdsOrKeys: string[];
            maxResults?: number;
            nextPageToken?: string;
        }
        • OptionalfieldIds?: string[]

          List of field IDs to filter changelogs

        • issueIdsOrKeys: string[]

          List of issue IDs/keys to fetch changelogs for

        • OptionalmaxResults?: number

          The maximum number of items to return per page

        • OptionalnextPageToken?: string

          The cursor for pagination

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              issueChangeLogs?: {
                  changeHistories?: {
                      author?: {
                          accountId?: (...)
                          | (...);
                          accountType?: (...) | (...);
                          active?: (...) | (...) | (...);
                          avatarUrls?: (...) | (...);
                          displayName?: (...) | (...);
                          emailAddress?: (...) | (...);
                          self?: (...) | (...);
                          timeZone?: (...) | (...);
                          [key: string]: unknown;
                      };
                      created?: Date;
                      historyMetadata?: {
                          activityDescription?: (...)
                          | (...);
                          activityDescriptionKey?: (...) | (...);
                          actor?: (...) | (...);
                          cause?: (...) | (...);
                          description?: (...) | (...);
                          descriptionKey?: (...) | (...);
                          emailDescription?: (...) | (...);
                          emailDescriptionKey?: (...) | (...);
                          extraData?: (...) | (...);
                          generator?: (...) | (...);
                          type?: (...) | (...);
                          [key: string]: unknown;
                      };
                      id?: string;
                      items?: {
                          field?: ...;
                          fieldId?: ...;
                          fieldtype?: ...;
                          from?: ...;
                          fromString?: ...;
                          to?: ...;
                          toString?: ...;
                          [key: ...]: ...;
                      }[];
                      [key: string]: unknown;
                  }[];
                  issueId?: string;
                  [key: string]: unknown;
              }[];
              nextPageToken?: string
              | null;
              [key: string]: unknown;
          },
      >