Database views

antonio30
Giga Contributor

I am attempting to combine the Incident table and the Task table to create a custom report in ServiceNow.   When reporting using the Database view I can pull most of the information except the additional comments and work notes don't come over.   The fields display but they are empty.   I can use a report from the Incident table and the additional comments and work notes   display just fine.   Any thoughts or ideas on what I may be doing wrong with my Database view?

1 ACCEPTED SOLUTION

OK, that helps. First, you're creating a view using Incident and Task SLA, not Task - I see that this caused confusion in the replies (Task SLA is NOT extended from Task, so you need a database view to join them). Second, you don't need to use sys_journal_field (unless there are reasons I'm not aware of).



I have recreated the view as follows and it shows values for Additional comments, Work notes, and Comments and Work notes as you can see below:


find_real_file.png


find_real_file.png


View solution in original post

29 REPLIES 29

Can you click on Personalize List (the gear icon) and add "Comments and Work notes" as shown below:


find_real_file.png


In my List View, I can see values in separate Additional comments and Work notes columns, so I'm not sure why you're not seeing them. Are you still using a database view or are you using a List View for Incident?


antonio30
Giga Contributor

Yes I can add Additional comments and Work notes but return the same empty values.   See below find_real_file.png


Which table are the columns "SLA definition" and "Stage" from? Can you show a screenshot of your Database View?


antonio30
Giga Contributor

Please see
find_real_file.png