issue = jira_client.issue(issue_key, expand='changelog')
changelog = issue.changelog
transitions = []
for history in changelog.histories:
for item in history.items:
if item.field == 'status':
changelog_dict = {}
if hasattr(history, 'author'):
changelog_dict['author'] = history.author.name
if hasattr(history, 'created'):
changelog_dict['created'] = history.created
changelog_dict['from'] = item.fromString
changelog_dict['to'] = item.toString
transitions.append(changelog_dict)
The above code is just a sample of how I am retrieving transitions for a single JIRA issue.
I am starting to notice that the transitions list I am storing my transitions in is storing MORE transitions than there are actually displayed in JIRA.
Why is this the case?
Thank you.