{
    "keyColumn": "bug_id",
    "wildsearch": "true",
    "detailHeaderColumnPrefix": "Team: ",
    "handleFile": "true",
    "detailHeaderColumns": [
        "module_id"
    ],
    "breadCrumbColumn": "module_id",
    "orderBy": {
        "bug_id": "DESC"
    },
    "listColumns": [
        "module_id",
        "reporting_person",
        "bug_title",
        "bug_description",
        "issue_type",
        "bug_type",
        "priority",
        "severity",
        "reproduce_methods"
    ],
    "showColumns": [
        "bug_id",
        "module_id",
        "reporting_person",
        "issue_type",
        "bug_type",
        "priority",
        "severity",
        "bug_title",
        "bug_description",
        "reproduce_methods",
        "bug_comments"
    ],
    "detailColumns": [
        "bug_id",
        "module_id",
        "reporting_person",
        "issue_type",
        "bug_type",
        "priority",
        "severity",
        "bug_title",
        "bug_description",
        "reproduce_methods",
        "bug_comments"
    ],
    "columns": {
        "bug_id": {
            "name": "ID",
            "editoptions": {
                "type": "hidden"
            }
        },
        "module_id": {
            "name": "module",
            "searchable": "true",
            "sortable": "true",
            "external": "true",
            "externalOptions": {
                "externalTable": "tbl_project_module",
                "externalColumn": "module_id",
                "externalShowColumn": "module_title"
            }
        },
        "reporting_person": {
            "name": "Owner",
            "searchable": "true",
            "sortable": "true",
            "external": "true",
            "externalOptions": {
                "externalTable": "tbl_employee",
                "externalColumn": "emp_main_id",
                "externalShowColumn": "first_name"
            },
            "editoptions": {
                "type": "select",
                "source": "Cmshelper::getProjectTeamUsernameCombo",
                "default": "",
                "source_type": "function",
                "label": "user",
                "class": "select",
                "validations": [
                    "required"
                ]
            }
        },
        "issue_type": {
            "name": "Issue Type",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "select",
                "source": {
                    "bug": "Bug",
                    "enhancement": "Enhancement",
                    "invalid": "Invalid",
                    "new feature": "New Feature"
                },
                "source_type": "array",
                "label": "Issue Type",
                "class": "select",
                "validations": [
                    "required"
                ]
            }
        },
        "priority": {
            "name": "Bug Priority",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "select",
                "source": {
                    "urgent": "Urgent",
                    "high": "High",
                    "low": "Low"
                },
                "source_type": "array",
                "label": "Bug Priority",
                "class": "select",
                "validations": [
                    "required"
                ]
            }
        },
        "bug_type": {
            "name": "Bug Type",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "select",
                "source": {
                    "design": "Design",
                    "functionality": "Functionality"
                },
                "source_type": "array",
                "label": "Bug Type",
                "class": "select",
                "validations": [
                    "required"
                ]
            }
        },
        "severity": {
            "name": "Bug Severity",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "select",
                "source": {
                    "Critical": "Critical",
                    "Major": "Major",
                    "Minor": "Minor"
                },
                "source_type": "array",
                "label": "Bug Severity",
                "class": "select",
                "validations": [
                    "required"
                ]
            }
        },
        "bug_title": {
            "name": "Title",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "textbox",
                "label": "Bug Title",
                "class": "textbox",
                "hint": "module Title",
                "validations": [
                    "required"
                ]
            }
        },
        "bug_description": {
            "name": "Description",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "textarea",
                "label": "Description",
                "class": "",
                "hint": "bug description",
                "validations": [
                    "required"
                ]
            }
        },
        "reproduce_methods": {
            "name": "Reproduce Methods",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "textarea",
                "label": "Reproduce Methods",
                "class": "",
                "hint": "bug reproduce methods",
                "validations": [
                    "required"
                ]
            }
        },
        "bug_comments": {
            "name": "Comments",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "textarea",
                "label": "Comments",
                "class": "",
                "hint": "bug comment"
            }
        }
    },
    "reference": {
        "referenceTable": "tbl_project_module",
        "referenceColumn": "module_id",
        "referenceTableForiegnKey": "module_id"
    },
    "customActions": {
        "afterAddRecord": "Cmshelper::increaseBugCount",
        "beforeDeleteRecord": "Cmshelper::decreaseBugCount"
    },
    "opertations": [
        "add",
        "view",
        "edit",
        "delete"
    ],
    "operationLabel": {
        "addLabel": "Add Bug",
        "editTitle": "Edit Bug",
        "viewTitle": "View Bug Details",
        "deleteTitle": "Delete Bug"
    }
}