Beispiel #1
0
def days_remaining( request ):
    print 'days_remaining', request.GET
    rest_url = 'greenhopper/1.0/days-remaining/getVersionInfo'

    defaults = { 'versionId':'auto', }

    params = defaults
    params.update( request.GET )

    return HttpResponse( JIRA.do_get(rest_url, params) )
Beispiel #2
0
def project_progress( request ):
    print 'project_progress', request.GET
    rest_url = 'greenhopper/1.0/progress-bar-stats/generate'

    defaults = { 'selectedBoardId': 'auto',
                 'contexts': '2.gh.boards.defaultctx',
                 'width': 500, }
    params = defaults
    params.update( request.GET )

    return HttpResponse( JIRA.do_get(rest_url, params) )
Beispiel #3
0
def get_data(request):
    rest_url = 'greenhopper/1.0/days-remaining/getVersionInfo'
    rest_params = {'projectId': '10030','versionId':'auto' }

    return HttpResponse( JIRA.do_get(rest_url, rest_params) )