jira.js
    Preparing search index...

    Function getAuditRecords

    • Returns a list of audit records. The list can be filtered to include items:

      • Where each item in filter has at least one match in any of these fields:

        • summary
        • category
        • eventSource
        • objectItem.name If the object is a user, account ID is available to filter.
        • objectItem.parentName
        • objectItem.typeName
        • changedValues.changedFrom
        • changedValues.changedTo
        • remoteAddress

        For example, if filter contains man ed, an audit record containing summary": "User added to group" and "category": "group management" is returned.

      • Created on or after a date and time.

      • Created or or before a date and time.

      Permissions required: Administer Jira global permission.

      Parameters

      • client: Client
      • Optionalparameters: { filter?: string; from?: string; limit?: number; offset?: number; to?: string }
        • Optionalfilter?: string

          The strings to match with audit field content, space separated.

        • Optionalfrom?: string

          The date and time on or after which returned audit records must have been created. If to is provided from must be before to or no audit records are returned.

        • Optionallimit?: number

          The maximum number of results to return.

        • Optionaloffset?: number

          The number of records to skip before returning the first result.

        • Optionalto?: string

          The date and time on or before which returned audit results must have been created. If from is provided to must be after from or no audit records are returned.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              limit?: number;
              offset?: number;
              records?: {
                  associatedItems?: {
                      id?: string;
                      name?: string;
                      parentId?: string;
                      parentName?: string;
                      typeName?: string;
                      [key: string]: unknown;
                  }[];
                  authorAccountId?: string;
                  authorKey?: string;
                  category?: string;
                  changedValues?: {
                      changedFrom?: string;
                      changedTo?: string;
                      fieldName?: string;
                      [key: string]: unknown;
                  }[];
                  created?: Date;
                  description?: string;
                  eventSource?: string;
                  id?: number;
                  objectItem?: {
                      id?: string;
                      name?: string;
                      parentId?: string;
                      parentName?: string;
                      typeName?: string;
                      [key: string]: unknown;
                  };
                  remoteAddress?: string;
                  summary?: string;
                  [key: string]: unknown;
              }[];
              total?: number;
              [key: string]: unknown;
          },
      >