GET /tickets/:id
Get the ticket details
Request header
Name |
Type |
Mandatory fields |
Description |
Token |
String |
Yes |
Authentication credentials Token |
Request response
Name |
Type |
Mandatory fields |
Description |
id |
int |
Yes |
Ticket ID. |
product |
int |
Yes |
Affiliated product. |
module |
int |
Yes |
Affiliated module. |
title |
string |
Yes |
Ticket title. |
type |
string |
Yes |
Ticket type(code | data | stuck | security | affair) |
desc |
string |
Yes |
Ticket description |
openedBuild |
string |
Yes |
Affected build. |
feedback |
string |
Yes |
Related feedback. |
assignedTo |
string |
Yes |
Assign to. |
assignedDate |
date |
Yes |
Assign time. |
realStarted |
date |
Yes |
Actual start. |
startedBy |
string |
Yes |
Started by. |
startedDate |
date |
Yes |
Start time. |
deadline |
date |
Yes |
Due date. |
pri |
int |
Yes |
Priority. |
estimate |
decimal |
Yes |
Estimation. |
left |
decimal |
Yes |
Remaining. |
status |
string |
Yes |
Status. |
openedBy |
object |
Yes |
Created by. |
openedDate |
date |
Yes |
Create time. |
activatedCount |
int |
Yes |
Number of activations. |
closedBy |
string |
Yes |
Closed by. |
closedDate |
date |
Yes |
Close time. |
closedReason |
string |
Yes |
The reasons of closure. |
finishedBy |
string |
Yes |
Finished by. |
finishedDate |
date |
Yes |
Finish time. |
resolvedBy |
string |
Yes |
Resolved by. |
resolvedDate |
date |
Yes |
Resolve time. |
resolution |
string |
Yes |
Resolution. |
editedBy |
string |
Yes |
Edit by. |
editedDate |
date |
Yes |
Edit time. |
keywords |
string |
Yes |
Keywords. |
repeatTicket |
int |
Yes |
Duplicate ticket. |
mailto |
array |
Yes |
Mail to. |
deleted |
string |
Yes |
Delete or not(0 no | 1 yes) |
consumed |
decimal |
Yes |
Actual cost. |
Response example
{
"id": 5,
"product": 80,
"module": 80,
"title": "test ticket",
"type": "",
"desc": "",
"openedBuild": "",
"feedback": 0,
"assignedTo": null,
"assignedDate": null,
"realStarted": "0000-00-00 00:00:00",
"startedBy": "",
"startedDate": "",
"deadline": null,
"pri": 0,
"estimate": 0,
"left": 0,
"status": "wait",
"openedBy": {
"id": 4,
"account": "admin",
"avatar": "/data/upload/1/202104/02151445087773h0",
"realname": "admin"
},
"openedDate": "2022-12-21T07:43:33Z",
"activatedCount": 0,
"activatedBy": "",
"activatedDate": null,
"closedBy": null,
"closedDate": null,
"closedReason": "",
"finishedBy": "",
"finishedDate": "",
"resolvedBy": null,
"resolvedDate": null,
"resolution": "",
"editedBy": "admin",
"editedDate": "2022-12-22 10:29:27",
"keywords": "",
"repeatTicket": 0,
"mailto": [],
"deleted": false,
"consumed": 0,
"createFiles": [],
"finishFiles": [],
"productName": null,
"moduleName": "/",
"actions": [
{
"id": 179347,
"objectType": "ticket",
"objectID": 5,
"product": ",80,",
"project": "0",
"execution": 0,
"actor": "admin",
"action": "opened",
"date": "2022-12-21 15:43:33",
"comment": "",
"extra": "",
"efforted": 0,
"read": "0",
"vision": "rnd",
"history": [],
"desc": "2022-12-21 15:43:33, created by <strong>admin</strong> .\n"
}
}
]
}