Historic incidents are linked to their respective source by CONFIGURATION_ and INCIDENT_TYPE_.
- In case of job incidents, this source is a runtime job which might not be accessible anymore when the respective process instance ends. The stacktrace is not accessible anymore by then as well.
- In case of external task failures, the source is an external task who is only linked to the last known errorDetail which might change in every retry. The stacktrace of previous retries is not accessible anymore and all incidents show the same errorDetail.
The historic incidents are linked to the specific source of the stacktrace which is accessible at any time.
The job log and the external task log both link to such durable sources and are able to show the correct stacktrace regardless of the instance's status.