Revert Cancelled job

Hi Guys,

Is there a way to revert (either by using code or by some sql script) accidentally cancelled batch job and all it’s jobs that are in deleted state due cancellation? Help would be appreciated.

Kind regards,
Tarik Eminagic