Skip to content

Commit 78c4963

Browse files
Merge pull request #62 from troyschuetrumpf-elation/bug/sprint_history_missing
Bug/sprint history missing
2 parents b383b19 + a612556 commit 78c4963

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# dbt_jira v0.8.2
2+
## Bug Fixes
3+
- Corrected bug introduced in 0.8.0 that would prevent `sprint` data from being passed to model `jira__daily_issue_field_history`. ([#62](https://github.com/fivetran/dbt_jira/pull/62))
4+
5+
6+
## Contributors
7+
- [@troyschuetrumpf-elation](https://github.com/troyschuetrumpf-elation) ([#62](https://github.com/fivetran/dbt_jira/pull/62))
8+
19
# dbt_jira v0.8.1
210
## Features
311
- Makes priority data optional. Allows new env var `jira_using_priorities`. Models `jira__issue_enhanced` and `int_jira__issue_join` won't require source `jira.priority` or contain priority-related columns if `jira_using_priorities: false`. ([#55](https://github.com/fivetran/dbt_jira/pull/55))

dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'jira'
2-
version: '0.8.1'
2+
version: '0.8.2'
33
config-version: 2
44
require-dbt-version: [">=1.0.0", "<2.0.0"]
55

integration_tests/dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'jira_integration_tests'
2-
version: '0.8.1'
2+
version: '0.8.2'
33
config-version: 2
44
profile: 'integration_tests'
55

models/intermediate/field_history/int_jira__daily_field_history.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ limit_to_relevant_fields as (
2828

2929
from combined_field_histories
3030

31-
where lower(field_id) = 'status' -- As sprint is a custom field, we filter by field name only for sprint. All others are on field_id.
32-
or lower(field_name) in ('status'
31+
where lower(field_id) = 'status'
32+
or lower(field_name) in ('sprint'
3333
{%- for col in var('issue_field_history_columns', []) -%}
3434
,'{{ (col|lower) }}'
3535
{%- endfor -%} )

models/intermediate/field_history/int_jira__pivot_daily_field_history.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pivot_out as (
2929
valid_starting_on,
3030
issue_id,
3131
max(case when lower(field_id) = 'status' then field_value end) as status,
32-
max(case when lower(field_name) = 'sprint' then field_value end) as sprint -- As sprint is a custom field, we aggregate on the field_name.
32+
max(case when lower(field_name) = 'sprint' then field_value end) as sprint
3333

3434
{% for col in var('issue_field_history_columns', []) -%}
3535
,

0 commit comments

Comments
 (0)