I'm struggling determining the valid qualifier values for getting tickets in the REST API. Is there any documentation that describes these in more depth? The examples that are given in the Web Help Desk REST API Guide work fine however I can't really deduce how to query against other fields.
For example, in our system I'm trying to find the tickets with a status of 'Project Support' but where the request type is not 'Project Migrations'. By analyzing the ticket detail information from /ra/Tickets/<ticketnumber> it looks like the request type is housed in the problemtype object and the string value of the request is in the detailDisplayName field of the problemtype object. So I formatted a request like so:
http://example.com/helpdesk/WebObjects/Helpdesk.woa/ra/Tickets?apiKey=somekey&qualifier=((statustype.statusTypeName %3D 'Project Support') and (problemtype.detailDisplayName !%3D 'Project Migrations'))
and I get the following:
sqlStringForKeyValueQualifier: attempt to generate SQL for com.webobjects.eocontrol.EOKeyValueQualifier (problemtype.detailDisplayName <> 'Project Migrations') failed because attribute identified by key 'problemtype.detailDisplayName' was not reachable from from entity 'JobTicket'.
If I remove the problemtype part of the query I can get all statuses equal to 'Project Support' but that's one of the examples in the REST API Guide so it makes sense it would work. I need to get more information about the rest of the values I can use and why my query is failing. It sure looks like it should work based on other forum discussions I've seen and how they've solved their issues.
Thanks,
Scott