Re: [rt-users] Move tickets to Queue
Thanks for all your suggestions. How can I do this using Scrips, so without the need to go to /etc/aliases? @Kevin: How do I check the return value of Setqueue? @Jerrad: We only have a limited number of customers and needed queues. On Tue, Feb 23, 2010 at 3:31 AM, Jerrad Pierce jpie...@cambridgeenergyalliance.org wrote: On Mon, Feb 22, 2010 at 16:30, Jerrad Pierce jpie...@cambridgeenergyalliance.org wrote: As I'm new to RT I'm trying to setup a system for our needs. We want a queue for each customer. Tickets are created by email. However, if you really want to do this, and assuming you have a relatively fixed set of requestors/queues, the easiest way to handle this would be running rt-mailgate with --extension=queue; of course, your current method of scrips permits you to programatically create a morasse of queues. -- Cambridge Energy Alliance: Save money. Save the planet. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Single SignOn
Dear list, I'm wondering if there is a possibility for single signon based on a webservice. ( soap calls ) I have found a module, RT-Authen-ExternalAuth, but that one can only do Cookie/Ldap/Mysql. With kind regards, Richard Pijnenburg ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] RT-Send-CC - mail is lost
Hello We found one thing which we don/t know what to do. In RT 3.8.4. we have 10 different queues, where each queue has different email address. We found a problem, that when someone in one queue resolves the ticket, and put into One time CC email address of another RT queue, the mail is sent out, but is not created in that 2nd queue as new ticket. It seems it's lost or so. Normally, RT works like, that when it founds in subject some ticket ID, it adds this email to that ticket. Is there some way, that when someone closed ticket in one queue, and put into One Time CC email address of another queue, the new ticket will be created in that queue and not added into original ticket according to subject. But, we still want to keep the option, that when someone replies to some ticket, within same Queue (same email address of that queue) the email will be put into this ticket. Example: Queue 1 has email address bill...@zse.sk Queue 2 has email address outboundcck...@zse.sk In queue1 agent resolved the ticket, and put into One time CC the email address of queue2. Normally, it sends out email with subject together with original ticket ID. We expect, that in the queue2 new ticket will be created. But nothing happen. No new ticket in queue2 or, original ticket is not updated with this comment (based on ticketID). When some normal user replies to some email from RT, it pastes his email to the ticket, so the Reply funcionality works. But the way between 2 queues within RT seems difficult. http://old.nabble.com/file/p27703389/Snap8.jpg Snap8.jpg Configuration of our RT. http://old.nabble.com/file/p27703389/Configuration%255B1%255D.html Configuration%5B1%5D.html -- View this message in context: http://old.nabble.com/RT-Send-CC---mail-is-lost-tp27703389p27703389.html Sent from the Request Tracker - User mailing list archive at Nabble.com. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] FW: Delete User accounts through a perl script
Hi, Even on CLI : ./rt-shredder --plugin 'Objects=User,39236' Is taking forever. It has been running for quite sometime till now. -Ashish From: Potla, Ashish Bassaliel Sent: Tuesday, February 23, 2010 6:30 PM To: rt-users@lists.bestpractical.com Subject: Delete User accounts through a perl script Hello I consistently keep getting this error : Couldn't wipeout object: at /opt/prj/rt/rt3/local/lib/RTx/Shredder.pm line 427. At the end of this mail is my subroutine - If I change the Wipeout to WipeoutAll , it just takes on forever at that statement. Let me know if you have any other logic to delete user accounts from a perl script. Please Help, Thanks -Ashish sub delete_user { # Grab the user id my $id = shift; # Form an RT::User object string for the user my $object_string = 'RT::User-' . $id; # Create a single item array with the object string my @users_to_delete = ($object_string); # Create a shredder object and pass it the array my $shredder = new RTx::Shredder( force = 1 ); $shredder-PutObjects( Objects = \...@users_to_delete ); # Shred the user eval { $shredder-Wipeout }; if ( $@ ) { return (-1, Failed to delete user with id '$id': $@); } return (1, User with id '$id' deleted successfully.\n); } ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] RT Virtual Appliance 3.8.7 for Proxmox VE (OpenVZ based) - Updated
Hi all, We updated to our RT Appliance to 3.8.7, based on Debian Squeeze. All details can be found here. http://wiki.bestpractical.com/view/Proxmox_VE_RT_Appliance We will collect bug reports and suggestions for configuration improvements and we will update the appliance regularly. Best Regards, Martin Maurer mar...@proxmox.com http://www.proxmox.com Proxmox Server Solutions GmbH Kohlgasse 51/10, 1050 Vienna, Austria Phone: +43 1 545 4497 11 Fax: +43 1 545 4497 22 Commercial register no.: FN 258879 f Registration office: Handelsgericht Wien ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Delete User accounts through a perl script
Hello I consistently keep getting this error : Couldn't wipeout object: at /opt/prj/rt/rt3/local/lib/RTx/Shredder.pm line 427. At the end of this mail is my subroutine - If I change the Wipeout to WipeoutAll , it just takes on forever at that statement. Let me know if you have any other logic to delete user accounts from a perl script. Please Help, Thanks -Ashish sub delete_user { # Grab the user id my $id = shift; # Form an RT::User object string for the user my $object_string = 'RT::User-' . $id; # Create a single item array with the object string my @users_to_delete = ($object_string); # Create a shredder object and pass it the array my $shredder = new RTx::Shredder( force = 1 ); $shredder-PutObjects( Objects = \...@users_to_delete ); # Shred the user eval { $shredder-Wipeout }; if ( $@ ) { return (-1, Failed to delete user with id '$id': $@); } return (1, User with id '$id' deleted successfully.\n); } ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Auto replies create tickets
Hi Brian, You can see on your headers that rt added an RT-DetectedAutoGenerated header, but still accepted it... So I'd look at that other code. I've been looking to find the code that is responsible for this but can't find it. Can you please point out the modules that are responsible for this so I can investigate? Thanks Nik ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Move tickets to Queue
How about your own version of 'rt-mailgate'. Take existing rt-mailgate and add little bit code in it what selects right queue base on sender address. Then you just need that one /etc/aliases line: support:|my-rt-mailgate --action comment --url http://domain.com/; This is not what you have asked, but better choose right queue outside RT than inside. On Tuesday, 23. Februaryta 2010 15:16:42 polloxx wrote: Thanks for all your suggestions. How can I do this using Scrips, so without the need to go to /etc/aliases? @Kevin: How do I check the return value of Setqueue? @Jerrad: We only have a limited number of customers and needed queues. On Tue, Feb 23, 2010 at 3:31 AM, Jerrad Pierce jpie...@cambridgeenergyalliance.org wrote: On Mon, Feb 22, 2010 at 16:30, Jerrad Pierce jpie...@cambridgeenergyalliance.org wrote: As I'm new to RT I'm trying to setup a system for our needs. We want a queue for each customer. Tickets are created by email. However, if you really want to do this, and assuming you have a relatively fixed set of requestors/queues, the easiest way to handle this would be running rt-mailgate with --extension=queue; of course, your current method of scrips permits you to programatically create a morasse of queues. -- Cambridge Energy Alliance: Save money. Save the planet. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com -- JJussi ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Script problem in the Create Ticket screen
Hi, This may well be old hat and fixed in the latest version but I thought I'd report it just in case. From RT's home screen, clicking on New Ticket in raises a scripting alert about a missing ) character. Looking at the code involved, I see the line: doOnLoad(hide(document.getElementById('Ticket-Create-details'));); which has the required # of ) but has a superfluous semicolon. -- Cheers, Richard. smime.p7s Description: S/MIME cryptographic signature ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] CommandByMail Extension
To list, I've installed CommandByMail. The instructions describe the ability to create a ticket WITH CustomField values. However, I'm finding this doesn't seem to be true. Do I also need to install an additional extension for this? Thanks. Kenn LBNL ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Single SignOn
I recently modified RT-Authen-ExtrenaAuth to authenticate to a RubyCAS server. The patching I did definitely doesn't follow all of the conventions as I don't pass config options from RT_SiteConfig like I should, etc. But if you or anyone else is interested I could post the code. It requires the use of the AuthCAS cpan module. On Tue, Feb 23, 2010 at 8:19 AM, Richard Pijnenburg rich...@widexs.nl wrote: Dear list, I’m wondering if there is a possibility for single signon based on a webservice. ( soap calls ) I have found a module, RT-Authen-ExternalAuth, but that one can only do Cookie/Ldap/Mysql. With kind regards, Richard Pijnenburg ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] error after upgrade from 3.8.4 to 3.8.7
On Tue, Feb 23, 2010 at 01:19:32AM +0100, Bernhard wrote: Hi, after upgrading from 3.8.4 to 3.8.7 rt3 won't show up, get this error in the lighttpd error log: 2010-02-23 01:13:43: (mod_fastcgi.c.2618) FastCGI-stderr: Can't call method interp on an undefined value at /usr/share/rt3/mason_lighttpd_handler.fcgi line 83. Can't call method interp on an undefined value at /usr/share/rt3/mason_lighttpd_handler.fcgi line 83. RT doesn't ship a file called mason_lighttpd_handler.fcgi -kevin pgpOORPIYqkt2.pgp Description: PGP signature ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] RT-Send-CC - mail is lost
On Tue, Feb 23, 2010 at 05:37:39AM -0800, Miroslav Horvath wrote: Hello We found one thing which we don/t know what to do. In RT 3.8.4. we have 10 different queues, where each queue has different email address. We found a problem, that when someone in one queue resolves the ticket, and put into One time CC email address of another RT queue, the mail is sent out, but is not created in that 2nd queue as new ticket. It seems it's lost or so. Check your logs, and make sure OwnerEmail is configured When 3.8.8 is released, RT will actually start telling you that you're doing something illegal (asking it to send mail to itself, setting up a potential loop) -kevin Normally, RT works like, that when it founds in subject some ticket ID, it adds this email to that ticket. Is there some way, that when someone closes ticket in one queue, and put into One Time CC email address of another queue, the new ticket will be created in that queue and not added into original ticket according to subject. But, we still want to keep the option, that when someone replies to some ticket, within same Queue (same email address of that queue) the email will be put into this ticket. Example: Queue 1 has email address bill...@zse.sk Queue 2 has email address outboundcck...@zse.sk In queue1 agent resolved the ticket, and put into One time CC the email address of queue2. Normally, it sends out email with subject together with original ticket ID. We expect, that in the queue2 new ticket will be created. But nothing happen. No new ticket in queue2 or, original ticket is not updated with this comment (based on ticketID). When some normal user replies to some email from RT, it pastes his email to the ticket, so the Reply funcionality works. But the way between 2 queues within RT seems difficult. http://old.nabble.com/file/p27703389/Snap8.jpg Snap8.jpg Configuration of our RT. http://old.nabble.com/file/p27703389/Configuration%255B1%255D.html Configuration%5B1%5D.html pgpbj4Nfw9mbQ.pgp Description: PGP signature ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Script problem in the Create Ticket screen
On Tue, Feb 23, 2010 at 10:10:49AM -, richard.hell...@stfc.ac.uk wrote: Hi, This may well be old hat and fixed in the latest version but I thought I'd report it just in case. From RT's home screen, clicking on New Ticket in raises a scripting alert about a missing ) character. Looking at the code involved, I see the line: doOnLoad(hide(document.getElementById('Ticket-Create-details'));); which has the required # of ) but has a superfluous semicolon. You don't say what version of RT this is, but as far as I know a JS error that sounds similar to this was fixed at least 18 months ago, along with many other browser fixes included in more recent releases. git show 14b518d8 -kevin pgpUmayB0E6wX.pgp Description: PGP signature ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] CommandByMail Extension
On Tue, Feb 23, 2010 at 10:59:51AM -0800, Ken Crocker wrote: I've installed CommandByMail. The instructions describe the ability to create a ticket WITH CustomField values. However, I'm finding this doesn't seem to be true. Do I also need to install an additional extension for this? What did you try, how did it fail, etc etc. You can certainly set Custom Fields with CommandByMail You can also use the ExtractCustomFieldValues extension, depending on what you're doing -kevin pgp09sbd3dK4T.pgp Description: PGP signature ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Single SignOn
On Tue, Feb 23, 2010 at 02:19:57PM +0100, Richard Pijnenburg wrote: I'm wondering if there is a possibility for single signon based on a webservice. ( soap calls I have found a module, RT-Authen-ExternalAuth, but that one can only do Cookie/Ldap/Mysql. If you are using a non-custom single signon system, you may want to post the name. A number of integrations have been done. -kevin pgpk70MaZqHoy.pgp Description: PGP signature ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] RT-Send-CC - mail is lost
On 02/23/2010 04:35 PM, Kevin Falcone wrote: When 3.8.8 is released, RT will actually start telling you that you're doing something illegal (asking it to send mail to itself, setting up a potential loop) -kevin Any sort of a timeline on this? This month? next month? check your stocking at Xmas? Jeff ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] CommandByMail Extension
Kevin, Thanks for responding. The following are the several tries to get a CustomFIeld set: This was in the body the first time: Status: open Owner: CACasaretto Priority: 3 CustomField.{Description}: This is the first test for CommandByMail CustomField.{Need-By-Date}: 04/02/2010 CustomField.{QA Approver}: KFCrocker CustomField.{Migrator}: WRHubert CustomField.{Work-State}: Investigating Request CustomField.{Resolution Type}: Vendor Software Upgrade Due: 04/05/2010 The CustomFields remained blank and Due Date as well. I figured out the Due date problem. --- This was in the body the second time: --- This is the second test for CommandByMail. Priority: 3 Due: 04-05-2010 CustomField.QA Approver: KFCrocker CustomField.Migrator: WRHubert CustomField.Work-State: Investigating Request CustomField.Resolution Type: Vendor Software Upgrade ** Same with the CF's. Due Date was fine. --- This was in the body the last time: --- Priority: 3 Due: 2010-04-05 AddCustomField.QA Approver: KFCrocker AddCustomField.Migrator: WRHubert AddCustomField.Resolution Type: Vendor Software Upgrade This is the seventh test for CommandByMail On this one, again, all is well except CF's. It seems if I enter a comment first, it doesn't work and I'm not sure about ticket fields after CF's because I can't get CF's to work. I really just want to do is this: 1) Set some Ticket Fields, that's working 2) Set the content, hopefully appart from the command lines?? 3) Set a few CF's with an initial value equal to one of the existing possible values already available. These CF's are Select One Value. Any help here would definitely be appreciated. Thanks a bunch. Kenn LBNL On 2/23/2010 1:43 PM, Kevin Falcone wrote: On Tue, Feb 23, 2010 at 10:59:51AM -0800, Ken Crocker wrote: I've installed CommandByMail. The instructions describe the ability to create a ticket WITH CustomField values. However, I'm finding this doesn't seem to be true. Do I also need to install an additional extension for this? What did you try, how did it fail, etc etc. You can certainly set Custom Fields with CommandByMail You can also use the ExtractCustomFieldValues extension, depending on what you're doing -kevin ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Scip adding custom 'Results' line / Stopping transaction 'Set'
Hi, I've got some custom fields for 3-point time estimates on project tickets. I've got it so that upon creation / update of the custom field, the 'TimeEstimated' field gets set to the 'Most Likely' custom field value. I've also got it so that it ignores any changes made manually to the 'TimeEstimated' field. So far, so good. I'd like to feed back to users that changes to the 'TimeEstimated' field shouldn't be made, that the 3-point fields should be modified together in order for changes to be made. The most logical way to do this (to me) is to feed a 'Result' (what's expanded from @actions in 'share/html/Elements/ListActions') so it can be displayed in the box at the top of the page when a ticket update occurs. I just can't find out how to do that. I see that most of the messages come from Transaction_Overlay.pm/BriefDescriptions, but I can see that the messages from that function are generated automatically based on what the transaction actually is. So, here's my question: * Using a Scrip Condition / Prep, can a 'Set' be rejected to not occur and thus raise an 'error' ? * If not, is there a way to feed back a custom message into the BriefDescriptions / @actions array so my own message can be displayed? Current scrip: Description: Re-Populate Estimate Condition: User Defined Action: User Defined Template: Global template: Blank Stage: TransactionCreate Custom Condition: my $_CF_NAME = '3 Point: Most Likely'; my $trans = $self-TransactionObj; my $ticket = $self-TicketObj; my $_CF = RT::CustomField-new ( $RT::SystemUser ); $_CF-LoadByNameAndQueue( Name = $_CF_NAME, Queue = $self-TicketObj-QueueObj-Name ); if ( $trans-Type eq 'Create' || ($trans-Type eq 'CustomField' $trans-Field == $_CF-id) || ($trans-Type eq 'Set' $trans-Field == 'TimeEstimated') ) { return 1; } Custom action preparation code: return 1; Custom action cleanup code: my $_CF_NAME = '3 Point: Most Likely'; my $ticket = $self-TicketObj; my $queue = $ticket-QueueObj-Name; my $trans = $self-TransactionObj; my $_CF = RT::CustomField-new ( $RT::SystemUser ); $_CF-LoadByNameAndQueue( Name = $_CF_NAME, Queue = $queue); unless ($_CF-id) { $RT::Logger-warning ($_CF_NAME doesn't exist in Queue . $queue); return undef; } my $most_likely = $ticket-FirstCustomFieldValue($_CF-id); if ($most_likely ne '' $most_likely != $ticket-TimeEstimated) { $RT::Logger-info(sprintf(Setting TimeEstimated from %s to value %s, $ticket-TimeEstimated, $most_likely)); $ticket-SetTimeEstimated($most_likely); } return 1; Stuart J. Browne Senior Unix Administrator, Network Administrator AusRegistry Pty Ltd Level 8, 10 Queens Road Melbourne. Victoria. Australia. 3004. Ph: +61 3 9866 3710 Fax: +61 3 9866 1970 Email: stuart.bro...@ausregistry.com.au Web: www.ausregistry.com.au The information contained in this communication is intended for the named recipients only. It is subject to copyright and may contain legally privileged and confidential information and if you are not an intended recipient you must not use, copy, distribute or take any action in reliance on it. If you have received this communication in error, please delete all copies from your system and notify us immediately. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 23 Dublin, Ireland - Mar 15 16 Boston, MA, USA - April 5 6 Washington DC, USA - Oct 25 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com