- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2021 04:49 AM
When problem ticket closed then related incidents tickets should close automatically
Is there Out Of The Box way to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2021 04:56 AM
Hello Author,
Please follow this link
Please mark Correct✅/helpful if applicable, thanks!!
Prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2021 05:40 AM
Hi Harshad Pasalkar,
I have tried with senario in my pdi you can use After Update Business Rule
// Add your code here
var vew = new GlideRecord('incident');
vew.addActiveQuery(); //Cross check only active incidents
vew.addQuery('problem_id', current.sys_id);
vew.query();
while(vew.next()){
vew.state = '7';
vew.close_code = 'Solved (Work Around)';
vew.close_notes = 'The incident is Closed/Resolved';
vew.update();
}
I also attached my docs of this pdi. Please refer this
If this solution works for you, please mark it as helpful.
Regards,
Deepshikha Pandey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2021 05:53 AM
Why not use Flow Designer with no Scripting
Example below:
Note: Remember to Save and Activate the Flow before you test
Final Flow Steps
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2021 12:30 AM
Hope you are doing good.
Did my reply answer your question?
If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.
Thanks!
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2021 11:10 PM
Why not use OOB Business rule mentioned by
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2021 06:05 AM