The CreatorCon Call for Content is officially open! Get started here.

How to report on incident table and check for certain keyswords in work notes field

Snehal13
Kilo Sage

How to report on incident table and check for certain keyswords in work notes field

 

I cat find work notes column when I select incident on OOB report in ServiceNow

9 REPLIES 9

I am querying sys_journal field table and able to get incident records with ORing keywords in work notes

But this one doesnt provide details of incident category, assignment group, state etc

 

Ex - Table - sys_journal_field

Element = work notes

name is incident

value is 'executed script' OR

value is 'ran the script'

 

Any better alternative , I want the complete record list view of all incident that have work notes as either of 'executed the script' or 'ran the script'. OOB reporting of ServiceNow isnt having any such capability.

Abhishek_Thakur
Mega Sage

Hello @Snehal13 ,

 

Could you please mark this answer as accepted solution in order to close this thread.

Hi @Abhishek_Thakur ,

 

Don’t ask him to close the question. You don’t know if the solution is sufficient. - this is just poor behavior.

 

/Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

This one isnt useful Abhishek.

 

I am querying sys_journal field table and able to get incident records with ORing keywords in work notes

But this one doesnt provide details of incident category, assignment group, state etc

 

Ex - Table - sys_journal_field

Element = work notes

name is incident

value is 'executed script' OR

value is 'ran the script'

 

Any better alternative , I want the complete record list view of all incident that have work notes as either of 'executed the script' or 'ran the script'. OOB reporting of ServiceNow isnt having any such capability.

Tsura Andreeva
Mega Sage

Hello, take a look at this one - https://www.servicenow.com/community/service-management-forum/create-report-using-worknotes-of-ticke...

Work Notes and Additional Comments are stored in a table named "sys_journal_field". You can report directly on that table, but for a more meaningful report, you can tie those comments to an incident, by creating a database view, joining the "task" table to "sys_journal_field" on element_ID = sys_id.

Then use your database view to report on your requirement.