Incidents created by history cleanup job are not related with any process instance and therefore can not be reached from Cockpit for now.
Incidents related with history cleanup job may be requested from REST API like this:
GET /history/find-cleanup-job https://docs.camunda.org/manual/latest/reference/rest/history/get-history-cleanup-job/
GET /incident?configuration=someJobId https://docs.camunda.org/manual/latest/reference/rest/incident/get-query/
Questions to be asked before implementation:
- Are we showing historic incidents?
- Can it be more than one incident related with the job?
- Where and how exactly in Cockpit they must be shown?