Skip to content

Instantly share code, notes, and snippets.

@dimastatz
Last active July 6, 2020 17:36
Show Gist options
  • Save dimastatz/351a1784eaaa4f18e320c4b7103d6bc2 to your computer and use it in GitHub Desktop.
Save dimastatz/351a1784eaaa4f18e320c4b7103d6bc2 to your computer and use it in GitHub Desktop.
def get_lead_time(jira: JIRA, project: str, dt: str):
query = 'project={} and created > {} and status=Done and type=Story'
issues = [jira.issue(x) for x in jira.search_issues(query.format(project, dt))]
return [[x.key, x.fields.summary, 'Story', x.fields.created, x.fields.updated] for x in issues]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment