Task Group Data Model
Advertencia
Esta página aún no se encuentra traducida al español.
Description
A task group stores a workflow group's configuration and contains the tasks that are processed through the workflow group.
JSON Sample
{
"_id" : "616eafbda973cd46d72fb841",
"botUser" : "616eafc8c5b117753c1ae35c",
"collectionName" : "projects",
"company" : "613eafd572343ecb53cc8ccc",
"createdAt" : "2021-10-18T21:53:27.028Z",
"defaultView" : "kanban",
"flowType" : "state-machine",
"group" : "616eafea86d8203cfb2c8c6b",
"hideClosedAfterDays" : 7,
"initialStateMachine" : "616eb003c91d4c15104cc1fb",
"isActive" : true,
"levelConfig" : [],
"modifiedAt" : "2021-10-18T21:53:27.028Z",
"readPermissions" : ["app-access"],
"taskEditorPermissions" : ["admin-task-write"],
"taskFollowerPermissions" : ["admin-task-read", "admin-channels-read"],
"taskPropertyPermissions" : [{
"property" : "616eb3a8e59baa38b250da97",
"editor" : ["admin-groups-write", "admin-properties-write"],
"follower" : ["admin-groups-read"]
}],
"writePermissions" : ["admin-*-write"]
}
Fields
Field | Description | Type | Note |
---|---|---|---|
_id | The task group's identification code | ObjectId | For internal use only. Do not modify. |
botUser | Code name of automatically-created bot associated with the workflow group. | ObjectId<COTUser> | For internal use only. Do not modify. |
collectionName | The workflow group's code name: groups.nameCode | string | For internal use only. Do not modify. |
company | The company the task is found in | ObjectId<COTCompany> | For internal use only. Do not modify. |
createdAt | Date and time the group was created | ISODate | YYYY-MM-DDTHH:mm:ss.SSSZ |
defaultFilter | Filter used to sort tasks in the task view. | ObjectId | |
defaultView | Indicates the default view in the task view section. | string | Options: list , kanban , calendar , gantt , grid |
flowType | Determines how tasks transition from one state to another. | string | state-machine : state transitions must be predetermined in the setup. free : freely change from one state to another. |
group | Indicates the workflow group associated with the task group. | ObjectId<COTGroup> | For internal use only. Do not modify. |
hideClosedAfterDays | Closed tasks will disappear from the task view after the amount of days indicated. | number | |
initialStateMachine | Indicates which workflow the group initiates in. | ObjectID<COTSMStateMachine> | |
isActive | Indicates whether the task group is active or not. | boolean | |
levelConfig | Used to configure the amount of sub-tasks per levels that are permitted. A maximum of 50 bits can be distributed in up to 5 levels. Example: [20, 20, 10] , i.e., 220 on the first level, 220 on the second, and 210 on the third and last level. | number[ ] | Must be configured before any tasks exist, cannot be modified afterwards. |
modifiedAt | Indicates date and time of last modification. | ISODate | YYYY-MM-DDTHH:mm:ss.SSSZ |
readPermissions | Permissions that allow users associated to the task to view task information settings. | string[ ] | Users need at least one of the permissions in the array. |
taskEditorPermissions | Permissions that allow unassociated users to edit the tasks in the group. | string[ ] | Users need at least one of the permissions in the array. |
taskFollowerPermissions | Permissions that allow unassociated users to view the tasks in the group. | string[ ] | Users need at least one of the permissions in the array. |
taskPropertyPermissions | Enables unassociated users –with the proper permissions– to view or edit tasks when a task within the group is in a certain state or has a specific status (additional field). | object[ ] | Each object represents a state or status used as a permission filter. |
taskPropertyPermissions.property | Indicates either the additional field or status that the task must have or the state the task has to be in to enable unassociated users to view or edit them. | ObjectId<COTProperty> | Available task statuses can be found in the task's status{1,5} fields as described in the COTTask. Obtaining task states' objectIDs is described here. |
taskPropertyPermissions.editor | Permissions that allow unassociated users to edit tasks with the previously indicated status or state. | string[ ] | Users need at least one of the permissions in the array. |
taskPropertyPermissions.follower | Permissions that allow unassociated users to view tasks with the previously indicated status or state. | string[ ] | Users need at least one of the permissions in the array. |
writePermissions | Permissions that allow users associated to the task to edit task settings. | string[ ] | Users need at least one of the permissions in the array. |
Deprecated
Field | Description | Type | Note |
---|---|---|---|
readonly | boolean |
Additional Resources
- Task Basics: basic description about tasks and links to more information
- "Tasks" REST API documentation: basic "Task" API requests
- API documentation in Swagger: complete with data models (schemas)
- COTLang: use COTLang for extracting data from models in routines
- Triggers and Contexts: more information on using data models within routines
Help
- Cotalker Platform Community: post your questions or search for previous answers given in the forum