I am trying to find out how I can list issues with their creation and resolved time. The changelog as shown below does not list the creation time for the issue and resolution time. How can i retrieve that data?
#!/usr/bin/python
import jira.client
from jira.client import JIRA
jira = JIRA(options, basic_auth=(USERNAME, PASSWORD))
issue = jira.issue('FOO-100', expand='changelog')
changelog = issue.changelog
for history in changelog.histories:
for item in history.items:
if item.field == 'status':
print 'Date:' + history.created + ' From:' + item.fromString + ' To:' + item.toString
Output:
Date:2012-10-23T09:49:41.197+0100 From:Open To:Queued
Date:2012-10-23T09:49:43.838+0100 From:Queued To:In Progress
Date:2012-10-23T09:49:45.390+0100 From:In Progress To:Blocked
Date:2012-10-29T16:06:36.733+0000 From:Blocked To:In Progress
Date:2012-10-31T16:47:40.191+0000 From:In Progress To:Peer Review
Date:2012-10-31T16:47:41.783+0000 From:Peer Review To:Customer Approval