@@ -0,0 +1,1353 @@
+from jira.client import JIRA%0Afrom datetime import datetime%0A%0A%0Aclass JIRAWrapper(object):%0A%0A    def __init__(self, user, password, project):%0A        options = %7B'server': 'http://rndwww.nce.amadeus.net/agile'%7D%0A        self._jira = JIRA(options, basic_auth=(user, password))%0A        self._project = project%0A        self._last_update = datetime.fromtimestamp(0)%0A        self._user_stories = %5B%5D%0A%0A    def current_sprint_user_stories(self, force_refresh=False):%0A        now = datetime.now()%0A        if (now - self._last_update).seconds %3E 60 or force_refresh:%0A            user_stories = self._jira.search_issues('project = %7B0%7D AND issuetype = Story AND Sprint in openSprints()'.format(self._project))%0A            user_stories.sort(key=lambda user_story: user_story.key)%0A            self._user_stories = user_stories%0A            self._last_update = now%0A        return self._user_stories%0A%0A    def current_sprint_progress(self, force_refresh=False):%0A        total_sprint_value = 0%0A        total_sprint_progress = 0%0A        for user_story in self.current_sprint_user_stories(force_refresh):%0A            total_sprint_value += user_story.fields.aggregateprogress.total%0A            total_sprint_progress += user_story.fields.aggregateprogress.progress%0A        percent_progress = (total_sprint_progress/total_sprint_value) * 100%0A        return round(percent_progress, 2)%0A

Create jirawrapper.py