We have written this script in probsummary table, in before update.
However, this trigger behaves abnormally. When we resolve incident, the related interaction status changes to resolved for once, but after some time the same interaction's status changes back to Open-Linked automatically. We have to save the incident and interaction again to resolve this error.
Please suggest a way to overcome this error and also kindly highlight the mistake we are doing in the triggers.
Re: Unable to resolve interaction ticket post related incident gets resolved.
Below 2 portions of script are working?
var RelRes=fRelation.doSelect('source="'+file.number+'" and source.filename="problem" and depend.filename="incidents" and depend.active="true"');
I have not used ' in scripts . in my understanding it must have been
Also you are using the OOB status field which is set based on OOB logic to proper status after related Incident is closed. You will have to try trigger on post update (change from Before Update) which might not work.
The easiest way to achieve this will be to add a custom field to manage your custom status and set it to required values at any moment you want.