Skip to main content

Hey all, 

I’m utilizing the /incidents API to fetch all incidents for an internal report. From what I can tell the since/until date parameter is filtering based on the created_at date. Does anyone know if there is a way to filter based on the updated_at field? 
I’d like to incrementally load a warehouse with the incidents from this API, but you can’t really do that if you can only filter by the created_at date. 

 

Hi ​@jlarrimore, the only date field PagerDuty currently allows to filter by is created_at. You can also sort by the resolved_at field.

If you need to incrementally load only updated incidents, the best workaround is to fetch all incidents created since your last sync, then filter them by updated_at in your own process. If you want to catch updates to older incidents, you’ll need to periodically re-fetch a larger window and check the updated_at field locally.

I've submitted your request to ProdDev to see if this is something we can implement, as the updated_at filter is a common request in the community.


Okay, thanks ​@xamici. I will take that approach until this updated_at filter is implemented. 


Hi ​@xamici - is there an update on this request, and do you know an expected implementation date?

 

Thanks!


Hi ​@jlarrimore

Thanks for following up! The updated_at filter isn't currently on our product roadmap, but it has been flagged to the product team as an enhancement for a potential future refresh of the incident list page. Nothing is planned at this time though, so I can't provide an implementation timeline.

For now, the workaround of filtering by created_at and sorting by resolved_at is your closest option.