Using python I am trying to get the changelog history of a jira issue. I tried
# Connect to JIRA
jira = JIRA(server="https://jira.instance.com/", basic_auth=(username, password))
issue = jira.issue("TEST-100")
print(dir(issue.fields))
for history in issue.changelog.histories:
...
which does fail, as there seems to be no attribute changelog
:
['JIRA_BASE_URL', '_HASH_IDS', '_IssueFields', '_READABLE_IDS', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattr__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_base_url', '_default_headers', '_find_by_url', '_get_url', '_load', '_options', '_parse_raw', '_resource', '_session', 'add_field_value', 'delete', 'expand', 'fields', 'find', 'get_field', 'id', 'key', 'permalink', 'raw', 'self', 'update']
See also related question HERE. I am just trying to find when the status of a ticket has been changed (initial status, new status) and when that happened.
I also checked the API documentation HERE which is missing to mention changelog (0 hits) and history (1 hit). Maybe there is somewhere another documentation?