Skip to content

Commit

Permalink
add cmdb fields to ticket enhanced since it links to other tables
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-reneeli committed Jan 11, 2024
1 parent 3df2be5 commit 8c1d8bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/servicenow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,10 @@ models:
description: '{{ doc("roles") }}'
- name: associated_change_request_id
description: '{{ doc("associated_change_request_id") }}'
- name: cmdb_ci_link
description: '{{ doc("cmdb_ci_value") }}'
- name: cmdb_ci_value
description: '{{ doc("cmdb_ci_value") }}'

- name: servicenow__activity_summary
description: '{{ doc("servicenow__activity_summary") }}'
Expand Down
2 changes: 2 additions & 0 deletions models/servicenow__ticket_enhanced.sql
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ select
case when change_task.change_task_id is not null then true else false end as is_change_task,
task.task_created_at,
task.sys_created_by,
task.cmdb_ci_link,
task.cmdb_ci_value,
creator.email as creator_email,
creator.manager_value as creator_manager_value,
creator.department_value as creator_department_value,
Expand Down

0 comments on commit 8c1d8bd

Please sign in to comment.