Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

Fwd: Queue-specific message box contents



Request Tracker users RSS feed   Index | Next | Previous | View Threaded

ram0502 at gmail

May 8, 2012, 11:40 AM

Post #1 of 1 (260 views)
Fwd: Queue-specific message box contents


---------- Forwarded message ----------
From: Ram <ram0502 [at] gmail>
Date: Mon, Apr 30, 2012 at 12:29 PM
Subject: [rt-users] Queue-specific message box contents
To: rt-users <rt-users [at] lists>

Hey folks,
I found this delightful post suggesting a trivial solution to fill a
need I have - pre-filling text areas for comment/reply messages on a
queue by queue basis. After following the instructions the template
was used to pre-populate the text area exactly as described however
any changes made to that text were discarded when the comment was
posted leaving me with the contents of the template as the contents of
the comment.

Any ideas?

On Wed, Feb 09, 2011 at 08:50:35AM -0500, Brian P. Bilbrey wrote:
> My goal: I've got a change management queue. When I create a new ticket in the
> web interface for this queue, I want the MessageBox (comment) field
> pre-populated with text headers like these:


> Does anyone have any guidance for me?

We do exactly this, using a callback which I've attached to this message.

You should install it in your local mason root as


This is based on

but rather simpler. Once you've installed the callback, any queues which
has a template called DefaultCreateTemplate will have the content appear
in the create ticket form.

Hopefully you can get what you want either from this, or from other
ideas on the wiki.


Dominic Hargreaves, Systems Development and Support Team
Computing Services, University of Oxford
-------------- next part --------------
%# During ticket create, if a per-queue template named "DefaultCreateTemplate"
%# exists, the message box will be pre-filled with it.
%# Dominic Hargreaves 2009, based on ideas from
%# http://wiki.bestpractical.com/view/CannedReplies
my $template_name = 'DefaultCreateTemplate';
my $template = RT::Template->new( $session{'CurrentUser'} );
$template->LoadByCol( "Name" => $template_name, "Queue" => $QueueObj->id );
if ( $template->id ) {
   $$ARGSRef{'Content'} = $template->MIMEObj->stringify;

Request Tracker users RSS feed   Index | Next | Previous | View Threaded

Interested in having your list archived? Contact Gossamer Threads
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.