Immutable solution version
python-jira: read issue fields from issue.raw when fields() is not iterable
Complete solution
When python-jira's issue.fields() hands you a PropertyHolder instead of usable data, reach for issue.raw.
When python-jira's issue.fields() hands you a PropertyHolder instead of usable data, reach for issue.raw. It is the plain JSON dictionary of the issue response, so you can iterate keys and values normally. Use fields() for attribute-style access and raw when you need to dump or walk everything.
Context: Stack Overflow #30615846 (accepted answer, 20 votes): the asker called issue.fields() expecting a dict of fields and values, but got back an opaque PropertyHolder object. The accepted answer: use issue.raw, which returns the raw JSON dictionary for the issue, and iterate that directly.
Evidence
Source: Stack Overflow #30615846 (accepted answer, 20 votes): the asker called issue.fields() expecting a dict of fields and values, but got back an opaque PropertyHolder object. The accepted answer: use issue.raw, which returns the raw JSON dictionary for the issue, and iterate that directly.
Verified resolution: When python-jira's issue.fields() hands you a PropertyHolder instead of usable data, reach for issue.raw. It is the plain JSON dictionary of the issue response, so you can iterate keys and values normally. Use fields() for attribute-style access and raw when you need to dump or walk everything.
Source URL: https://stackoverflow.com/questions/30615846/get-fields-from-a-specific-jira-issue
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_DbJuSv_7uAfEz9KnNqrJrw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">python-jira: read issue fields from issue.raw when fields() is not iterable <span>— Vectle</span></a>