The TicketSearchActor
allows an agent to search for ticket. This service uses the searchTicketFormHandler
when working with search parameters. The TicketSearchActor
is located at /atg/svc/ui/formhandlers/
.
This actor uses the findTicket
actor-chain.
Parameter | Description |
---|---|
| The paging results of the search to display. |
| The number of results to display per page. |
| The way in which you want to sort the list. |
| The field used to sort the list. |
| The ID of the ticket to find. |
| The name of the sub-status of the ticket. |
| The ticket queue ID of the ticket. |
| The escalation level of the ticket. |
| The first name of the customer associated with the ticket. |
| The last name of the customer associated with the ticket. |
| The phone number of the customer associated with the ticket. |
| The email address of the customer associated with the ticket. |
| The ticket description. |
| The agent ID who owns the ticket. |
| The created by date. |
| A date range from which to retrieve tickets. |
| A date after which tickets will be retrieved. For example, tickets created after December 1, 2013. |
| A secondary date after which tickets will be retrieved. |
| A date from which tickets will be retrieved. Use in tandem with |
| A date to which tickets will be retrieved. Use in tandem with |
| An optional additional past or from date criteria. |
| Search for tickets by the date of the last modification. |
| Search for tickets modified from a specific date. |
| Search for a ticket modified up to a specific date. |
Search Tickets Examples
The following example searches for a specific ticket using the ticket ID.
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" –d "{\"parameterMap\":{\"atg-rest-class-type\":\"java.util.HashMap\", \"atg-rest-values\":{\"id\":\"460916\"}}}" "http://localhost:8080/rest/ model/atg/svc/ui/formhandlers/TicketSearchActor/findTickets"
The following example will return a list of all open tickets:
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" –d "{\"sortField\" : \"id\" ,\"sortDirection\" : \"desc\",\"parameterMap\": {\"atg-rest-class-type\":\"java.util.HashMap\", \"atg-rest-values\":{\"id\":\"\" , \"subStatus_subStatusName\":\"Open\", \"ticketQueue_id\":\"\", \"escalationLevel\":\"\",\"customerDetails_firstName\":\"\", \"customerDetails_lastName\":\"\",\"customerDetails_phone\":\"\", \"customerDetails_email\":\"\", \"description\":\"\", \"owningAgentId\":\"\", \"dates_byCreatedDate\":\"\", \"dates_pastOrFromTo\":\"\", \"dates_past\":\"\", \"dates_past2\":\"\", \"dates_fromDate\":\"\", \"dates_toDate\":\"\",\"dates_pastOrFromTo2\":\"\", \"dates_byLastModified\":\"\", \"dates_modifiedFrom\":\"\", \"dates_modifiedTo\":\"\"}}}" "http://localhost:8080/ rest/model/atg/svc/ui/formhandlers/TicketSearchActor/findTickets"