GET
/tasks/:id
Get Task Details
1. Request Header
Name |
Type |
Required |
Description |
Token |
String |
Yes |
Authentication Token |
2. Request Response
Name |
Type |
Required |
Description |
id |
int |
Yes |
Task ID |
project |
int |
Yes |
Affiliated Task |
parent |
int |
Yes |
Parent Task |
execution |
int |
Yes |
Affiliated Execution |
module |
int |
Yes |
Affiliated Module |
story |
int |
Yes |
Related Stories |
fromBug |
int |
Yes |
From the Bug |
name |
string |
Yes |
Task Name |
type |
string |
Yes |
Task Type (design | devel | request | test | study | discuss | ui | affair | misc) |
pri |
int |
Yes |
Priority |
estimate |
float |
Yes |
Estimated Work Hours |
consumed |
float |
Yes |
Consumed Work Hours |
left |
float |
Yes |
Remaining Work Hours |
deadline |
date |
Yes |
Estimated End Date |
status |
string |
Yes |
Status (Not Started | In Progress | Completed | Closed | Canceled) |
desc |
string |
Yes |
Task Description |
openedBy |
string
|
Yes |
Created by |
openedDate |
datetime |
Yes |
Creation Date |
assignedTo |
string |
Yes |
Assigned to |
assignedDate |
datetime |
Yes |
Assigned Time |
estStarted |
date |
Yes |
Estimated Start Date |
realStarted |
datetime |
No |
Actual Start Time |
finishedBy |
string |
No |
Finished by |
finishedDate |
datetime |
No |
Finished at |
closedBy |
string
|
No |
Closed by |
closedDate |
datetime |
No |
Closed at |
3. Response Example
{
"id": 22,
"project": 41,
"parent": 0,
"execution": 42,
"module": 0,
"design": 0,
"story": 0,
"storyVersion": 1,
"designVersion": 0,
"fromBug": 0,
"name": "multi-person tasks",
"type": "devel",
"pri": 3,
"estimate": 2,
"consumed": 0,
"left": 2,
"deadline": "2021-12-23",
"status": "wait",
"subStatus": "",
"color": "",
"mailto": [],
"desc": "",
"version": 1,
"openedBy": {
"id": 1,
"account": "admin",
"avatar": "",
"realname": "administrators"
},
"openedDate": "2021-12-05T12:00:57Z",
"assignedTo": {
"id": 1,
"account": "admin",
"avatar": "",
"realname": "administrator"
},
"assignedDate": "2021-12-05T12:00:57Z",
"estStarted": "2021-12-05",
"realStarted": null,
"finishedBy": null,
"finishedDate": null,
"finishedList": "",
"canceledBy": null,
"canceledDate": null,
"closedBy": null,
"closedDate": null,
"planDuration": 0,
"realDuration": 0,
"closedReason": "",
"lastEditedBy": null,
"lastEditedDate": null,
"activatedDate": "",
"deleted": false,
"storyID": null,
"storyTitle": null,
"latestStoryVersion": null,
"storyStatus": null,
"assignedToRealName": "administrator",
"children": [],
"team": [
{
"id": 50,
"root": 22,
"type": "task",
"account": "admin",
"role": "",
"limited": "no",
"join": "2021-12-05",
"days": 0,
"hours": 0,
"estimate": 1,
"consumed": 0,
"left": 1,
"order": 0,
"realname": "administrator",
"avatar": "",
"progress": 0
},
{
"id": 51,
"root": 22,
"type": "task",
"account": "productManager",
"role": "",
"limited": "no",
"join": "2021-12-05",
"days": 0,
"hours": 0,
"estimate": 1,
"consumed": 0,
"left": 1,
"order": 1,
"realname": "product manager",
"avatar": "",
"progress": 0
}
],
"files": [],
"needConfirm": false,
"progress": 0,
"storySpec": "",
"storyVerify": "",
"storyFiles": [],
"executionName": "testt",
"moduleTitle": "/",
"actions": [
{
"id": 1253748,
"objectType": "task",
"objectID": 22,
"product": ",4,",
"project": 41,
"execution": 42,
"actor": "administrator",
"action": "opened",
"date": "2021-12-05 20:00:57",
"comment": "",
"extra": "",
"read": "1",
"history": [],
"desc": "2021-12-05 20:00:57, created by <strong>admin</strong>.\n"
}
],
"preAndNext": {
"pre": "",
"next": ""
}
}