Beispiel #1
0
def getSprintsInBoardPagination(boardId, maxResults, startAt):
    auth = config["auth"]
    formattedUrl = url.format(boardId=boardId,
                              maxResults=maxResults,
                              startAt=startAt)
    result = None
    response = None
    try:
        response = requestToJira(method, formattedUrl, auth, None)
        result = json.loads(response.text)
    except:
        print(sys.exc_info())
        print("Error in getSprintsInBoardPagination")
        print("Board id:", boardId)
        print("Start At:", startAt)
        print("Response:", response.text)
    return result
Beispiel #2
0
def getIssueTypes():
    auth = config["auth"]
    response = requestToJira(method, url, auth, None)
    return json.loads(response.text)
Beispiel #3
0
def getIssuesInSprintPagination(boardId, sprintId, maxResults, startAt):
    auth = config["auth"]
    formattedUrl = url.format(boardId=boardId, sprintId=sprintId, maxResults=maxResults, startAt=startAt)
    response = requestToJira(method, formattedUrl, auth, None)
    return json.loads(response.text)
Beispiel #4
0
def getProjectPagination(maxResults, startAt):
    formattedUrl = url.format(maxResults=maxResults, startAt=startAt)
    auth = config["auth"]
    response = requestToJira(method, formattedUrl, auth, None)
    return json.loads(response.text)
Beispiel #5
0
def getIssuesPagination(jqlQuery, maxResults, startAt):
    formattedUrl = url.format(maxResults=maxResults, startAt=startAt)
    auth = config["auth"]
    payloads = payloadGenerator(jqlQuery, maxResults, startAt)
    response = requestToJira(method, formattedUrl, auth, payloads)
    return json.loads(response.text)
Beispiel #6
0
def getPermittedProjects():
    auth = config["auth"]
    query = json.dumps({'permissions': ["BROWSE_PROJECTS",
                                        "EDIT_ISSUES"]})  #["<string>"]}
    response = requestToJira(method, url, auth, query)
    return json.loads(response.text)
Beispiel #7
0
def getMyPermission():
    auth = config["auth"]
    query = {'permissions': 'BROWSE_PROJECTS,EDIT_ISSUES'}
    response = requestToJira(method, url, auth, query)
    return json.loads(response.text)