Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
## Bug Fixes
- Ensures that issues in `jira__issue_enhanced` properly reflect their current sprint assignments. Previously, if an issue was assigned to a sprint and later unassigned (leaving it with no sprint), the old sprint would persist as the issue's `current_sprint_name` and `current_sprint_id`.

## Test Updates
- Fixes `vertical_integrity_sprint_enhanced` test to filter out deleted issues (as done in `stg_jira__issue`) to align source/end model issue counts by sprint.
- Excludes more fields that are aggregated strings with non-deterministic orders to the exclude columns set in `consistency_issue_enhanced`.

# dbt_jira v1.3.0

[PR #159](https://github.com/fivetran/dbt_jira/pull/159) includes the following updates:
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ profile: 'integration_tests'

vars:
# Comment out the below when generating docs
issue_field_history_columns: ['summary', 'components', 'team' ,'project'] # @docs-ignore
issue_field_history_columns: ['team', 'assignee', 'labels', 'collaborators', 'quarter', 'project'] # @docs-ignore

jira:
jira_schema: jira_integrations_tests_42
jira_comment_identifier: "comment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
) }}

{# Exclude columns that depend on calculations involving the current time in seconds or aggregate strings in a random order, as they will differ between runs. #}
{% set exclude_columns = ['open_duration_seconds', 'any_assignment_duration_seconds', 'last_assignment_duration_seconds', 'fixes_versions', 'affects_versions', 'conversation', 'sprint'] + var('consistency_test_exclude_metrics', []) %}
{% set exclude_columns = ['open_duration_seconds', 'any_assignment_duration_seconds', 'last_assignment_duration_seconds', 'fixes_versions', 'affects_versions', 'conversation', 'sprint', 'labels', 'collaborators', 'quarter'] + var('consistency_test_exclude_metrics', []) %}
with prod as (
select {{ dbt_utils.star(from=ref('jira__issue_enhanced'), except=exclude_columns) }}
from {{ target.schema }}_jira_prod.jira__issue_enhanced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ sprint as (
from {{ ref('stg_jira__sprint') }}
),

issue as (

select *
from {{ ref('stg_jira__issue') }}
),

issue_sprint_fields as (

select
Expand All @@ -40,6 +46,8 @@ issue_sprint_fields as (
from issue_multiselect_history
inner join field
on field.field_id = issue_multiselect_history.field_id
inner join issue
on cast(issue.issue_id as string) = issue_multiselect_history.field_id
where lower(field.field_name) = 'sprint'
),

Expand Down