[rt-users] REST API search query to list tickets created 'x' days/minutes ago
mountaingoat
tesla.coil at live.com
Tue May 12 07:41:59 EDT 2015
Hello !
I'm using Curl and the REST interface to query the RT Database.I can't seem
to build a query to use with Curl,to list out all Tickets created 'x' days
ago or 'x' minutes ago.Any pointers will be greatly appreciated.
This is what my query looks like.
*Doesn't Work*
$curl "https://localhost/REST/1.0/search/ticket?query=Created>'2 days
ago'ANDQueue='myQueue'" -b /tmp/rt.cookie
*Works.List all RTs created on this date*
$ curl -s -S
"https://localhost/REST/1.0/search/ticket?query=Created='2015-05-08'ANDQueue='myQueue'"
-b /tmp/rt.cookie
*Works.List all RTs created after the specified date*
$ curl -s -S
"https://localhost/REST/1.0/search/ticket?query=Created>'2015-05-08'ANDQueue='myQueue'"
-b /tmp/rt.cookie
--
View this message in context: http://requesttracker.8502.n7.nabble.com/REST-API-search-query-to-list-tickets-created-x-days-minutes-ago-tp60033.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
More information about the rt-users
mailing list