POST
/tasks/:id/finish
Finish Task
1. Request Header
Name | Type | Required | Description |
---|---|---|---|
Token | String | Yes | Authentication Token |
2. Request Payload
Name | Type | Required | Description |
---|---|---|---|
assignedTo | string | No |
Assigned to, if this field is not filled in, the current assignor of the task will be selected. |
currentConsumed | int | Yes | Present consumption |
realStarted | date | No |
Actual start time, if this field is not filled in, the actual start time filled in at the beginning of the task (continue) will be selected. |
finishedDate | date | Yes | Complete time |
comment | string | No | Notes |
3. Request Example
{
"currentConsumed":1,
"assignedTo":"admin",
"realStarted":"2022-12-02 14:04:59",
"finishedDate":"2022-12-02 15:45:27",
"comment":"finish task"
}
4. 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 | Yes | Created by | |
openedDate | datetime | Yes | Creation Date |
assignedTo | 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 | No | Closed by | |
closedDate | datetime | No | Closed at |
team | array | Yes | Teams, applied to multi-person tasks |
5. Response Example
{
"id": 2,
"project": 1,
"parent": 0,
"execution": 2,
"module": 0,
"design": 0,
"story": 0,
"storyVersion": 1,
"designVersion": 0,
"fromBug": 0,
"feedback": 0,
"fromIssue": 0,
"name": "testtt",
"type": "devel",
"mode": "",
"pri": 0,
"estimate": 0,
"consumed": 4,
"left": 0,
"deadline": "2022-12-31",
"status": "done",
"subStatus": "",
"color": "",
"mailto": null,
"desc": "",
"version": 1,
"openedBy": "admin",
"openedDate": "2022-12-02T05:08:49Z",
"assignedTo": "admin",
"assignedDate": "2022-12-02T07:55:26Z",
"estStarted": "2022-12-01",
"realStarted": "2022-12-02T06:04:59Z",
"finishedBy": "admin",
"finishedDate": "2022-12-02T07:45:27Z",
"finishedList": "",
"canceledBy": "",
"canceledDate": null,
"closedBy": "",
"closedDate": null,
"planDuration": 0,
"realDuration": 1,
"closedReason": "",
"lastEditedBy": "admin",
"lastEditedDate": "2022-12-02T07:55:26Z",
"activatedDate": "",
"order": 0,
"repo": 0,
"mr": 0,
"entry": "",
"lines": "",
"v1": "",
"v2": "",
"deleted": "0",
"vision": "rnd",
"storyID": null,
"storyTitle": null,
"latestStoryVersion": null,
"storyStatus": null,
"assignedToRealName": "admin",
"children": [],
"members": [],
"team": [],
"files": [],
"needConfirm": false,
"progress": 100
}