business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 02:54 AM
when we close problem ticket then automatically all related incident should closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 02:58 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 02:59 AM
Below link may help
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0743796
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 03:04 AM
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();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 03:04 AM
This should happen out of the box.
What's the issue?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader