business rule

soniya patil
Tera Contributor

when we close problem ticket then automatically all related incident should closed 

 

 

4 REPLIES 4

Voona Rohila
Kilo Patron
Kilo Patron

Hi @soniya patil 

Make sure to activate the OOB business rule which Closes any incidents that are related to the associated problem. Below is the name of the business rule:

SNC - ITIL - Close Related: https://<instance-name>.service-now.com/nav_to.do?uri=sys_script.do?sys_id=1c263220c6112275006955271...

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0743796


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Vishal Birajdar
Giga Sage

Hi @soniya patil 

 

Below link may help 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0743796

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Rohit01998
Tera Guru

Hello @soniya patil 

Create After Update business rule and try below script...

var gd = new GlideRecord('incident');
gd.addQuery('problem_id', current.sys_id);
gd.query();
while(gd.next()){

gd.setValue("close_code", 'Resolved by problem');

gd.setValue("close_notes", current.getValue("close_notes"));

gd.setValue('state','7');

gd.update();
}

Ankur Bawiskar
Tera Patron
Tera Patron

@soniya patil 

This should happen out of the box.

What's the issue?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader