api:tools:human-tasks:get
Table of Contents
API : Tools: Human Task : Get
Introduction
This request will return a specific human task (Dev/Ops task).
Request
| URL | https://api.telecomx.dk/tools/humantask/TASK_ID | ||
|---|---|---|---|
| Method | GET | ||
| Access level | RESELLER_ADMIN or ADMIN | ||
| Param | TASK_ID | Id or Number | Id of the task to return, or its referenceId. |
Query example
https://api.telecomx.dk/tools/humantask/12345678901234567890ABCD
Response
| Field | Type | Description |
|---|---|---|
| _id | Id | Unique id of task. |
| created | Date | Date when task was created. |
| createdBy | Id | Id of employee who created the task. |
| updated | Date | Date when task was updated. |
| updatedBy | Id | Id of employee who last updated the task. |
| project | String | Name of project task belongs to. |
| status | String | Status of the task: NEW, LATER, SELECTED, IN_PROGRESS, ON_HOLD, REVIEW, PENDING, COMPLETED, REJECTED, LATER. |
| type | String | Type of task: REQUEST, BUG, MAINTENANCE, SUPPORT. |
| title | String | Task title - short description of task. |
| description | String | Long description of task. |
| assigned | Date | Date when task was assigned. |
| assignedTo | Id | Id of employee the task is assigned to, if any. |
| priority | Number | Priority of the task. |
| estimatedCompletion | Date | When the task is estimated to be completed. |
| estimate | String | Amount of time task is assumed to take: Ikke specificeret, ½ Dag, 1 Dag, 3 Dage, 1 Uge, 2 Uger, 1 Måned |
| startedWork | Date | Date when work on the task started. |
| endedWork | Date | Date when work on the task ended (status went to COMPLETED or REJECTED). |
| referenceId | Number | Reference id |
| template | Id | Id of the Support template the task was created from, if any. |
| templateItems | Object | Values of the template items, keyed by template item id; only on tasks created from a template. See below. |
| log | Array | Log of changes to and work done on the task. |
| log[].date | Date | Date of log event. |
| log[].description | String | Description of the log event. |
| log[].time | Number | Number of minutes spent on the task. |
| images | Array | List of images used inline in the description. |
| images[]._id | Id | Id of image in image servers. |
| images[]._idUrl | String | Signed download URL of the image (JPEG) - see Signed file URLs. |
| images[].type | String | Type of image, e.g. png, jpeg, gif. |
| images[].size | Number | Size of image in bytes. |
| files | Array | List of documents attached to the task. |
| files[]._id | Id | Id of document on document servers. |
| files[]._idUrl | String | Signed download URL of the document - see Signed file URLs. |
| files[].filename | String | Filename. |
| files[].type | String | File type. |
| files[].size | Number | Size of file in bytes. |
Properties with no value may be omitted from the response.
templateItems
Each value depends on the type of its template item:
| Item type | Value |
|---|---|
| TEXT, EDITOR, PHONENUMBER, INFO | String |
| DATETIME | Date, or null |
| CHECKBOX | Boolean |
| FILE | Array of the attached documents: _id, name, type, size, and _idUrl, the signed download URL - see Signed file URLs. |
| IMAGE | Array of the attached images: _id, name, type, size, width, height, and _idUrl, the signed download URL - see Signed file URLs. |
| CUSTOMER | The customer: _id, name, phoneNumber, emailAddress, isReseller, parentReseller (_id, name, phoneNumber, emailAddress). |
| EMPLOYEE | The employee: _id, name, title, department, emailAddress. |
| MVNO | The mobile subscription: _id, state, number, network, pbx, ratePlan (_id, name), deviceType. |
| TRUNK | The SIP trunk: _id, active, name, numbers, pbx, ratePlan (_id, name). |
| DIALPLAN | The dialplan: _id, type, name, number. |
A CUSTOMER, EMPLOYEE, MVNO or DIALPLAN item whose record no longer exists is null; a TRUNK item then keeps the stored id.
Example
{ "_id":"12345678901234567890ABCD", "created": "2021-01-01T00:00:00.000Z", "createdBy": "12345678901234567890AAAA", "updated": "2021-01-01T00:00:00.000Z", "updatedBy": "12345678901234567890AAAB", "project": "PBX", "status": "IN_PROGRESS", "type": "BUG", "title": "Cannot save queues when no audio selected", "description": "Save function is disabled when no audio is selected. Queues does not require audio.", "assigned": "2020-01-01T00:00:00.000", "assignedTo": "12345678901234567890AAAC", "priority": 1, "estimatedCompletion": "2021-01-01T00:00:00.000Z", "estimate": "Ikke specificeret", "startedWork": "2021-01-01T00:00:00.000Z", "endedWork": "2021-01-01T00:00:00.000Z", "referenceId": 1, "log": [ { "date": "2021-01-01T00:00:00.000Z", "description": "Status changed from NEW to IN_PROGRESS", "time": null } ], "images": [ { "_id": "123456789012345674890ABCD", "type": "png", "size": 12345 } ], "files": [ { "_id": "12345678901234567890AAAA", "filename": "my-document.pdf", "type": "pdf", "size": 587954 } ] }
Errors
| Error code | Message | Description |
|---|---|---|
| 422 | <property> | Invalid input for the named property - the request body, query or URL parameter failed validation |
| 404 | not_found | Task not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/tools/human-tasks/get.txt · Last modified: by Telecom X AI
