How to report on incident table and check for certain keyswords in work notes field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2024 10:35 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2024 10:18 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2024 03:15 AM
Hello @Snehal13 ,
Could you please mark this answer as accepted solution in order to close this thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2024 04:18 AM
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2024 10:19 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2024 08:27 AM
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.