Jorge Alarcon
07/30/2025, 7:40 PMtimeSpent, timeSpentSeconds, and issueId. Also the users table only has one record but I was expecting 29 records. A partial python script with the source and destination code is below. What could I be doing wrong?
source = ab.get_source(
"source-jira",
install_if_missing=True,
docker_image=True,
version="4.1.7",
config={
"domain": JIRA_DOMAIN,
"email": JIRA_EMAIL,
"api_token": JIRA_API_TOKEN,
"projects": JIRA_PROJECTS,
"start_date": JIRA_START_DATE
}
)
source.check()
source.select_streams([
"issue_fields",
"issue_worklogs",
"issues",
"projects",
"users",
])
cache = ab.get_default_cache()
result = source.read(cache=cache, force_full_refresh=True) # :key: full-refresh
dest = ab.get_destination(
"destination-postgres",
install_if_missing=True,
docker_image=True, # ← force the official Docker image
version="2.4.5",
# optionally pin a version: version="8.4.0"
config={
"host": PG_HOST,
"port": PG_PORT,
"database": PG_DB,
"username": PG_USER,
"password": PG_PWD,
"schema": PG_SCHEMA,
"ssl_mode": {"mode": "disable"},
"tunnel_method": {"tunnel_method": "NO_TUNNEL"}
}
)
dest.write(source_data=result, force_full_refresh=True)kapa.ai
07/30/2025, 7:41 PMtimeSpent, timeSpentSeconds, and issueId) in the issue_worklogs table, and the unexpectedly low number of records in the users table when using PyAirbyte, despite Airbyte server 1.7.2 working as expected. ### 1. Connector Version Differences You are using source-jira version 4.1.7 in your PyAirbyte script, but it’s not clear which version is running on your Airbyte server 1.7.2. There have been recent reports of issues with newer Jira source connector versions (e.g., 3.x and above) where streams like issue_worklog do not return all expected data unless the stream is reset. Some users have reported that after upgrading the Jira connector, only a subset of records are returned, and only a full reset brings all records back. This could be a regression or a breaking change in the connector itself, not in your script logic. See the discussion here: [source-jira issue_worklog Overwrite Sync not uploading all data](https://github.com/airbytehq/airbyte/issues/42951). ### 2. Data Mapping and Normalization Issues There are known issues with Airbyte’s normalization process, especially with nested fields or when the schema changes between versions. For example, in the Jira connector, the issues_fields table may not be populated as expected due to normalization bugs, and similar issues could affect other streams like issue_worklogs and users as well. This is discussed in [Jira issues -> issues_fields normalization not populating any data](https://discuss.airbyte.io/t/1457). ### 3. PyAirbyte vs. Airbyte Server Behavior PyAirbyte uses the same connectors as the Airbyte server, but differences in configuration, environment, or even the way the cache is handled could lead to discrepancies. For example, if the cache is stale or not properly invalidated, you might not get the latest data. Forcing a full refresh (as you do with force_full_refresh=True) should help, but if the underlying connector has a bug, the problem will persist. ### 4. Schema or Field Selection Ensure that the fields you expect (timeSpent, timeSpentSeconds, issueId) are actually present in the raw data returned by the Jira API and that the connector version you are using maps them correctly. If the connector’s schema has changed, or if the fields are now nested differently, they may not be extracted as top-level columns. ### Recommendations - Check the connector version on your Airbyte server and try matching it in PyAirbyte. If your server is using an older, stable version, try downgrading the PyAirbyte connector to match. - Reset the stream in your destination before running the sync, as some users have found this necessary to get all records after upgrading the connector. - Review the raw data in the _airbyte_raw_issue_worklogs table to see if the missing fields are present there. If they are missing in the raw data, the issue is with the source connector or the Jira API response. - Monitor for known bugs in the Jira connector and consider opening a GitHub issue with your findings if the problem persists. Given the above, the most likely cause is a connector regression or schema change in the newer Jira source connector version. This is supported by multiple user reports of similar symptoms after upgrading the connector, and not by anything specific in your PyAirbyte script logic itself. For more details, see: - [source-jira issue_worklog Overwrite Sync not uploading all data](https://github.com/airbytehq/airbyte/issues/42951) - [Jira issues -> issues_fields normalization not populating any data](https://discuss.airbyte.io/t/1457) If you need further troubleshooting, try running the sync with the same connector version as your working Airbyte server, and compare the raw data outputs. If the issue persists, it is likely a connector bug rather than a script or configuration error.kapa.ai
07/30/2025, 7:41 PMkapa.ai
07/30/2025, 7:41 PMissue_worklogs table (such as timeSpent, timeSpentSeconds, and issueId) are null, and the users table has fewer records than expected when using your PyAirbyte script, even though Airbyte server 1.7.2 works as expected. ### 1. Connector Version Differences You are using source-jira version 4.1.7 in your PyAirbyte script. There are known issues with newer versions of the Jira connector where certain streams (like issue_worklog) do not return all expected data unless the stream is reset. Users have reported that after upgrading the Jira connector, only a subset of records are returned, and only a full reset brings all records back. This could be a regression or breaking change in the connector itself, not in your script logic. See [this issue](https://github.com/airbytehq/airbyte/issues/42951) for similar reports. ### 2. Data Mapping and Normalization Issues There are also known issues with Airbyte’s normalization process, especially with nested fields or when the schema changes between versions. For example, the issues_fields table may not be populated as expected due to normalization bugs, and similar issues could affect other streams like issue_worklogs and users as well. See [this discussion](https://discuss.airbyte.io/t/1457) for more details. ### 3. PyAirbyte vs. Airbyte Server Behavior While PyAirbyte uses the same connectors as the Airbyte server, differences in configuration, environment, or cache handling could lead to discrepancies. Forcing a full refresh should help, but if the underlying connector has a bug, the problem will persist. ### 4. Schema or Field Selection Ensure that the fields you expect (timeSpent, timeSpentSeconds, issueId) are actually present in the raw data returned by the Jira API and that the connector version you are using maps them correctly. If the connector’s schema has changed, or if the fields are now nested differently, they may not be extracted as top-level columns. --- ## What You Can Do - Check the connector version on your Airbyte server and try matching it in PyAirbyte. If your server is using an older, stable version, try downgrading the PyAirbyte connector to match. - Reset the stream in your destination before running the sync, as some users have found this necessary to get all records after upgrading the connector. - Review the raw data in the _airbyte_raw_issue_worklogs table to see if the missing fields are present there. If they are missing in the raw data, the issue is with the source connector or the Jira API response. - Monitor for known bugs in the Jira connector and consider opening a GitHub issue with your findings if the problem persists. Given the above, the most likely cause is a connector regression or schema change in the newer Jira source connector version. This is supported by multiple user reports of similar symptoms after upgrading the connector, and not by anything specific in your PyAirbyte script logic itself. For more details, see the related [GitHub issue](https://github.com/airbytehq/airbyte/issues/42951) and [forum discussion](https://discuss.airbyte.io/t/1457). If you need further troubleshooting, try running the sync with the same connector version as your working Airbyte server, and compare the raw data outputs. If the issue persists, it is likely a connector bug rather than a script or configuration error.