Tasks
Overview
Field tasks are assignments for tenant users. A task may reference one survey, but the task does not grant survey access by itself; the centralized survey access policy calculates canStartSurvey.
Viewing Your Tasks
To see your assigned tasks:
- Sign in to the Survanta mobile app.
- Tap Tasks in the bottom navigation bar.
- Call
GET /api/mobile/tasksto list tasks assigned to the current user.
Each task card shows:
- Task title — a short name describing the assignment.
- Completion —
isDoneand optionalcompletedAt; the mobile contract does not expose Pending/In Progress states. - Task date and coordinates —
taskDate,latitude, andlongitude. - Linked survey — optional
surveyIdplus server-calculatedcanStartSurvey.
Task Statuses
| Status | Meaning |
|---|---|
isDone=false |
The task is assigned and not completed. |
isDone=true |
The task completion endpoint has succeeded. |
Accepting a Task
The current mobile API does not expose task acceptance.
To begin work on a task:
- Tap the task to open its detail screen.
- Read the task description, instructions, and deadline carefully.
- If
surveyIdis present andcanStartSurvey=true, load the survey runtime. - There is no acceptance request or In-Progress transition to send.
Only tasks assigned to the current user are returned, and only that user can complete them through this route.
Working on a Task
While working on a task:
- Open the linked survey by tapping Open Survey on the task detail screen.
- Complete all required questions in the questionnaire.
- Submit the survey when finished.
The task remains isDone=false until completion succeeds.
Marking a Task as Complete
To mark an assigned task complete:
- Return to the task detail screen.
- Tap Mark as Complete.
- Call
POST /api/mobile/tasks/{id}/completewith an optional body containingcompletedLatitude,completedLongitude, andcompletedAccuracyMeters.
The task changes to isDone=true. The API does not remove it automatically; request isDone=false for active work or isDone=true for completed work.
Task Deadlines and Reminders
- Each task has a due date set by your organization's administrator.
- Reminder generation and visual overdue highlighting are not defined by the task API contract.
- Clients can compare
taskDatewith their display rules but should not infer an undocumented server status.
Filtering and Searching Tasks
Use the filter controls at the top of the task list to:
- Filter with
fromDate,toDate, andisDone. - Supply optional
pageorpageSize; when either is present, results are ordered bytaskDatethenid, and page size is clamped to 100. - No text-search or arbitrary-sort parameter is exposed.
Notes for Tenant Users
- You can only work on tasks explicitly assigned to your account.
- If you believe a task was assigned to you in error, contact your organization's administrator rather than ignoring it.
- Survey access and task completion are separate server operations; do not assume the client-side presence of a survey grants access or that the task API verifies a prior submission unless the server result confirms it.
Subscription requirement
Both the task list and task completion require an active organization subscription, and are refused with errorCode 1001 / code "SubscriptionExpired" while it is expired. A refused completion changes nothing: the task stays open, with no completion time and no actor recorded.
Assignment and organization boundaries are unaffected by subscription state — a collector who is not assigned a task is refused either way, and learns nothing about it.