Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'Description' and 'MergedTickets' fields #317

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from

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
1 participant