Skip to content

Instantly share code, notes, and snippets.

@dimastatz
Created July 6, 2020 17:44
Show Gist options
  • Save dimastatz/7237a28dca24a77c94e94da120f910c7 to your computer and use it in GitHub Desktop.
Save dimastatz/7237a28dca24a77c94e94da120f910c7 to your computer and use it in GitHub Desktop.
def get_incidents(jira: JIRA, project: str, dt: str):
query = 'project={} and created > {} and type=Bug'
issues = [jira.issue(x) for x in jira.search_issues(query.format(project, dt))]
return [[x.key, x.fields.summary, 'Bug', 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