[rt-users] Adding priority to QuickCreate

Ewan Meadows ewan.meadows at gmail.com
Thu Nov 26 12:35:14 EST 2015


Ok, so I got it working with a bit of help from trwww in IRC:

Add the following to share/html/Elements/QuickCreate:

<tr class="input-row">
<td class="label"><&|/l&>Priority</&>:</td><td class="value">
<& /Elements/SelectPriority, Name => 'InitialPriority', Default =>
$args->{InitialPriority} &>
</td>
</tr>
</td></tr>

And also modify share/html/index/html to include the following:

   if ( $ValidCFs && !$skip_create ) {
        my ($t, $msg) = CreateTicket(
                        Queue => $ARGS{'Queue'},
                        Owner => $ARGS{'Owner'},
                        Status => $ARGS{'Status'},
                        InitialPriority => $ARGS{'InitialPriority'},

Hope this information is useful to someone

On 26 November 2015 at 09:14, Ewan Meadows <ewan.meadows at gmail.com> wrote:
> I did, but it appears to me that the priority gets set during ticket
> creation by the Queue mechanism?
>
> On 25 November 2015 at 23:05, Matt Zagrabelny <mzagrabe at d.umn.edu> wrote:
>> On Wed, Nov 25, 2015 at 4:58 PM, Ewan Meadows <ewan.meadows at gmail.com> wrote:
>>> Ok, this is driving me barmy.
>>>
>>> Can someone point me in the right direction to get Priority added to
>>> the QuickCreate portlet?  Because I've come up with this:
>>> https://bpaste.net/show/ccfd659d3166
>>>
>>> And although I get the right options, it never sets the priority.
>>>
>>> Anyone care to help me out with this frustrating problem?
>>
>> share/html/Elements/QuickCreate has callback hooks. Use those.
>>
>> -m



More information about the rt-users mailing list