- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 09:08 PM
I am creating the database view to Join problem task to problem to incident to SLA that can be reported on for things like: Problem task associated with disruptive incident has breach SLA.
May I know how to achieve?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 04:49 AM - edited 07-09-2024 04:50 AM
I don't think you need all 4 tables for that. It could be enough to join [problem_task] with [task_sla] and add a where clause to narrow the list down to just the problem tasks that are children of problems records associated with a disruptive incident.
To get an idea how to join [problem_task] with [task_sla], take a look at database views [incident_sla] or [problem_sla] that are available in the base system.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 02:39 AM
It seems that you are trying to join 4 tables. Do you really need all of them in your database view? What attributes from each of those tables would you like the database view to display? Which table do your SLAs run on? And how do you define a "disruptive incident"?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 03:12 AM
yes, Join problem task to problem to incident to SLA , "disruptive incident" is a filed in Incident table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 03:23 AM
I need to get the problem task count, which under problem have link with disruptive incident, and need to count these problem task if have breach SLA (SLA created in problem_task table)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 04:49 AM - edited 07-09-2024 04:50 AM
I don't think you need all 4 tables for that. It could be enough to join [problem_task] with [task_sla] and add a where clause to narrow the list down to just the problem tasks that are children of problems records associated with a disruptive incident.
To get an idea how to join [problem_task] with [task_sla], take a look at database views [incident_sla] or [problem_sla] that are available in the base system.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/