Child incident should not close when assigned_to field is empty in Parent incident.

Feriha
Tera Contributor

Hi

Please help me to solve the use case

Child incident should not close when assigned_to field is empty in Parent incident.

Thank you:)

Fariha
1 ACCEPTED SOLUTION

piyushsain
Tera Guru
Tera Guru

Create a before update BR on incident table condition state changes to closed and  with below code 

 

if(current.parent.assigned_to=='')
{gs.addErrorMessage('Parent assigned to empty');
current.setAbortAction(true);}

 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

View solution in original post

3 REPLIES 3

piyushsain
Tera Guru
Tera Guru

Create a before update BR on incident table condition state changes to closed and  with below code 

 

if(current.parent.assigned_to=='')
{gs.addErrorMessage('Parent assigned to empty');
current.setAbortAction(true);}

 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

@piyushsain 

Thanks , it works.

 

Fariha

Feriha
Tera Contributor

Thanks @piyushsain 

It is working.

Fariha