Skip to main content
All CollectionsWrk Action LibraryPagerDuty
Retrieve all incidents from PagerDuty
Retrieve all incidents from PagerDuty
Wrk Product avatar
Written by Wrk Product
Updated over 2 months ago

Retrieve all incidents from PagerDuty.

Application

  • PagerDuty

Inputs (what you have)

Name

Description

Data Type

Required?

Example

Connected Account

The connected account to use for the request

Connected Account

Yes

Return all?

Whether to return all results or only up to a given limit

True/False

No

Limit

Max number of results to return

Number

No

Date range

When set to all, the since and until parameters and defaults are ignored

Predefined Choice List

No

Incident key

Incident de-duplication key. Incidents with child alerts do not have an incident key; querying by incident key will return incidents whose alerts have alert_key matching the given incident key

Text (Short)

No

Include

Additional details to include

Predefined Choice List

No

Service ID 1

Returns only the incidents associated with the passed service(s)

Text (Short)

No

Service ID 2

Returns only the incidents associated with the passed service(s)

Text (Short)

No

Service ID 3

Returns only the incidents associated with the passed service(s)

Text (Short)

No

Since

The start of the date range over which you want to search. (the limit on date ranges is 6 months)

Datetime

No

Sort by

Used to specify both the field you wish to sort the results on (incident_number/created_at/resolved_at/urgency), as well as the direction (asc/desc) of the results. The sort_by field and direction should be separated by a colon. A maximum of two fields can be included, separated by a comma

Text (Short)

No

Statuses

Returns only the incidents associated with the passed service(s)

Predefined Choice List

No

Team IDs

Team IDs. Only results related to these teams will be returned. Account must have the teams ability to use this parameter. (multiples IDs can be added separated by comma)

Text (Long)

No

Timezone ID

Time zone in which dates in the result will be rendered. If not set dates will return UTC

Text (Short)

No

Until

The end of the date range over which you want to search. (the limit on date ranges is 6 months)

Datetime

No

Urgencies

Urgencies of the incidents to be returned. Defaults to all urgencies. Account must have the urgencies ability to do this

Predefined Choice List

No

User IDs

Returns only the incidents currently assigned to the passed user(s). This expects one or more user IDs (multiple IDs can be added separated by comma)

Text (Long)

No

Outputs (what you get)

Name

Description

Data Type

Required?

Example

JSON Output

JSON output returned by the API

Text (Long)

No

Outcomes

Name

Description

Success

This status is selected if the job has successfully completed.

Unsuccessful

This status is selected if the job has completed unsuccessfully.

Requirements

  • N/A

Did this answer your question?