[rt-users] How to efficiently filter tickets with LimitXXX methods of RT::Tickets?
Scotto Alberto
al.scotto at reply.it
Thu Jul 26 09:43:08 EDT 2012
I think I got it.
RT::Tickets exposes DeleteRestriction, which
Takes the row Id of a restriction (From DescribeRestrictions' output, for example.
Removes that restriction from the session's limits
Alberto Scotto
[Blue]
Via Cardinal Massaia, 83
10147 - Torino - ITALY
phone: +39 011 29100
al.scotto at reply.it
www.reply.it
From: Scotto Alberto
Sent: sabato 21 luglio 2012 20:12
To: rt-users at lists.bestpractical.com
Subject: How to efficiently filter tickets with LimitXXX methods of RT::Tickets?
Hi all,
I'm customizing the script http://requesttracker.wikia.com/wiki/RtUnifiedreminder to send a daily report about SLA, with the overdue tickets.
I have a series of nested loops, the main is "for each QueueAdminCC send the report to him/her".
In order to find the overdue tickets that are up to him/her, I'm using RT::Tickets methods: LimitStatus, LimitDue, LimitQueue.
Here is the question.
Is there a way to "cache" some parts of filtering so that I don't have to start filtering from the ground but use the results previously computed?
If APIs don't give anything specific, I think the only way is cloning the object RT::Tickets after applying the general filters?
In the latter case, would you please give me some hints? Sorry for the dumb question, I'm quite n00b with Perl.
Thank you all!
Alberto Scotto
[Blue]
Via Cardinal Massaia, 83
10147 - Torino - ITALY
phone: +39 011 29100
al.scotto at reply.it
www.reply.it
________________________________
--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120726/7828278b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2834 bytes
Desc: image001.png
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120726/7828278b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blue.png
Type: image/png
Size: 2834 bytes
Desc: blue.png
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120726/7828278b/attachment-0001.png>
More information about the rt-users
mailing list