Skip to content

Instantly share code, notes, and snippets.

@mpenick
Created October 23, 2015 16:53
Show Gist options
  • Select an option

  • Save mpenick/40f9ed252d86ba6b80ab to your computer and use it in GitHub Desktop.

Select an option

Save mpenick/40f9ed252d86ba6b80ab to your computer and use it in GitHub Desktop.
import sys
import xml.etree.cElementTree as et
tree = et.ElementTree(file=sys.argv[1])
print '<html>'
print '<head><title>JIRA issues</title></head>'
print '<body>'
for item in tree.iter('item'):
key = item.find('key').text
link = item.find('link').text
summary = item.find('summary').text
type = item.find('type').text
print '<a href="{}">[{}]</a> {}&nbsp;({})<br>'.format(link, key, summary, type)
print '</body>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment