Hello
If I access jira data via Python library "jira" - in changelog.histories the item "from" is unavailable regardless items list structure is:
field
fieldType
from
fromString
to
toString
It raises "SyntaxError: f-string: expecting '=', or '!', or ':', or '}'"
Example:
Hi @preznicek
As far as I know from is a reserved keyword in Python, so you may not access it directly as an attribute using item.from
Instead, can you try something like the one below?
for history in changelog.histories:
for item in history.items:
if hasattr(item, "from"):
print(f"item.from: {getattr(item, 'from')}")
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.