Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
  • Event actions
  • Events
  • Event queries
Cloud
Audit Log / Reference / REST API

Event queries

Postman Collection
OpenAPI
GET

List event queries

Returns event queries visible to the caller in the workspace.

Scopes
manage:jira-configuration

Connect app scope required: READ

Request

Path parameters

workspaceId

string

Required

Query parameters

cursor

string

limit

integer

Responses

A page of event queries.

application/json

EventQueryPage
GET/audit-log/v1/workspaces/{workspaceId}/event-queries
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/audit-log/v1/workspaces/{workspaceId}/event-queries' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 { "data": [ { "id": "0199d36a-08a1-7f04-9505-1f6d0a64de55", "type": "eventQueries", "attributes": { "status": "IN_PROGRESS", "filters": { "action": [ "project_updated" ], "q": "PROJECT-123" } }, "links": { "self": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55", "results": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55/results", "cancel": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55/cancel" } } ], "links": { "self": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries?limit=100" } }
POST

Create an event query

Creates and queues an asynchronous workspace event query. The from and to filters must either both be supplied or both be omitted.

Scopes
manage:jira-configuration

Connect app scope required: READ

Request

Path parameters

workspaceId

string

Required

Request bodyapplication/json

filters

oneOf [any, not [anyOf [object, object]]]

Required

Responses

The event query was accepted.

Headers

Location

string

Required

application/json

EventQueryEnvelope
POST/audit-log/v1/workspaces/{workspaceId}/event-queries
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 curl --request POST \ --url 'https://api.atlassian.com/audit-log/v1/workspaces/{workspaceId}/event-queries' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "filters": { "from": 1785542400000, "to": 1785628800000, "action": [ "project_updated" ], "actors": [ { "id": "712020:abc123", "name": "Example User", "email": "example@atlassian.com" } ], "q": "PROJECT-123", "ip": [ "203.0.113.10" ], "locations": [ { "city": "Atlanta", "regionName": "Georgia", "countryName": "United States" } ] } }'
202Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 { "data": { "id": "0199d36a-08a1-7f04-9505-1f6d0a64de55", "type": "eventQueries", "attributes": { "status": "QUEUED", "filters": { "action": [ "project_updated" ], "q": "PROJECT-123" } }, "links": { "self": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55", "results": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55/results", "cancel": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55/cancel" } } }
GET

Get an event query

Returns the current status and details of an event query.

Scopes
manage:jira-configuration

Connect app scope required: READ

Request

Path parameters

workspaceId

string

Required
queryId

string

Required

Responses

The event query.

application/json

EventQueryEnvelope
GET/audit-log/v1/workspaces/{workspaceId}/event-queries/{queryId}
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/audit-log/v1/workspaces/{workspaceId}/event-queries/{queryId}' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 { "data": { "id": "0199d36a-08a1-7f04-9505-1f6d0a64de55", "type": "eventQueries", "attributes": { "status": "QUEUED", "filters": { "action": [ "project_updated" ], "q": "PROJECT-123" } }, "links": { "self": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55", "results": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55/results", "cancel": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55/cancel" } } }
GET

Get event-query results

Returns a page of results for a completed event query. While the query is queued or in progress, the response is 202 Accepted with a Retry-After header.

Scopes
manage:jira-configuration

Connect app scope required: READ

Request

Path parameters

workspaceId

string

Required
queryId

string

Required

Query parameters

cursor

string

limit

integer

Header parameters

Accept-Language

string

Responses

A page of matching events.

application/json

WorkspaceEventPage
GET/audit-log/v1/workspaces/{workspaceId}/event-queries/{queryId}/results
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/audit-log/v1/workspaces/{workspaceId}/event-queries/{queryId}/results' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 { "data": [ { "id": "0199d36a-08a1-7f04-9505-1f6d0a64de55", "type": "events", "attributes": { "time": "2026-11-02T12:00:00Z", "action": "project_updated", "actor": { "id": "712020:abc123", "name": "Example User" }, "context": [ { "id": "PROJECT-123", "type": "project", "attributes": { "name": "Example project" } } ] }, "message": { "content": "Example User updated Example project", "format": "text" } } ], "links": { "self": "https://api.atlassian.com/audit-log/v1/workspaces/ari%3Acloud%3Ajira%3A%3Asite%2Fabc-123/event-queries/0199d36a-08a1-7f04-9505-1f6d0a64de55/results?limit=100" }, "meta": { "total": 1 } }
POST

Cancel an event query

Cancels an event query that has not reached a terminal state.

Scopes
manage:jira-configuration

Connect app scope required: READ

Request

Path parameters

workspaceId

string

Required
queryId

string

Required

Responses

The cancellation request was accepted.

POST/audit-log/v1/workspaces/{workspaceId}/event-queries/{queryId}/cancel
1 2 3 curl --request POST \ --url 'https://api.atlassian.com/audit-log/v1/workspaces/{workspaceId}/event-queries/{queryId}/cancel' \ --user 'email@example.com:<api_token>'

Rate this page: