Skip to content

Add 'Description' and 'MergedTickets' fields#317

Open
ruicleite96 wants to merge 1 commit intobestpractical:stablefrom
ruicleite96:rest2-additional-ticket-fields
Open

Add 'Description' and 'MergedTickets' fields#317
ruicleite96 wants to merge 1 commit intobestpractical:stablefrom
ruicleite96:rest2-additional-ticket-fields

Conversation

@ruicleite96
Copy link

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"
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant