Task Tracker Controller
Task Tracker Controller

Task Tracker Controller

The
Task Tracker
Controller provides two methods. A customer can use these methods to create task templates and tasks. Create a task template to provide consistent task names for supervisors and associates.

Create Task Templates

The
POST /api/task-tracker-external/tasks/title/templates
uses a comma-separated list of task titles as input to create the tasks in the Task Tracker service.
curl -X 'POST' \ '
<task_tracker_host>
/api/task-tracker-external/tasks/title/templates' \ -H 'accept: application/json' \ -H 'API-Key:
<external_api_key>
' \ -H 'customerId:
<customer_id>
' \ -H 'Content-Type: application/json' \ -d '[ "
<list_of_tasks>
" ]'

Create Tasks

The
POST /api/task-tracker-external/tasks
method takes task parameters as input to create a task in the Task Tracker service.
curl -X 'POST' \ '
<task_tracker_host>
/api/task-tracker-external/tasks' \ -H 'accept: application/json' \ -H 'API-Key:
<external_api_key>
' \ -H 'customerId:
<customer_id>
' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "description": "string", "status": "TODO", "priority": "HIGH", "assignedTo": "string", "createdBy": "string", "storeName": "string", "expiryTime": "2022-03-09T13:26:21.634Z"}'
Create Task Parameters
Parameter
Data Type
Description
name
String
The name of the task.
description
String
A description of the task.
status
String
Possible value: TODO
priority
String
One of the following values:
  • HIGH
  • MEDIUM
  • LOW
assignedTo
String
(Optional) PTT Pro login name of the user to which this task is assigned.
If this field is not included, a supervisor will assign the task to a user or group through the
PTT Pro for Android
.
createdBy
String
Name of the supervisor.
storeName
String
The name of the store.
expiryTime
Time in UTC
The time after which the task expires.