Is it possible to get a list of transactions for a specific ticket that includes information besides ‘id’, ‘type’, and ‘_url’? In particular I’m looking for ‘TimeTaken’.
Each call to get the transaction detail takes 1/4 to 1/2 seconds. Each ticket can have many, many transactions and these calls add up quickly. Working with even a small batch of tickets ends up taking several minutes.
In latest version of REST2 available on GitHub it seems to be possible with adding the “fields” GET parameter. Not sure if it works for custom fields, but seeing as you seem to need only the built-in fields, this might be exactly what you need,
Thank you! That looks like exactly what I want. Unfortunately I’ll need to upgrade my installed version of the plugin. I was planning to do that anyway though, to fix the missing content on new ticket creation bug. Hopefully this will be a two birds, one stone situation.
For the record updating the extension to version 1.07 fixed both of my issues. I am now able to retrieve arbitrary fields (in my case ‘TimeTaken’ on a list of transactions) and I’m able to set initial ticket content when I’m creating a new ticket.