[rt-users] Adding Customfields to QuickCreate Portlet

scott.dalzell scott.dalzell at aveva.com
Thu Jul 4 12:21:34 EDT 2013


Hi

I am now trying to add a global ticket CF to the homepage QuickCreate
Portlet

i have have followed the wiki (below) and my custom field will not appear
when i view the QuickTicket Poerlet
(http://requesttracker.wikia.com/wiki/QuickTicket#Add_custom_fields_to_portlet) 

below are why current Quickticket and QuckTicketCustomField files as set out
in the above wiki

thank you in advance

*Quickticket*

%##################################
%#Table Setup
%##################################

<div class="quick-ticket">
<&| /Widgets/TitleBox, title => loc('TEST - Quick ticket creation (Better
edition!) - Dont Touch!!') &>
<form
    method="post"
    action="<%RT->Config->Get('WebPath')%>/index.html"
% $m->callback(CallbackName => 'InFormElement');
>
<input type="hidden" class="hidden" name="QuickTicket" value="1" />

%##################################
%#Table Layout and Formatting
%##################################


<COLGROUP align="right">
<COLGROUP align="right">
<COLGROUP align="left">
<COLGROUP align="centre">


%##################################
%#Table Data - Basics
%##################################

Basics:	Subject:
    	<input type="text" size="65" name="Subject" />


Requestors:
<input type="text" size="65" name="Subject" />


Queue:
<& /Elements/SelectNewTicketQueue, Name => 'Queue' &>

Owner:
<select colspan="1" type="select" name="Owner">  
<option value="<%$session{'CurrentUser'}->id%>"
selected="selected"><&|/l&>Me</&></option>
<option value="<%RT->Nobody->id%>"><%loc('Nobody')%></option>
</select>




Content:
<textarea name="Content" cols="50" rows="3"></textarea>




%##################################
%#Table Data - CustomFields
%##################################

Custom Fields:

Product:

<select type="select" name="Product",Default => "-">
<option >-</option> 
<option >LFM Server</option>
<option >LFM Gateway</option> 
<option >LFM NetView</option>  



Version:

<select type="select" name="Product",Default => "-">
<option >-</option> 
<option >4.1.00.17</option>
<option >4.1.10.01</option> 
<option >4.2.00.00</option>  




*	Alert_Support:



*




%##################################
%#Table End - Create Ticket
%##################################

<& /Elements/Submit, Label => loc('Create') &>
</form>
</&>
</div>



*QuickTicketCustomFields*
<& /Ticket/Elements/EditCustomFields, %ARGS, QueueObj => $QueueObj, InTable
=> 1 &> 
<& /Ticket/Elements/EditTransactionCustomFields, %ARGS, QueueObj =>
$QueueObj, InTable => 1 &>


<%init>
my $Queue = $ARGS{Queue};
my $QueueObj = RT::Queue->new($session{'CurrentUser'});
$QueueObj->Load($Queue) || Abort(loc("Queue could not be loaded."));
</%init>










--
View this message in context: http://requesttracker.8502.n7.nabble.com/Adding-Customfields-to-QuickCreate-Portlet-tp54565.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.



More information about the rt-users mailing list