V2
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>/v2/incident/orgentityid/{orgentityid} |
| Authentication type | Basic/Token |
| 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>/v2/incident/orgentityid/7?queryParams={"filter":"ticket_number=XXXXXXXX"} |
Note:
ModuleId=1 for Incident Management and ModuleId=9 for Event Management.
Output:
{
"Count": 1,
"Result": [
{
"TicketNumber": "XXXXXXXX ",
"Summary": "testing",
"Description": "testing data",
"AssignedGroup": "XXXXXXXX ",
"StatusCode": "1",
"CreationDate": "2019-11-18 06:24:52.000",
"LastModifiedDate": "2019-11-18 06:24:52.000",
"ClosedDate": "2019-11-18 06:24:52.000",
"sys_id": "XXXXXXXX ",
"Col1": " ",
"Col2": " ",
"Col3": " ",
"Col4": " ",
"Col5": " ",
"Col6": "",
"Col7": "",
"Col8": "",
"Col9": "",
"Col10": "",
"Col11": "",
"Col12": "",
"Col13": "",
"Col14": "",
"Col15": "",
"Col16": "",
"Col17": "",
"Col18": "",
"Col19": "",
"Col20": "",
"iAutomate_CreatedDateInGMT": "2023-10-26 09:34:19.867",
"iAutomate_UpdatedDateInGMT": "2023-10-26 09:34:19.867"
}
],
"Status": "Success",
"Message": "Success"
}
Parameters Returned in Response of API
| Column | Column type | Value | Remarks |
|---|---|---|---|
| Count | int | 10 | This field provide Tickets Count |
| Status | string | Success/Fail | This field provide status |
| Message | string | Success/Fail | |
| Result | string | [{}] | This field Contains ticket Details |
Parameters Required in Request Body 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 |