Set SLA according to Parent

Hello everyone,

I am trying to create a script for RTIR and I was wondering if anyone had any experience or advice on how to ensure that the SLA (service level agreement) for investigations and countermeasures is the same as the parent incident. Any suggestions or tips would be greatly appreciated. Thanks!