Deleting work notes or comments.

Anselmo Cruz Ma
Kilo Expert
Is it possible to delete a note or comment on the incidents?
1 ACCEPTED SOLUTION

Hi, 

Its stored on the history line table (sys_history_line) and you need to delete it from there as well inorder to remove it from activity section.  

Here is the link for direct navigation, change instance name and sys_id as per your instance and record. 

 

https://<instance_name>.service-now.com/nav_to.do?uri=%2Fsys_history_line_list.do%3Fsysparm_query%3Dlabel%253DAdditional%2520comments%255Eset%<sys_id>%26sysparm_first_row%3D1%26sysparm_view%3D

Mar this thread as "Answered/Helpful" if this helps answer your question.

~Raghu.

View solution in original post

6 REPLIES 6

Ravi T
Tera Guru

Hi Anselmo,

Yes you delete the worknote or comment on the incidents by going to the sys_journal_field

copy the sys_id of the incident and search it in the Element id and delete that record from sys_journal_field

it will automatically delte the worknote or comment on the incident

Regards

Ravindra

Thank you. I have been able to locate and delete the records, but the comments are still in the annotations of the incident.

Is there any index that should be updated?

Raghu Loganatha
Kilo Guru

Hi, 

You can go to the table and delete it, here is the link. replace <instance_name> and <incident_sys_id_> in the following link with yours. 

https://<instance_name>.service-now.com/nav_to.do?uri=%2Fsys_journal_field_list.do%3Fsysparm_query%3DnameLIKEincident%255Eelement%253Dcomments%255Eelement_idSTARTSWITH<incident_sys_id>%26sysparm_first_row%3D1%26sysparm_view%3D%26sysparm_choice_query_raw%3D%26sysparm_list_header_search%3Dtrue

Or you can delete by running a background script. 

var gr = new GlideRecord("sys_journal_field");
gr.addQuery("element_id","<incident_sys_id>");
gr.addQuery("element","comments");
gr.deleteMultiple();



Let me know if you have further questions or mark this response as "Helpful/answered" if this helps answer your question.

~Raghu.

 

Thank you. I have been able to locate and delete the records, but the comments are still in the annotations of the incident.

Is there any index that should be updated?