def update_issue(): data = request.get_json() result = database_wrapper.IssueDB().update_issue(data['issueId'], data['issue']) return result
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
def get_issue_details(): data = request.get_json() result = database_wrapper.IssueDB().get_issue_details(data['issueId']) return result
def get_project_issues(): project_id = request.get_json()["projectId"] result = database_wrapper.IssueDB().get_project_issues(project_id) return result
def get_user_issues(): user_id = session["user_id"] result = database_wrapper.IssueDB().get_user_issues(user_id) return result