Skip to content

Commit 6c0a173

Browse files
marcosmarxmcjwooo
andauthored
Bump Source Jira Connector (#7202)
* Create separate cache file per stream and add projects and start_date config * Add project id to issue record * Add projectId to issue schema * Add BoardIssues stream * Add SprintIssues stream * Add Epics stream and deduplicate state code * Add EpicIssues stream and additional fields for Issues stream * Add story points to sprint issues * Add new streams to test catalog * Update gitignore * Rename cache boolean and fix test catalog * Fix streams that depend on Issues stream * Fix sprint_issues stream * Add more fields to issues stream and format * Add option to expand issue changelogs * Remove epic_issues stream * Expand project descriptions * Show rendered fields for epics * Include project key * Include project key in issues stream * Address comments * Use CDK caching * Remove extra changes * Fix sprints stream reading from non-scrum boards * Format * small fix and bump version * bump version Co-authored-by: Chris Wu <[email protected]>
1 parent 1fcd6c4 commit 6c0a173

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/68e63de2-bb83-4c7e-93fa-a8a9051e3993.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"sourceDefinitionId": "68e63de2-bb83-4c7e-93fa-a8a9051e3993",
33
"name": "Jira",
44
"dockerRepository": "airbyte/source-jira",
5-
"dockerImageTag": "0.2.11",
5+
"dockerImageTag": "0.2.12",
66
"documentationUrl": "https://docs.airbyte.io/integrations/sources/jira",
77
"icon": "jira.svg"
88
}

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
- sourceDefinitionId: 68e63de2-bb83-4c7e-93fa-a8a9051e3993
229229
name: Jira
230230
dockerRepository: airbyte/source-jira
231-
dockerImageTag: 0.2.11
231+
dockerImageTag: 0.2.12
232232
documentationUrl: https://docs.airbyte.io/integrations/sources/jira
233233
icon: jira.svg
234234
sourceType: api

airbyte-integrations/connectors/source-jira/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ RUN pip install .
1212
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
1313
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1414

15-
LABEL io.airbyte.version=0.2.11
15+
LABEL io.airbyte.version=0.2.12
1616
LABEL io.airbyte.name=airbyte/source-jira

airbyte-integrations/connectors/source-jira/source_jira/source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def check_connection(self, logger: AirbyteLogger, config: Mapping[str, Any]) ->
8080

8181
try:
8282
authenticator = self.get_authenticator(config)
83-
args = {"authenticator": authenticator, "domain": config["domain"]}
83+
args = {"authenticator": authenticator, "domain": config["domain"], "projects": config["projects"]}
8484
issue_resolutions = IssueResolutions(**args)
8585
for item in issue_resolutions.read_records(sync_mode=SyncMode.full_refresh):
8686
continue

airbyte-integrations/connectors/source-jira/source_jira/streams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str:
473473

474474
def read_records(self, stream_slice: Optional[Mapping[str, Any]] = None, **kwargs) -> Iterable[Mapping[str, Any]]:
475475
issues_stream = Issues(authenticator=self.authenticator, domain=self._domain, projects=self._projects, start_date=self._start_date)
476-
issue_property_keys_stream = IssuePropertyKeys(authenticator=self.authenticator, domain=self._domain)
476+
issue_property_keys_stream = IssuePropertyKeys(authenticator=self.authenticator, domain=self._domain, projects=self._projects)
477477
for issue in issues_stream.read_records(sync_mode=SyncMode.full_refresh):
478478
for property_key in issue_property_keys_stream.read_records(stream_slice={"key": issue["key"]}, **kwargs):
479479
yield from super().read_records(stream_slice={"key": property_key["key"], "issue_key": issue["key"]}, **kwargs)

docs/integrations/sources/jira.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ The Jira connector should not run into Jira API limitations under normal usage.
8585

8686
| Version | Date | Pull Request | Subject |
8787
| :--- | :--- | :--- | :--- |
88+
| 0.2.12 | 2021-10-19 | [\#6621](https://github.com/airbytehq/airbyte/pull/6621) | Add Board, Epic, and Sprint streams |
8889
| 0.2.11 | 2021-09-02 | [\#6523](https://github.com/airbytehq/airbyte/pull/6523) | Add cache and more streams \(boards and sprints\) |
8990
| 0.2.9 | 2021-07-28 | [\#5426](https://github.com/airbytehq/airbyte/pull/5426) | Changed cursor field from fields.created to fields.updated for Issues stream. Made Issues worklogs stream full refresh. |
9091
| 0.2.8 | 2021-07-28 | [\#4947](https://github.com/airbytehq/airbyte/pull/4947) | Source Jira: fixing schemas accordinately to response. |

0 commit comments

Comments
 (0)