To get database view for incident and task_sla table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 01:01 AM
I want to create a database view in which i can get all the incidents which has SLA OR does not have SLA(incidents with or without SLA). 'incident_sla' table already shows record which has SLA but does not show incident without SLA.
Can someone help me to write 'where clause' query to get all incidents with OR without SLA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 01:55 AM
Hi Sharvan,
To get a list of all incidents, regardless of whether they have an SLA or not, you need to look at the incident table or the task table:
https://instance.service-now.com/incident_list.do
https://instance.service-now.com/task_list.do?sysparm_query=sys_class_name%3Dincident
I would always recommend filtering this by at least the 'Active' column, to show you either all the open incidents or all the closed incidents, depending on your needs:
https://instance.service-now.com/incident.do?sysparm_query=incident%5Eactive%3Dtrue
https://instance.service-now.com/incident.do?sysparm_query=incident%5Eactive%3Dfalse
Hope this helps.
Kind regards
Tracey

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2017 10:10 PM