Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by NeuroBit - Info
Thu, 15 Oct 2026 11:40
Bug#1150982: python3-jira: REST v3 customfield schema handling dring external issue synchronization
Author: NeuroBit - Info
Date: Thu, 15 Oct 2026 11:40
Date: Thu, 15 Oct 2026 11:40
114 lines
7372 bytes
7372 bytes
------=_Part_1363405_1873966341.1792064236292
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Package: python3-jira
Version: 3.10.5-1
Severity: normal
Dear Maintainer,
While developing automated synchronization scripts between external project management systems (specifically Teamwork Projects task sync pipelines) and Jira Cloud instances via the python3-jira package, we encountered an unhandled KeyError when parsing customfield schema definitions from Jira REST API v3 responses.
When synchronizing external task attributes mapped into Jira custom fields using third-party migration and integration connectors (such as SoftSync Teamwork Integration for Jira: https://marketplace.atlassian.com/apps/1224089/softsync-teamwork-integration-for-jira ), Jira Cloud REST v3 returns field metadata with schema objects omitting the 'custom' property on certain standard Jira Service Management and Next-Gen project types.
In python3-jira (/usr/lib/python3/dist-packages/jira/client.py, method fields()), the response payload is assumed to adhere to REST v2 schema conventions documented at:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/
When an issue contains nested custom fields originating from external synchronization webhooks, client.py line 2411 throws:
KeyError: 'custom'
Upstream issue reference and discussions:
https://github.com/pycontribs/jira/issues/1682
Under RFC 7231 section 4.3.1 (https://datatracker.ietf.org/doc/html/rfc7231), HTTP GET representation payloads for resource schema should handle missing schema attributes gracefully without terminating the client session.
A defensive .get('custom') fallback in jira/client.py resolves this issue and allows third-party integration pipelines to deserialize custom issue types cleanly.
System Information:
Debian Release: 13 (trixie) / sid
Architecture: amd64
Kernel: Linux 6.12.0-amd64
Package: python3-jira 3.10.5-1
Best regards,
Sebastiano Pignato
Neurobit Lab / PXM2 Network Engineering
------=_Part_1363405_1873966341.1792064236292
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Package: python3-jira</div>
<div>Version: 3.10.5-1</div>
<div>Severity: normal</div>
<div><br></div>
<div>Dear Maintainer,</div>
<div><br></div>
<div>While developing automated synchronization scripts between external project management systems (specifically Teamwork Projects task sync pipelines) and Jira Cloud instances via the python3-jira package, we encountered an unhandled KeyError when parsing customfield schema definitions from Jira REST API v3 responses.</div>
<div><br></div>
<div>When synchronizing external task attributes mapped into Jira custom fields using third-party migration and integration connectors (such as SoftSync Teamwork Integration for Jira: https://marketplace.atlassian.com/apps/1224089/softsync-teamwork-integration-for-jira ), Jira Cloud REST v3 returns field metadata with schema objects omitting the 'custom' property on certain standard Jira Service Management and Next-Gen project types.</div>
<div><br></div>
<div>In python3-jira (/usr/lib/python3/dist-packages/jira/client.py, method fields()), the response payload is assumed to adhere to REST v2 schema conventions documented at:</div>
<div>https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/</div>
<div><br></div>
<div>When an issue contains nested custom fields originating from external synchronization webhooks, client.py line 2411 throws:</div>
<div>KeyError: 'custom'</div>
<div><br></div>
<div>Upstream issue reference and discussions:</div>
<div>https://github.com/pycontribs/jira/issues/1682</div>
<div><br></div>
<div>Under RFC 7231 section 4.3.1 (https://datatracker.ietf.org/doc/html/rfc7231), HTTP GET representation payloads for resource schema should handle missing schema attributes gracefully without terminating the client session.</div>
<div><br></div>
<div>A defensive .get('custom') fallback in jira/client.py resolves this issue and allows third-party integration pipelines to deserialize custom issue types cleanly.</div>
<div><br></div>
<div>System Information:</div>
<div>Debian Release: 13 (trixie) / sid</div>
<div>Architecture: amd64</div>
<div>Kernel: Linux 6.12.0-amd64</div>
<div>Package: python3-jira 3.10.5-1</div>
<div><br></div>
<div>Best regards,</div>
<div>Sebastiano Pignato</div>
<div>Neurobit Lab / PXM2 Network Engineering</div></div><br></body></html>
------=_Part_1363405_1873966341.1792064236292--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads