[rt-users] Meaning of API output for ticket history request.

Kevin Falcone falcone at bestpractical.com
Wed Dec 19 10:17:22 EST 2012


On Wed, Dec 19, 2012 at 03:02:44PM +1100, Andrew Spiers wrote:
> On Wed, Dec 19, 2012 at 1:25 PM, Kevin Falcone
> <falcone at bestpractical.com> wrote:
> > On Wed, Dec 19, 2012 at 12:03:11PM +1100, Andrew Spiers wrote:
> >> When I use the API to request the history on a ticket, I get a
> >> response which includes as its third line: '# 5/5 (/total)'. What does
> >> that line mean? What is the 5/5? It doesn't seem to equal the number
> >> of history items on the ticket.
> >>
> >> This is what I am getting back for a newly created ticket:
> >>
> >> 'RT/4.0.6 200 Ok'
> >> ''
> >> '# 3/3 (/total)'
> >> ''
> >> '425160: Ticket created by XXXXX'
> >> ''
> >>
> >
> > When you asked this question on #rt, I asked what command you were
> > sending.
> 
> Apologies Kevin, I must've missed your question.
> The request would be https://<our rt site > /REST/1.0/ticket/18996/history
> 
> just like as described at http://requesttracker.wikia.com/wiki/REST

On a newly created ticket in a vanilla RT I see 2/2 and 2
transactions.  Log in as a super user and count the transactions, it's
possible that there are more transactions and your REST user doesn't
have permission to see them so they're being filtered.

# 2/2 (/total)

 122: Ticket created by root
 123: Outgoing email recorded by RT_System

 -kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20121219/e37bc815/attachment.sig>


More information about the rt-users mailing list