POST /tickets
Create a ticket
Request header
Name |
Type |
Mandatory fields |
Description |
Token |
String |
Yes |
Authentication credentials Token |
Parameter
Name |
Type |
Mandatory fields |
Description |
product |
String |
Yes |
Affiliated product ID. |
module |
String |
Yes |
Affiliated module ID. |
title |
String |
Yes |
Ticket title. |
type |
String |
No |
Ticket type(code | data | stuck | security | affair) |
Request body
Name |
Type |
Mandatory fields |
Description |
product |
int |
Yes |
Affiliated product ID. |
module |
int |
Yes |
Affiliated module ID. |
title |
string |
Yes |
Ticket title. |
type |
string |
Yes |
Ticket type. |
Request example
{
"product": 2,
"module":2,
"title":"create test ticket"
}
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": 8,
"product": 2,
"module": 2,
"title": "create test ticket",
"type": "",
"desc": "",
"openedBuild": "",
"feedback": 0,
"assignedTo": null,
"assignedDate": "",
"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-22T05:49:43Z",
"activatedCount": 0,
"activatedBy": null,
"activatedDate": null,
"closedBy": null,
"closedDate": null,
"closedReason": "",
"finishedBy": null,
"finishedDate": null,
"resolvedBy": "",
"resolvedDate": "",
"resolution": "",
"editedBy": null,
"editedDate": null,
"keywords": "",
"repeatTicket": 0,
"mailto": [],
"deleted": false,
"consumed": 0,
"createFiles": [],
"finishFiles": []
}