Skip to main content

Task

The task can be of several types, for many executors and has many settings


AttributeTypeDescriptionNullable
idStringIdentifierfalse
versionIntegerVersion of task (increased every time after update of task)true
nameStringTask namefalse
descriptionStringTask descriptionfalse
statusStringCurrent task status: available statuses OPEN, IN_PROGRESS, CLOSED 'false
groupedBooleanFlag indicating a group taskfalse
responseBooleanFlag indicating a this task is subtask (response)false
authorIdIntegerIdentifier of author of taskfalse
authorNameStringFull name of author of taskfalse
executorNameStringFull name of executor of tasktrue
executorsObject List executors User objectfalse
observerNameObjectFull name of observer's of tasktrue
observersObject List observers User objecttrue
createDateTimestamp in millisecondsTask create datefalse
totalCountLongCount of subtasks (responses)false
closedCountLongCount of closed subtasks (responses)false
linkedTaskIdLongDeprecated fieldtrue
taskTypeStringType of task: COMMON, ROUTED, PHOTO_REPORT, SURVEY false
userRoleStringCurrent user role in taskfalse
deadlineDateTimestamp in millisecondsDeadline date of taskfalse
closeDateTimestamp in millisecondsClose date of tasktrue
exemplarTaskTemplateIdIntegerIdentifier of template tasktrue
parentTaskIdIntegerIdentifier of parent tasktrue
childTaskIdIntegerIdentifier of parent tasktrue
attachmentsCountIntegerCount of attachments in tasktrue
routeObjectObject of routing executors, see Route object true
periodicTaskScheduleObjectDeprecated fieldtrue
responseListList of objectsList of task response (subtasks), see Response objecttrue
isLoadPhotoFromGalleryProhibitedBooleanBlock uploading photos from the galleryfalse
labelsMap of string, stringSome labels for tasktrue
notificationsList objectsSet custom notifications for task. See Notification objecttrue
claimCountIntegerCount of claim tasks for this tasktrue
claimDoneCountIntegerCount of closed claim tasks for this tasktrue
needApprovalBooleanFlag indicating this task need approvalfalse
approvedBooleanFlag indicating this task was be approvedtrue
approvalCountIntegerCount of approved subtasks (responses)true
approvalDateTimestamp in millisecondsDate when the task was be approvedtrue
routedToExecutorBooleanFlag indicating this task is routed from checklisttrue
editorNameStringFull name of user who changed the tasktrue
modifiedAtTimestamp in millisecondsDate and time of the last changetrue
isOnlyOneRequiredBooleanThere is only one sub-task to complete in the storefalse
Example:
{
"attachmentsRequired": false,
"id": 162,
"version": 2,
"name": "test task",
"description": "test description",
"status": "OPEN",
"grouped": false,
"periodic": false,
"response": false,
"authorId": 1,
"authorName": "John Vu",
"executorName": "Madison",
"executors": [
{
"id": 1609,
"name": "Madison"
}
],
"observerName": "Does John",
"observers": [
{
"id": 1615,
"name": "Does John"
}
],
"createDate": 1623749422616,
"totalCount": 1,
"closedCount": 0,
"taskType": "COMMON",
"userRole": "AUTHOR",
"deadlineDate": 1623877199965,
"responseList": [
{
"id": 449,
"taskId": 162,
"version": 0,
"status": "OPEN",
"executorId": 1609,
"executorName": "Madison",
"region": "Test region",
"regionId": 86,
"division": "Test division",
"divisionId": 28,
"overdue": false,
"attachmentsCount": 0,
"executorsCommentRequired": true,
"minAttachmentsCount": 1,
"executorRole": "SHOP",
"notificationPeriod": "daily",
"shopId": 668,
"shopName": "Store 01",
"labels": {},
"needApproval": true,
"approved": false,
"customObservers": [
{
"observerId": 1615,
"observerName": "Does John"
}
],
"deleted": false
}
],
"isLoadPhotoFromGalleryProhibited": true,
"labels": {},
"notifications": [
{
"type": "UPDATE",
"role": "AUTHOR",
"push": true,
"email": true
},
{
"type": "UPDATE",
"role": "OBSERVER",
"push": true,
"email": true
},
{
"type": "UPDATE",
"role": "EXECUTOR",
"push": true,
"email": true
},
{
"type": "RETURN",
"role": "OBSERVER",
"push": true,
"email": true
},
{
"type": "RETURN",
"role": "EXECUTOR",
"push": true,
"email": true
},
{
"type": "OVERDUE",
"role": "OBSERVER",
"push": true,
"email": true
},
{
"type": "OVERDUE",
"role": "EXECUTOR",
"push": true,
"email": true
},
{
"type": "OVERDUE",
"role": "AUTHOR",
"push": true,
"email": true
},
{
"type": "CLOSE",
"role": "OBSERVER",
"push": true,
"email": true
},
{
"type": "CLOSE",
"role": "AUTHOR",
"push": true,
"email": true
},
{
"type": "CREATE",
"role": "OBSERVER",
"push": true,
"email": true
},
{
"type": "CREATE",
"role": "EXECUTOR",
"push": true,
"email": true
}
],
"claimCount": 0,
"claimDoneCount": 0,
"needApproval": true,
"approvalCount": 0,
"routedToExecutor": false,
"isOnlyOneRequired": true
}