- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 07:07 AM
Hi everybody i have a problem with this story, I am a junior Developer and now i start with the ServiceNow Certification and I need a little bit of your help for this Story:
As an ITIL User
I WANT that when an incident is closed (state changes to Closed), the system goes through active incidents with the same Short Description and add the following work note:
"Please note that incident " + [INCIDENT NUMBER] + " with the same Short Description has been closed"
So that similar incidents than the one that I am closing have additional information and may leverage the solution.
I know this is complete when active incidents with same short description than the incident that I am closing get a worknotes as mentionned in the story description.
Thanks for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 07:12 AM
write an after business rule on incident table
condition: state changes to closed
script
var gr = new GlideRecord('incident');
gr.addActiveQuery('short_description',current.short_description);
gr.query();
while(gr.next())
{
gr.work_notes="Please note that incident " +current.number+ " with the same Short Description has been closed".
gr.update();
}
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2023 11:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 07:12 AM
write an after business rule on incident table
condition: state changes to closed
script
var gr = new GlideRecord('incident');
gr.addActiveQuery('short_description',current.short_description);
gr.query();
while(gr.next())
{
gr.work_notes="Please note that incident " +current.number+ " with the same Short Description has been closed".
gr.update();
}
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2023 11:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 04:36 AM
Thank you so much for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 06:04 AM