Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Transitions pulled via jira-python is different than what is seen on JIRA issue itself?

Deleted user November 6, 2018
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.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events