On failure jobs information

Hi,

is there a way to get the name of the failed job in a job that triggers on_failure?
I can’t find it in any environmental variables of the on_failure triggered job but there may be another way to pass the info from the job failing to the one being triggered by that failure.

Thanks,
Isaac