Skip to content

Allow to return Requestors and First transaction content in ticket search results - #40

Open
ruicleite96 wants to merge 4 commits into
bestpractical:masterfrom
ruicleite96:feat/aditional-fields
Open

Allow to return Requestors and First transaction content in ticket search results#40
ruicleite96 wants to merge 4 commits into
bestpractical:masterfrom
ruicleite96:feat/aditional-fields

Conversation

@ruicleite96

Copy link
Copy Markdown

Example:
http://localhost/REST/2.0/tickets?query=Queue='general'&fields=Requestors,Description&fields[Requestors]=RealName

{
  "count": 1,
  "total": 1,
  "page": 1,
  "pages": 1,
  "per_page": 20,
  "items": [
    {
      "Requestors": [
        {
          "_url": "http://localhost/REST/2.0/user/root",
          "type": "user",
          "RealName": "Enoch Root",
          "id": "root"
        }
      ],
      "Description": "<p>Test</p>\n",
      "id": "5",
      "_url": "http://localhost/REST/2.0/ticket/5",
      "type": "ticket"
    }
  ]
}

@lelutin

lelutin commented Jan 13, 2021

Copy link
Copy Markdown

Nice thanks for this!

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.

3 participants