rt icon indicating copy to clipboard operation
rt copied to clipboard

Add 'Description' and 'MergedTickets' fields

Open ruicleite96 opened this issue 2 years ago • 0 comments

This PR adds two fields to the ticket search endpoint:

  • Description: Content of the ticket first transaction;
  • MergedTickets: List of the tickets merged into the current one.

Example: http://localhost/REST/2.0/tickets?query=Queue='general'&fields=Description,MergedTickets

{
  "pages": 1,
  "page": 1,
  "per_page": 20,
  "count": 1,
  "items": [
    {
      "id": "652",
      "Description": "<p>Ticket description text...</p>",
      "type": "ticket",
      "MergedTickets": [
        "650",
        "541"
      ],
      "_url": "http://localhos/REST/2.0/ticket/652"
    }
  ]
}

ruicleite96 avatar Oct 27 '21 10:10 ruicleite96