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

currentPage

The paging results of the search to display.

resultsPerPage

The number of results to display per page.

sortDirection

The way in which you want to sort the list.

sortField

The field used to sort the list.

parameterMap.id

The ID of the ticket to find.

parameterMap.subStatus_subStatusName

The name of the sub-status of the ticket.

parameterMap.ticketQueue_id

The ticket queue ID of the ticket.

parameterMap.escalationLevel

The escalation level of the ticket.

parameterMap.customerDetails_firstName

The first name of the customer associated with the ticket.

parameterMap.customerDetails_lastName

The last name of the customer associated with the ticket.

parameterMap.customerDetails_phone

The phone number of the customer associated with the ticket.

parameterMap.customerDetails_email

The email address of the customer associated with the ticket.

parameterMap.description

The ticket description.

parameterMap.owningAgentId

The agent ID who owns the ticket.

parameterMap.dates_byCreatedDate

The created by date.

parameterMap.dates_pastOrFromTo

A date range from which to retrieve tickets.

parameterMap.dates_past

A date after which tickets will be retrieved. For example, tickets created after December 1, 2013.

parameterMap.dates_past2

A secondary date after which tickets will be retrieved.

parameterMap.dates_fromDate

A date from which tickets will be retrieved. Use in tandem with dates_toDate to set a date range.

parameterMap.dates_toDate

A date to which tickets will be retrieved. Use in tandem with dates_fromDate to set a date range.

parameterMap.dates_pastOrFromTo2

An optional additional past or from date criteria.

parameterMap.dates_byLastModified

Search for tickets by the date of the last modification.

parameterMap.dates_modifiedFrom

Search for tickets modified from a specific date.

parameterMap.dates_modifiedTo

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"

Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices