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')}")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.