Beispiel #1
0
def json_story_post(scrumteam, jira_connection):
    # Body
    body = '''
    {
        "jql": "filter=AWO-%s-Sprint-Story",
                    "startAt": 0,
                "maxResults" : 1000
    }
    ''' % scrumteam

    jira_connection = JiraConnection()

    jira_connection.\
            setUserAndPass(userpsw).\
            setHeader().\
            setBody(body)

    try:
        x = jira_connection.sendRequest()
    except Exception:
        raise

    story = Story(json.loads(x.decode()))

    return story.get_story()
Beispiel #2
0
def test_storyfile_json():
    jfile = open("jira_story.json")

    story = Story(json.loads(jfile.read()))

    return story.get_story()