Related Tickets

  • To view the related tickets, follow the API below.
  • This API will only respond with results when related tickets indexing is already done.
  • To index related/closed tickets, refer section Index closed tickets.
  • Make sure to use collection name as “closedtickets”

**Endpoint:** ` http://{API_URL}/external/api/search `

**Method:** `POST`

**Description:** This endpoint fetches the related tickets for a ticket

**Request Body:**

```{

{

"query": "des",

"collection": "closedtickets",

"count": 10

}

}```

**Response:**

{

"similarDocs": [

{

"_id": "ITSM-00085",

"content": "# Ticketnumber: INC1\n\n# Description:\nLinux cpu utilization is high\nLinux cpu utilization is high\n\n# Resolved by:\nNA\n\n# AffectedCI: 123\n\n# WorkNoteDetails:\n2025-04-29 04:37:14 - iAuto BigFix Integration (Work notes)\nServer Execution In-Progress.\n || Current CPU Utilization is 100 % \n iAutomate has resolved the Ticket INC0918573 successfully with all the action required.\n The Alert has been resolved and closed. \n\n2025-04-29 04:36:27 - iAuto BigFix Integration (Work notes)\nSWO has started working on the ticket.\n\n# Creation Date: 2025-04-29 04:34:41\n\n",

"similarityScore": 0.7317582035445468 },

{

"_id": "ITSM-00066",

"content": "# Ticketnumber: INC2\n\n# Description:\nLinux cpu utilization is high\nLinux cpu utilization is high\n\n# Resolved by:\nNA\n\n# AffectedCI: 12\n\n# WorkNoteDetails:\n2025-04-21 05:06:51 - iAuto BigFix Integration (Work notes)\nServer Execution In-Progress.\n || Current CPU Utilization is 100 % \n iAutomate has resolved the Ticket INC0916668 successfully with all the action required.\n The Alert has been resolved and closed. \n\n2025-04-21 05:05:55 - iAuto BigFix Integration (Work notes)\nSWO has started working on the ticket.\n\n# Creation Date: 2025-04-21 05:04:03\n\n",

"similarityScore": 0.7317582035445468

}

}