|
| 1 | +[](https://opensource.org/licenses/Apache-2.0)  |
1 | 2 | # Jira ([docs](https://fivetran-dbt-jira.netlify.app/#!/overview))
|
2 | 3 |
|
3 | 4 | This package models Jira data from [Fivetran's connector](https://fivetran.com/docs/applications/jira). It uses data in the format described by [this ERD](https://fivetran.com/docs/applications/jira/#schemainformation).
|
@@ -28,7 +29,7 @@ Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instruction
|
28 | 29 | # packages.yml
|
29 | 30 | packages:
|
30 | 31 | - package: fivetran/jira
|
31 |
| - version: [">=0.3.0", "<0.4.0"] |
| 32 | + version: [">=0.4.0", "<0.5.0"] |
32 | 33 | ```
|
33 | 34 |
|
34 | 35 | ## Configuration
|
@@ -61,10 +62,26 @@ vars:
|
61 | 62 | issue_field_history_columns: ['the', 'list', 'of', 'field', 'IDs']
|
62 | 63 | ```
|
63 | 64 |
|
64 |
| -> Note: `sprint` and `status` will always be tracked, as they are necessary for creating common agile reports. |
| 65 | +> Note: `sprint` and `status` will always be tracked, as they are necessary for creating common agile reports. |
65 | 66 |
|
66 |
| -### Disabling models |
| 67 | +### Extending an Issue's History Period |
| 68 | +This package will create a row in `jira__daily_issue_field_history` for each day that an issue is open or being updated. For currently open issues, the latest date will be the current date. For closed issues, the latest date will be when the issue was last resolved or updated in any way, plus a _buffer period_ that is by default equal to 1 month. This buffer exists for two reasons: |
| 69 | +1. The daily issue field history model is materialized incrementally, and if your closed issues are being opened or updated often, this will avoid requiring a full refresh to catch these changes. |
| 70 | +2. You may want to create a longer timeline of issues, regardless of their status, for easier reporting. |
67 | 71 |
|
| 72 | +If you would like to extend this buffer period to longer than 1 month, add the following configuration to your `dbt_project.yml` file: |
| 73 | + |
| 74 | +```yml |
| 75 | +# dbt_project.yml |
| 76 | +
|
| 77 | +... |
| 78 | +config-version: 2 |
| 79 | +
|
| 80 | +vars: |
| 81 | + jira_issue_history_buffer: integer_number_of_months # default is an interval of 1 month |
| 82 | +``` |
| 83 | + |
| 84 | +### Disabling Models |
68 | 85 | It's possible that your Jira connector does not sync every table that this package expects. If your syncs exclude certain tables, it is because you either don't use that functionality in Jira or actively excluded some tables from your syncs. To disable the corresponding functionality in the package, you must add the relevant variables. By default, all variables are assumed to be `true`. Add variables for only the tables you would like to disable:
|
69 | 86 |
|
70 | 87 | ```yml
|
@@ -99,7 +116,7 @@ and running the package? If so, we highly encourage and welcome contributions to
|
99 | 116 | Please create issues or open PRs against `master`. Check out [this post](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657) on the best workflow for contributing to a package.
|
100 | 117 |
|
101 | 118 | ## Database Support
|
102 |
| -This package has been tested on BigQuery, Snowflake and Redshift. |
| 119 | +This package has been tested on BigQuery, Snowflake, Redshift, and Postgres. |
103 | 120 |
|
104 | 121 | ## Resources:
|
105 | 122 | - Provide [feedback](https://www.surveymonkey.com/r/DQ7K7WW) on our existing dbt packages or what you'd like to see next
|
|
0 commit comments