Get the (ID of the) parent job by the (ID of the) current job

Hello everyone,

is there a way to get the parent job by the ID of the current job? E.g. I have the job with the ID 123. Now I would like to increase the expiretime of the parent job to a few days/weeks. Is there a way to get the parent job (commonly with the ID 122 in this case) and the object of this job in Visual Basic/C#?

Thanks and regards,
Marvin Klar