<p>How many tickets are in the set? Your options are to use API instead of rest or implement count command in rt cli and rt server side.<br></p>
<p>Ruslan from phone.</p>
<div class="gmail_quote">31.10.2012 15:26 пользователь "Ignacio Vazquez" <<a href="mailto:ivazquez@desdelaconsola.es">ivazquez@desdelaconsola.es</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
I've been generating monthly reports with a crontab script that<br>
includes a line like this:<br>
/opt/rt3/bin/rt list "created >= '2012-04-01' AND status != 'rejected'<br>
AND Queue = 'whatever' AND (owner = 'user1' OR owner = 'user2')" |<br>
grep -v "No matching results." | wc -l<br>
As you can see, I'm only interested in the total number of tickets.<br>
I've find out that with a large number of possible results, I get a<br>
timeout so 0 tickets are returned.<br>
<br>
However, using the web search, because of the paginated displays, the<br>
search is much faster and also the web shows how many items are in the<br>
whole list with a line "Found: xxx tickets".<br>
<br>
My intention is still using an automated way to obtain the numbers.<br>
I've been reading the REST documentation and there is no way to query<br>
only for totals.<br>
<br>
Any ideas?<br>
<br>
Ignacio.<br>
--------<br>
We're hiring! <a href="http://bestpractical.com/jobs" target="_blank">http://bestpractical.com/jobs</a><br>
</blockquote></div>