Skip to content

Atlassian: Get audit records

Atlassian auditRecords.getAuditRecords: arguments, response, policy and SDK examples.

← Audit records operations · Get started

Operation atlassian.getauditrecords

Provider route: GET /{cloudId}/rest/api/3/auditing/record. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["auditRecords"]["getAuditRecords"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.auditRecords.getAuditRecords(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.audit_records.get_audit_records(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
queryobjectOptionalAdditional keys: not allowed
query.offsetintegerOptionalDefault: 0
Format: int32
query.limitintegerOptionalDefault: 1000
Format: int32
query.filterstringOptional
query.fromstringOptional
query.tostringOptional

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Get audit records — response body

Referenced models: Get audit records — response body

Get audit records — response body
FieldTypePresenceDescription and constraints
$objectRootContainer for a list of audit records.
limitJSONOptional
limit (anyOf 1)JSONAlternative
limit (anyOf 1) (anyOf 1)integerAlternativeThe requested or default limit on the number of audit items to be returned.
Format: int32
Read only: true
limit (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
limit (anyOf 2)nullAlternative
offsetJSONOptional
offset (anyOf 1)JSONAlternative
offset (anyOf 1) (anyOf 1)integerAlternativeThe number of audit items skipped before the first item in this list.
Format: int32
Read only: true
offset (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
offset (anyOf 2)nullAlternative
recordsJSONOptional
records (anyOf 1)arrayAlternativeThe list of audit items.
Read only: true
records (anyOf 1)[]ModelEach itemExpand Get audit records — response body — records The list of audit items item
records (anyOf 2)nullAlternative
totalJSONOptional
total (anyOf 1)JSONAlternative
total (anyOf 1) (anyOf 1)integerAlternativeThe total number of audit items returned.
Format: int64
Read only: true
total (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
total (anyOf 2)nullAlternative

Referenced models: Get audit records — response body — records The list of audit items item

Get audit records — response body — records The list of audit items item
FieldTypePresenceDescription and constraints
$objectRootAn audit record.
associatedItemsJSONOptional
associatedItems (anyOf 1)arrayAlternativeThe list of items associated with the changed record.
Read only: true
associatedItems (anyOf 1)[]ModelEach itemExpand Get audit records — response body — records The list of audit items item object Item id, name, parent Id, parent Name, type Name
associatedItems (anyOf 2)nullAlternative
authorKeyJSONOptional
authorKey (anyOf 1)stringAlternativeDeprecated, use `authorAccountId` instead. The key of the user who created the audit record.
Read only: true
authorKey (anyOf 2)nullAlternative
categoryJSONOptional
category (anyOf 1)stringAlternativeThe category of the audit record. For a list of these categories, see the help article [Auditing in Jira applications](https://confluence.atlassian.com/x/noXKM).
Read only: true
category (anyOf 2)nullAlternative
changedValuesJSONOptional
changedValues (anyOf 1)arrayAlternativeThe list of values changed in the record event.
Read only: true
changedValues (anyOf 1)[]ModelEach itemExpand Get audit records — response body — records The list of audit items item changed Values The list of values changed in the record event item
changedValues (anyOf 2)nullAlternative
createdJSONOptional
created (anyOf 1)JSONAlternative
created (anyOf 1) (anyOf 1)stringAlternativeThe date and time on which the audit record was created.
Read only: true
created (anyOf 1) (anyOf 2)integerAlternative
created (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the audit record.
Read only: true
description (anyOf 2)nullAlternative
eventSourceJSONOptional
eventSource (anyOf 1)stringAlternativeThe event the audit record originated from.
Read only: true
eventSource (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)JSONAlternative
id (anyOf 1) (anyOf 1)integerAlternativeThe ID of the audit record.
Format: int64
Read only: true
id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
id (anyOf 2)nullAlternative
objectItemJSONOptional
objectItem (anyOf 1)ModelAlternativeExpand Get audit records — response body — records The list of audit items item object Item id, name, parent Id, parent Name, type Name
objectItem (anyOf 2)nullAlternative
remoteAddressJSONOptional
remoteAddress (anyOf 1)stringAlternativeThe URL of the computer where the creation of the audit record was initiated.
Read only: true
remoteAddress (anyOf 2)nullAlternative
summaryJSONOptional
summary (anyOf 1)stringAlternativeThe summary of the audit record.
Read only: true
summary (anyOf 2)nullAlternative

Referenced models: Get audit records — response body — records The list of audit items item object Item id, name, parent Id, parent Name, type Name, Get audit records — response body — records The list of audit items item changed Values The list of values changed in the record event item

Get audit records — response body — records The list of audit items item object Item id, name, parent Id, parent Name, type Name
FieldTypePresenceDescription and constraints
$objectRootDetails of an item associated with the changed record.
idJSONOptional
id (anyOf 1)stringAlternativeThe ID of the associated record.
Read only: true
id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the associated record.
Read only: true
name (anyOf 2)nullAlternative
parentIdJSONOptional
parentId (anyOf 1)stringAlternativeThe ID of the associated parent record.
Read only: true
parentId (anyOf 2)nullAlternative
parentNameJSONOptional
parentName (anyOf 1)stringAlternativeThe name of the associated parent record.
Read only: true
parentName (anyOf 2)nullAlternative
typeNameJSONOptional
typeName (anyOf 1)stringAlternativeThe type of the associated record.
Read only: true
typeName (anyOf 2)nullAlternative
Get audit records — response body — records The list of audit items item changed Values The list of values changed in the record event item
FieldTypePresenceDescription and constraints
$objectRootDetails of names changed in the record event.
changedFromJSONOptional
changedFrom (anyOf 1)stringAlternativeThe value of the field before the change.
Read only: true
changedFrom (anyOf 2)nullAlternative
changedToJSONOptional
changedTo (anyOf 1)stringAlternativeThe value of the field after the change.
Read only: true
changedTo (anyOf 2)nullAlternative
fieldNameJSONOptional
fieldName (anyOf 1)stringAlternativeThe name of the field changed.
Read only: true
fieldName (anyOf 2)nullAlternative

SDK function policy ID: atlassian.getauditrecords. Catalog operation: getauditrecords. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["manage:jira-configuration"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.