{
    "controller": "crm:controllers/task",
    "recordViews": {
        "list": "crm:views/task/record/list",
        "detail": "crm:views/task/record/detail"
    },
    "views": {
        "list": "crm:views/task/list",
        "detail": "crm:views/task/detail"
    },
    "modalViews": {
        "detail": "crm:views/task/modals/detail"
    },
    "menu": {
        "detail": {
            "buttons": [
                {
                    "label": "Complete",
                    "name": "setCompletedMain",
                    "iconHtml": "<span class=\"fas fa-check fa-sm\"></span>",
                    "acl": "edit",
                    "handler": "crm:handlers/task/menu",
                    "actionFunction": "complete",
                    "checkVisibilityFunction": "isCompleteAvailable"
                }
            ]
        }
    },
    "modalDetailActionList": [
        {
            "name": "complete",
            "label": "Complete",
            "acl": "edit",
            "handler": "crm:handlers/task/detail-actions",
            "actionFunction": "complete",
            "checkVisibilityFunction": "isCompleteAvailable"
        }
    ],
    "dynamicLogic": {
        "fields": {
            "dateCompleted": {
                "visible": {
                    "conditionGroup": [
                        {
                            "type": "equals",
                            "attribute": "status",
                            "value": "Completed"
                        }
                    ]
                }
            },
            "reminders": {
                "visible": {
                    "conditionGroup": [
                        {
                            "type": "and",
                            "value": [
                                {
                                    "type": "or",
                                    "value": [
                                        {
                                            "type": "isNotEmpty",
                                            "attribute": "dateEnd"
                                        },
                                         {
                                            "type": "isNotEmpty",
                                            "attribute": "dateEndDate"
                                        }
                                    ]
                                },
                                {
                                    "type": "notEquals",
                                    "attribute": "status",
                                    "value": "Completed"
                                },
                                {
                                    "type": "notEquals",
                                    "attribute": "status",
                                    "value": "Canceled"
                                }
                            ]
                        }
                    ]
                }
            }
        }
    },
    "filterList": [
        "actual",
        {
            "name": "completed",
            "style": "success"
        },
        {
            "name": "todays"
        },
        {
            "name": "overdue",
            "style": "danger"
        },
        {
            "name": "deferred"
        }
    ],
    "boolFilterList": [
        "onlyMy"
    ],
    "iconClass": "fas fa-tasks",
    "kanbanViewMode": true
}
