V1
Get Incident Ticket Data
| API | GetIncidentTicketData |
|---|---|
| Purpose | To get data of Incident tickets that are dumped using Save Incident API . |
| API URL | https://<API URL>:<API Port>/iAutomateAPI/Request/GetIncidentTicketData/7 |
| Authentication type | Basic |
| Method Type | GET |
| Input Params in Query String |
You can pass the following filters in the URL to get desired data:
|
Input Parameters in Query String
| Filter field | Supported Filter operator |
|---|---|
| start_date | >= ,< , >, <=, = |
| end_date | >= ,< , >, <=, = |
| Ticket_number | = |
| assignment_group | = |
| sys_id | = |
| ModuleId | = |
| Example: | https://<API URL>:<API Port>/iAutomateAPI/Request/GetIncidentTicketData/7?ModuleId=1& start_date>=2020-01-29 07:12:23.607&end_date<=2019-11-18 06:24:52& |
Note:
ModuleId=1 for Incident Management and ModuleId=9 for Event Management.
Output:
{
"statusCode": 200,
"status": "Success",
"message": null,
"result":
[
{
"TicketNumber": " XXXXXXXX ",
"Summary": "Restart Spooler service on target server ",
"Description": "Restart Spooler service on target server",
"AssignedGroup": " XXXXXXXX ",
"StatusCode": "1",
"CreationDate": "2020-05-04 10:40:30.000",
"LastModifiedDate": "2020-05-04 04:41:50.000",
"ClosedDate": "2020-05-06 10:41:53.000",
"sys_id": " XXXXXXXX ",
"Col1": "",
"Col2": "",
"Col3": "",
"Col4": "",
"Col5": "",
"iAutomate_CreatedDateInGMT": "2020-05-04 05:25:36.350",
"iAutomate_UpdatedDateInGMT": "2020-05-04 05:25:36.350"
}
]
}
Parameters Returned in Response of API
| Column | Column Type | Expected/Sample value | Remarks |
|---|---|---|---|
| TicketNumber | String | XXXXXXXX | This field contains ticket number |
| Summary | String | testing | This field contains summary of ticket |
| Description | String | testing | This field contains summary of ticket |
| AssignedGroup | String | XXXXXXXX | This field contains assignment group of ticket |
| StatusCode | String | 1 | This field contains status of ticket |
| CreationDate | String | 2019-11-18 06:24:52 | This field contains creation date of ticket |
| LastModifiedDate | String | 2019-11-18 07:24:52 | This field contains date whenever updating happen on ticket |
| ClosedDate | String | 2019-11-18 07:24:52 | This field contains date whenever ticket gets resolved |
| sys_id | String | XXXXXXXX | This field contains unique number |
| Col1 | String | You can use it for any custom value | |
| Col2 | String | You can use it for any custom value | |
| Col3 | String | You can use it for any custom value | |
| Col4 | String | You can use it for any custom value | |
| Col5 | String | You can use it for any custom value | |
| iAutomate_CreatedDateInGMT | String | 2020-05-04 05:25:36.350 | It returns date in GMT |
| iAutomate_UpdatedDateInGMT | String | 2020-05-04 05:25:36.350 | It returns date in GMT |