This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/application/Modules/Crm/Metadata/entityDefs/Task.json
T
Taras Machyshyn 417576fd5e change instance
2013-11-01 13:49:54 +02:00

87 lines
2.1 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true
},
"status": {
"type": "enum",
"options": ["Not Started", "Started", "Completed", "Canceled"]
},
"priority": {
"type": "enum",
"options": ["Low", "Normal", "High", "Urgent"],
"default": "Normal"
},
"dateStart": {
"type": "datetime"
},
"dateEnd": {
"type": "datetime"
},
"isOverdue": {
"type": "base",
"db": false,
"view": "Crm:Task.Fields.IsOverdue"
},
"description": {
"type": "text"
},
"parent": {
"type": "linkParent"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true
},
"modifiedBy": {
"type": "link",
"readOnly": true
},
"assignedUser": {
"type": "link",
"required": true,
"default": "javascript: return {assignedUserId: this.getUser().id, assignedUserName: this.getUser().get(\"name\")};"
},
"teams": {
"type": "linkMultiple"
}
},
"links": {
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"teams": {
"type": "hasMany",
"entity": "Team"
},
"parent": {
"type": "belongsToParent",
"entities": ["Account", "Contact", "Lead", "Opportunity", "Case"],
"foreign": "tasks"
}
},
"collection": {
"sortBy": "createdAt",
"asc": false,
"boolFilters": ["onlyMy"]
}
}