Skip to content

Instantly share code, notes, and snippets.

@slackorama
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slackorama/c34cde8c8f4203f5566e to your computer and use it in GitHub Desktop.
Save slackorama/c34cde8c8f4203f5566e to your computer and use it in GitHub Desktop.
Output JIRA tickets in an org file

Functions

This is just a org-babel block that gets the tickets. You’ll need jira-python installed.

from jira.client import GreenHopper

gh = GreenHopper({
    'server': 'https://yourjira.atlassian.net'
})
query = 'assignee="{0}" AND resolution="Unresolved" ORDER BY Priority DESC'.format(user)
issues = gh.search_issues(query)
return [map(str,[issue.key, issue.fields.priority.name, issue.fields.summary, issue.fields.status.name,
         issue.fields.assignee.displayName])
        for issue in issues]

Minion

Then you can just have a call method to output a table.

#+call: ssm-jira("minionone") :results table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment