Adding priority to QuickCreate

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?

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

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

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

<&|/l&>Priority: <& /Elements/SelectPriority, Name => 'InitialPriority', Default => $args->{InitialPriority} &>

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 someoneOn 26 November 2015 at 09:14, Ewan Meadows ewan.meadows@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@d.umn.edu wrote:

On Wed, Nov 25, 2015 at 4:58 PM, Ewan Meadows ewan.meadows@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