Skip to content

Commit

Permalink
add decision log for table relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-reneeli committed Jan 17, 2024
1 parent 0d84386 commit 3bdaa43
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 17 deletions.
36 changes: 36 additions & 0 deletions models/DECISIONLOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Relationships between Task, Problem, Incident, and Change Request tables in ServiceNow

Tasks, Problems, Incidents, and Change Requests are related in ServiceNow. To add clarity to the logic in our models, below are summaries of each table and additional information regarding the relationship between the tables.

### Tables
#### Tasks:

- The base table for various task types, including Incident, Problem, Change Request, and more. Contains common fields and functions as a central point for task management.

#### Incidents:

- Extends from Tasks. Represents a reported issue or service disruption. Can be related to Configuration Items (CIs) and assigned to specific groups or individuals.
- Can be caused by and therefore linked to Problems. It can also be waiting on a Change Request.

#### Problems:

- Extends from Tasks. Represents the underlying cause of one or more incidents. Therefore they can be linked to Incidents and may involve a root cause analysis.

#### Change Requests:

- Extends from Tasks. Represents a proposed change to the IT infrastructure or services. Can be related to CIs and undergoes an approval process. A Change Request can result from a Problem or Incident.

### Table Relationships:

Incidents and Problems are often related to Tasks through a parent-child relationship. An Incident or Problem task can have related sub-tasks. All Incident and Problem tasks exist in the main Task table. An Incident can be caused by more than one Problem, and a Problem can cause more than one Incident. Therefore the relationship is many-to-many.

Change Requests may also have a parent-child relationship with Tasks when tasks are created to implement the changes proposed in the change request.

A Change Request can result from multiple Problems or Incidents. Multiple Change Requests can be created from a Problem or Incident. Therefore the relationship is many-to-many.

You can create a Problem or Change Request from Incident, or, Change Request from Problem, or can create an Incident from Change Request in cases where it is required.


### Example Relationship:

- Suppose a user creates a Incident for an issue and then 100 other users create an Incident with the same issue. You would create a Problem for all the incidents, therefore linking all Incidents to one Problem. Once the problem record is resolved, it will close out all of the incidents as well.
17 changes: 0 additions & 17 deletions models/intermediate/int_servicenow__incidents_per_problem.sql

This file was deleted.

0 comments on commit 3bdaa43

Please sign in to comment.