Hello folks, Please find attached a little script to extract story data and prepare the sprint review.
Cheers, -Tristan
#!/bin/env python
import datetime
from pysflib.sfauth import get_cookie
from pysflib.sfstoryboard import SFStoryboard
c = get_cookie('https://softwarefactory-project.io', api_key='W62Eb3dMrYEHQzKLFTkv1YbZsLolgIRq')
client = SFStoryboard("https://softwarefactory-project.io/storyboard_api", c)
SPRINT="sprint-2016-50"
BEGIN=datetime.datetime.strptime('2016-12-05', '%Y-%m-%d')
print("[Planned Stories]")
for story in client.stories.list():
if SPRINT in story.tags and 'high' in story.tags or 'low' in story.tags:
print("[%d] %s" % (story.id, story.title))
print("\n[Merged Tasks]")
for task in client.tasks.list():
if task.status != 'merged':
continue
date = datetime.datetime.strptime(task.updated_at[:-9], '%Y-%m-%dT%H:%M')
if date > BEGIN:
print("[%d] %s" % (task.id, task.title))
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Softwarefactory-dev mailing list [email protected] https://www.redhat.com/mailman/listinfo/softwarefactory-dev
