Re: [rt-users] StockAnswers for RT

2007-02-03 Thread Asif Iqbal

On 11/8/06, Stephen Turner [EMAIL PROTECTED] wrote:

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Todd Chapman
 Kris,

 All new extensions for RT are good. I read the documentation
 and don't understand what this accomplishes that RTFM does
 not. Please elaborate.

 -Todd

I can't speak for Kris, but I think there's definitely a place for a
lighter-weight solution than RTFM for providing a list of commonly used
email messages on the reply screen. I put something rudimentary out myself a
few months back (http://wiki.bestpractical.com/index.cgi?CannedReplies).


I like this one. It is very simple and it works almost perfect on my 3.4.x

I notice the first line of the content section has to be empty for it
to parse the whole content.

Is that normal behavior?


Some folks may find RTFM a little complex just for this simple
functionality.

Steve


Stephen Turner
Senior Programmer/Analyst - Client Support Services
MIT Information Services and Technology (IST)


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com




--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Correspond Transaction Twice on Reply in Batchmode

2007-02-03 Thread Ruslan Zakirov

Try this patch

On 1/31/07, Audun Ytterdal [EMAIL PROTECTED] wrote:

I want to control most of my tickets with mails and I am cc'ing all
tickets in a queue to a group of customers and a shared folder.

Since mail is the main interface i've put some effort into putting some
info in the footer of each mail

scrip
Description: 99LinproCorrespond
Condition: On Correspnd
Action: Notify Requestors, Ccs and AdminCcs
Template: Global template: LinproMailTemplateRe
Stage: TransactionCreate
/scrip

template
RT-Attach-Message: yes
Subject: { Re: [.$RT::rtname. #.$Ticket-id.] .$Ticket-Subject}

{
 my $content = '';
 my $transactions = $Ticket-Transactions;
 $transactions-Limit( FIELD = 'Type', VALUE = 'Correspond' );

 while (my $transaction = $transactions-Next) {
   my $attachments = $transaction-Attachments;

   while (my $message = $attachments-Next) {
 next unless $message-ContentType =~
  m!^(text/plain|message|text$)!i;

 $content = $message-Content;
   }
 }
 my $output = ($content || $Transaction-Content());
 $output;
}
--
Linproticket: {$RT::WebURL}Ticket/Display.html?id={$Ticket-id}
[{$Ticket-Status}]
Requestor: {$Ticket-RequestorAddresses} Created: {$Ticket-Created}
Owner: {$Ticket-OwnerObj-EmailAddress || $Ticket-OwnerObj-Name}
Level: {$Ticket-FirstCustomFieldValue('LinproLevel') }
/template

This works, except the script is firing to soon so the information in
$Ticket-Status and friends is outdated.

After some googling around i found out that this works much better if I
put on correspondece  in TransactionBatch-stage. All the information
is now up to date and everything works as expected using the
mailinterface to set Owner and Status and such.

BUT, the script now fires twice If I use the webinterface. When I click
on reply on a ticket _and_ when I submit  the reply.

If the on correspondance is in TransactionCreate-Stage: Fire of the
scrip when update ticket is clicked. But info is outdated
If the on correspondance is in TransactionBatche-stage: Fire when
clicking on reply and on update ticket so I get two mails.

Is there anything I can to the get the benefit of both worlds? Is it a
bug to start a transaction when clicking on reply before you acctually
update it?

--
Audun



--
Best regards, Ruslan.
=== lib/RT/Record.pm
==
--- lib/RT/Record.pm	(revision 4507)
+++ lib/RT/Record.pm	(local)
@@ -1469,7 +1469,7 @@
 $self-_UpdateTimeTaken( $args{'TimeTaken'} );
 }
 if ( $RT::UseTransactionBatch and $transaction ) {
-	push @{$self-{_TransactionBatch}}, $trans;
+	push @{$self-{_TransactionBatch}}, $trans if $args{'CommitScrips'};
 }
 return ( $transaction, $msg, $trans );
 }
=== lib/RT/Ticket_Overlay.pm
==
--- lib/RT/Ticket_Overlay.pm	(revision 4507)
+++ lib/RT/Ticket_Overlay.pm	(local)
@@ -3433,6 +3433,8 @@
 return if $self-{_Destroyed}++;
 
 my $batch = $self-TransactionBatch or return;
+return unless @$batch;
+
 require RT::Scrips;
 RT::Scrips-new($RT::SystemUser)-Apply(
 	Stage		= 'TransactionBatch',
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Custom fields are not being displayed (fwd)

2007-02-03 Thread Joe Casadonte

On 2/2/2007 5:29 AM, Alison Downie wrote:

I am trying to upgrade from 3.0.8 to 3.6.1 and it all looked OK apart 
from not being able to see any Custom Fields when I display a ticket. 
Despite giving myself the appropriate rights (AdminCustomField etc) I 
cannot perform


I'm seeing the same thing.  Under FireFox 2.0.0.1 the field appears; 
under IE 6.0 SP2 the field does not show up.  I'm logged in as the same 
user.  This only happens with Combobox: select or enter one value 
fields, though; Enter One Value fields show up fine.  This is RT 3.6.3


--
Regards,


joe

 ~~~
|   Joe Casadonte   |  [EMAIL PROTECTED] |
|~~~|~~ |
| Oracle Transportation Management  |  1016 West Ninth Avenue   |
|~~~|  Suite 300|
|   610-491-3315|  King of Prussia, PA  19406   |
 ~~~


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] 3.6.3: User Custom Fields - do not appear in About me preferences

2007-02-03 Thread Joe Casadonte
I added a custom field (text entry) for users, the See and Modify rights 
are given to Everyone.  The field does not show up on the About me 
screen under Preferences for any user (even the root user).  Should it? 
 This is Rt 3.6.3 -- thanks!


--
Regards,


joe

 ~~~
|   Joe Casadonte   |  [EMAIL PROTECTED] |
|~~~|~~ |
| Oracle Transportation Management  |  1016 West Ninth Avenue   |
|~~~|  Suite 300|
|   610-491-3315|  King of Prussia, PA  19406   |
 ~~~


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com