GET /tickets
Get the ticket list
Request header
Name |
Type |
Mandatory fields |
Description |
Token |
String |
Yes |
Authentication credentials Token |
Parameter
Name |
Type |
Mandatory fields |
Description |
browseType |
String |
No |
Ticket status(all | wait | doing | done | finishedbyme | openedbyme| assignedtome) |
param |
String |
No |
Module ID, 0 is set by default. |
orderBy |
String |
No |
Sorting. The default value is id_desc. sort field+underscore+asc/desc |
page |
String |
No |
Number of page. The default value is 1. |
limit |
String |
No |
The number of ticketss per page. The default value is 20. |
Response
Name |
Type |
Mandatory fields |
Description |
page |
int |
Yes |
Page number. |
total |
int |
Yes |
The total number of tickets. |
limit |
int |
Yes |
The number of tickets per page. |
tickets |
array |
Yes |
Ticket list. |
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
{
"page": 1,
"total": 7,
"limit": 20,
"tickets": [
{
"id": 7,
"product": 80,
"module": 80,
"title": "sgm GIAO",
"type": "",
"desc": "",
"openedBuild": "",
"feedback": 0,
"assignedTo": null,
"assignedDate": "0000-00-00 00:00:00",
"realStarted": "0000-00-00 00:00:00",
"startedBy": "",
"startedDate": "0000-00-00 00:00:00",
"deadline": "-0001-11-29T16:00:00Z",
"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:45:54Z",
"activatedCount": 0,
"activatedBy": null,
"activatedDate": null,
"closedBy": null,
"closedDate": null,
"closedReason": "",
"finishedBy": null,
"finishedDate": null,
"resolvedBy": "",
"resolvedDate": "0000-00-00 00:00:00",
"resolution": "",
"editedBy": null,
"editedDate": null,
"keywords": "",
"repeatTicket": 0,
"mailto": [],
"deleted": false,
"consumed": 0,
}
}