- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2017 10:04 PM
Sometimes ,we get security incidents and user wants to delete worknotes on the incidents.
so how we can delete worknotes or comments on incidents.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017 01:12 AM
We used background script for deleting worknote in the incidents,below are scripts,
var gr = new GlideRecord('sys_history_line')
gr.addQuery('sys_id','Wrire down the sysid of record of worknote');
gr.query();
if(gr.next()){
gr.deleteRecord();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2017 10:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017 01:12 AM
We used background script for deleting worknote in the incidents,below are scripts,
var gr = new GlideRecord('sys_history_line')
gr.addQuery('sys_id','Wrire down the sysid of record of worknote');
gr.query();
if(gr.next()){
gr.deleteRecord();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2019 02:50 PM
This has deleted only one set of record in history_line table. but when i impersonate other user the COMMENT is still visible. (not visible for me though)
Followed below steps to Delete the Comment:-
* nav--> sys_history_line.list and filter for Worknotes records
* filter condition--> set is INC sys_id
* filter the worknotes record and delete
This will delete the Comment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017 02:26 AM