Incident Label History

tlohnes
Giga Contributor

I am inquiring about how one would audit/report on the tag assignment (including changes) to an incident?

 

I have found the labels in the label_entry table, but I am looking for the history of changes as well.  Is that possible?

 

Similar ask from 2020: https://www.servicenow.com/community/servicenow-ai-platform-forum/can-tags-be-audited-in-servicenow/...

1 ACCEPTED SOLUTION

@tlohnes I have been testing it for label_entry and adding and neither removing tags is not audited anywhere, despite evey relevant fields were set Audit == true...

 

only what is audited is for example if you rename "Test tag" to "Test Tag 1", that will be audited but not adding and removing...

KamilT_0-1752702069147.png

 

You would be able to see adding tags in a report but not sure how to do it with the removing, perhaps a business rule on the label_entry table triggering an event but is that really necessary?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


View solution in original post

6 REPLIES 6

GlideFather
Tera Patron

Hi @tlohnes,

 

for the audit on anything in ServiceNow, when it is not active and you will activate it, it doesn't show the history retrospectively. So below I will show you how you can start auditing your wanted fields and their changes but you will be able to see it after you do it, not before...

 

For that, go to System Definition > Dictionary and search for the table of your need - in this case [incident], then filter the records that Type == Collection, and add a column Audit and mark it true. 

 

if you mark it true as per the first row, it will apply to all the form with every field in it, but if you want to do it for selected field only that would be the lines below:

KamilT_0-1752699881318.png

 

(alternative is to go to field's sys dictionary and add the attribute for audit true, it is the same, but this seems easier to explain)

 

Once you marked the Audit true, after that you will be able to see changes in Audit [sys_audit] table:

KamilT_1-1752699997606.png

Here you have Document key (that is the sys ID of a particular incident), Old and New value (changed from what to what), by whom, when and in what field of incident.

 

This will be applicable to anything that you need or if you want to stop auditing you just do negation of the step 1 but remember the audit start to creates records after it is true, not possible to get these information retrospectively.

 

You mentioned tags, that would need to start the audit and then you can see that as well. Please let me know if this is what you were looking for and if my response was helpful

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


@tlohnes 

for the label_entry, it is the same, navigate here:

KamilT_2-1752700272977.png

https://yourinstance.service-now.com/sys_dictionary_list.do?sysparm_query=name%3Dlabel_entry%5Einternal_type%3Dcollection&sysparm_view=

 

And mark the Audit to true. From that moment on you should be able to see the Audit history under this link:

https://yourinstance.service-now.com/sys_audit_list.do?sysparm_query=tablenameSTARTSWITHlabel_entry&sysparm_view=

 

Please tell me how much do you love this new feature in your instance 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


@tlohnes I have been testing it for label_entry and adding and neither removing tags is not audited anywhere, despite evey relevant fields were set Audit == true...

 

only what is audited is for example if you rename "Test tag" to "Test Tag 1", that will be audited but not adding and removing...

KamilT_0-1752702069147.png

 

You would be able to see adding tags in a report but not sure how to do it with the removing, perhaps a business rule on the label_entry table triggering an event but is that really necessary?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


@tlohnes 

you can check script include TagUtil:

KamilT_0-1752732910281.png

And eventually add there an event (one for adding and one for removing) with parameters - user and where the tag was,

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */