View / Create / Edit / Delete
#
Get tasksReturn Task objects
Request parameters:
Request Parameter | Type | Description | Required |
---|---|---|---|
page | Integer | Number of page | true |
size | Integer | Count of elements in page, recommended 1000 elements per page | true |
name | String | Search by task name | false |
taskIds | List of integers | Search by task ids | false |
divisionIds | List of integers | Search by division ids | false |
regionIds | List of integers | Search by region ids | false |
status | String | Search by status: OPEN, IN_PROGRESS, CLOSED | false |
createdAfter | Timestamp in milliseconds | Search for tasks where the creation date is after | false |
createdBefore | Timestamp in milliseconds | Search for tasks where the creation date is before | false |
closedBefore | Timestamp in milliseconds | Search for tasks where the closed date is after | false |
closedBefore | Timestamp in milliseconds | Search for tasks where the closed date is before | false |
deadlineAfter | Timestamp in milliseconds | Search for tasks where the deadline date is after | false |
modifiedBefore | Timestamp in milliseconds | Search for tasks where the deadline date is before | false |
taskTypes | String | Search for tasks by task type:COMMON, ROUTED, PHOTO_REPORT, SURVEY | false |
checklistId | Integer | Search for tasks by checklistId, only for ROUTED task type | false |
approvalStatus | Set of string | Search for tasks by approval status:APPROVED, NOT_APPROVED, APPROVABLE, NOT_APPROVABLE | false |
Examples
200 OK
#
Get task by id#
Create taskCreates new task.
Request body:
Attribute | Type | Description | Nullable |
---|---|---|---|
name | String | Task name | false |
taskType | Enum of string | Available types:COMMON,SURVEY,PHOTO_REPORT | false |
description | String | Task description | false |
deadlineDate | Timestamp in milliseconds | Task deadline date | false |
executors | Object | Executor user object with field id and name | false |
executorsCommentRequired | Boolean | Executors is obliged to leave a comment | false |
needApproval | Boolean | Flag indicating this task need approval | false |
isOnlyOneRequired | Boolean | There is only one sub-task to complete in the store | false |
isLoadPhotoFromGalleryProhibited | Boolean | Block uploading photos from the gallery | false |
notificationPeriod | Enum of string | Frequency of reminders for executors: daily, weekly, deadline, dayBeforeDeadline | false |
minAttachmentsCount | Integer | Min. the number of attachments that the executor must attach | false |
notifications | List objects | Set custom notifications for task. See Notification object | true |
customObservers | List objects | Set custom observers for task. See Observer object | true |
observersEnabled | Boolean | Observers enable | false |
formTemplateId | String | Survey template id Required for SURVEY task type | true |
Response
Returns Task object
Examples
200 OK
#
Edit taskEdit existing task.
Request body:
Attribute | Type | Description | Nullable |
---|---|---|---|
id | Int | Task id | false |
version | Int | Task version | false |
name | String | Task name | false |
description | String | Task description | false |
periodic | Boolean | Task periodic | false |
executors | Object | List executors Executors object | false |
taskType | Enum of string | Available types:COMMON,SURVEY,PHOTO_REPORT | false |
deadlineDate | Timestamp in milliseconds | Task deadline date | false |
deadlineTimeEnabled | Boolean | Task deadline enabled | false |
isLoadPhotoFromGalleryProhibited | Boolean | Block uploading photos from the gallery | false |
notifications | List objects | Set custom notifications for task. See Notification object | true |
needApproval | Boolean | Flag indicating this task need approval | false |
isOnlyOneRequired | Boolean | There is only one sub-task to complete in the store | false |
signatureRequired | Boolean | Signature required | false |
customObservers | List objects | Set custom observers for task. See Observer object | true |
executorsCommentRequired | Boolean | Executors comment is required | false |
notificationPeriod | Enum of string | Frequency of reminders for executors: daily, weekly, deadline, dayBeforeDeadline | false |
minAttachmentsCount | Integer | Min. the number of attachments that the executor must attach | false |
Response
Returns Task object
Examples
200 OK
#
Delete taskReturns code status
Examples
200 OK