Database view for task_sla, sc_task and incident tables

Alina-Maria_S
Tera Expert

Hello everybody, 

 

I want to create a database view where to see data from the following tables: task_sla, sc_task and incident - as I need to be able to see all task_sla associated with Incidents and Catalog tasks on the same view, together with the Requested for Catalog task and Caller for Incidents. 

I have configured the Database as below:

AlinaMariaPas_0-1698750254012.png

But no records are displayed: 

AlinaMariaPas_1-1698750290389.png

Could you please help? 

1 ACCEPTED SOLUTION

@Alina-Maria_S 

you create database view usually between tables which are linked to each other in some sense.

In this case incident and sc_task are not linked

Incident is something which is created for something not working

sc_task is created for catalog items

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

AndersBGS
Tera Patron
Tera Patron

Hi @Alina-Maria_S ,

 

Basic for seeing incidents and SLAs associated to incidents you can utilize the incident_sla OOTB database view that there is available. 

 

According to your other requirement for sc_task and incident, how are these associated together? or do you mean incident_task instead of sc_task?

 

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

 

Best regards

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/

Hi @AndersBGS ,

 

Thank you for replying. The requirement is to have on the same list displayed SLAs associated with Incidents and Catalog Tasks with the possibility to add on the list following fields: Requested for (for Catalog Task) and Caller (for Incidents). 

 

Kind regards,

Alina 

Ankur Bawiskar
Tera Patron
Tera Patron

@Alina-Maria_S 

you can join task_sla with incident and task_sla with sc_task

what's the link between incident and sc_task?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar , there is no link between incident and sc_task. Without the link between them, I cannot use the database view?