コード例 #1
0
def update_issue():
    data = request.get_json()

    result = database_wrapper.IssueDB().update_issue(data['issueId'],
                                                     data['issue'])

    return result
コード例 #2
0
def create_issue():

    data = request.get_json()["issue"]
    project_id = request.get_json()["projectId"]

    print(data)

    json_data = {"subject":data["subject"], \
                "description":data["description"], \
                "projects_id":project_id, \
                "status": DEFAULT_ISSUE_STATUS, \
                "created_by_user_id":session["user_id"], \
                "assigned_to_user_email":data["user"]["email"]}

    print(json_data)
    result = database_wrapper.IssueDB().create_issue(json_data)

    return result
コード例 #3
0
def get_issue_details():
    data = request.get_json()

    result = database_wrapper.IssueDB().get_issue_details(data['issueId'])

    return result
コード例 #4
0
def get_project_issues():
    project_id = request.get_json()["projectId"]
    result = database_wrapper.IssueDB().get_project_issues(project_id)
    return result
コード例 #5
0
def get_user_issues():
    user_id = session["user_id"]
    result = database_wrapper.IssueDB().get_user_issues(user_id)

    return result