Adding Take to default query

What I’d like to do is add a take command next to each ticket in each
queue. Basically exactly how the "10 newest unowned tickets
<http://amrnasabox/Search/Results.html?Order=DESC|ASC|ASC|ASC&Quer
y=%20Owner%20%3D%20’Nobody’%20AND%20(%20Status%20%3D%20’new’%20OR%20Stat
us%20%3D%20’open’)&Rows=10&OrderBy=Created%7CQueue&Format=‘%3Ca%20href%3
D%22%2FTicket%2FDisplay.html%3Fid%3D__id__%22%3E__id__%3C%2Fa%3E%2FTITLE
%3A%23’%2C%0A’%3Ca%20href%3D%22%2FTicket%2FDisplay.html%3Fid%3D__id__%22
%3E__Subject__%3C%2Fa%3E%2FTITLE%3ASubject’%2C%0A’QueueName’%2C%0A’_
ExtendedStatus_‘%2C%0A’CreatedRelative’%2C%0A’%3CA%20HREF%3D%22%2F
Ticket%2FDisplay.html%3FAction%3DTake%26id%3D__id__%22%3ETake%3C%2Fa%3E%
2FTITLE%3A%26nbsp%3B%20’&RowsPerPage=25> " is setup with the Take
command - I’d like to make it universal for all queues.

Is this possible? And if so how would I go about doing this?

Thank you!

-Adam

Hello Adam,

Your request has already been implemented. I’m using RT 3.6.3 and there’s
a Take link next to each unowned ticket.
You can upgrade your RT or compare the code of your RT version and RT
3.6.3 to find how to do this.

Good luck.

Regards,

Iounes GARDON

Hi Iounes,

Thanks for the reply… I am running version 3.6.3 - so then I guess my
question is how can I make the default layout to include this when
someone clicks on their desired queue… I’d like this to be a global
setting. It already is with the UnOwned query on all users home pages
but not in the default queue listing pages.

Thanks,

Adam-----Original Message-----
From: Iounes GARDON /iog .Y [mailto:iounes.gardon@mikrosimage.fr]
Sent: Wednesday, September 19, 2007 9:19 AM
To: Adam Savage
Cc: RT-Users
Subject: Re: [rt-users] adding Take to default query

Hello Adam,

Your request has already been implemented. I’m using RT 3.6.3 and
there’s
a Take link next to each unowned ticket.
You can upgrade your RT or compare the code of your RT version and RT
3.6.3 to find how to do this.

Good luck.

Regards,

Iounes GARDON

Hi Adam,

Thank you for having detailled a little more your needs…

The query ‘Search - Unowned Tickets’ is stored in the database.
The script who insert it (at RT installation) is /etc/initialdata.

{ Name => 'Search - Unowned Tickets',
  Description => '[_1] newest unowned tickets', # loc
  Content     =>

‘Take’ #loc

  { Format => "'<a

href=“WebPath/Ticket/Display.html?id=id”>id/TITLE:#’,
’<a
href=“WebPath/Ticket/Display.html?id=id”>Subject/TITLE:Subject’,
QueueName, ExtendedSta
tus, CreatedRelative, '<A
HREF=“WebPath/Ticket/Display.html?Action=Take&id=id”>loc(Take)/TITLE: '
",
Query => " Owner = ‘Nobody’ AND ( Status = ‘new’ OR Status =
‘open’)",
OrderBy => ‘Created’,
Order => ‘DESC’ },
},

Good Luck.

Iounes GARDON

Appreciate it - thank you!-----Original Message-----
From: Iounes GARDON /iog .Y [mailto:iounes.gardon@mikrosimage.fr]
Sent: Wednesday, September 19, 2007 9:47 AM
To: Adam Savage
Cc: RT-Users
Subject: Re: [rt-users] adding Take to default query

Hi Adam,

Thank you for having detailled a little more your needs…

The query ‘Search - Unowned Tickets’ is stored in the database.
The script who insert it (at RT installation) is /etc/initialdata.

{ Name => 'Search - Unowned Tickets',
  Description => '[_1] newest unowned tickets', # loc
  Content     =>

‘Take’ #loc

  { Format => "'<a

href="WebPath/Ticket/Display.html?id=id">id/TITLE:#',
‘<a
href="WebPath/Ticket/Display.html?id=id">Subject/TITLE
:Subject’,
QueueName, ExtendedSta
tus, CreatedRelative, '<A
HREF="WebPath/Ticket/Display.html?Action=Take&id=id">loc(Tak
e)
/TITLE: ’
“,
Query => " Owner = ‘Nobody’ AND ( Status = ‘new’ OR Status =
‘open’)”,
OrderBy => ‘Created’,
Order => ‘DESC’ },
},

Good Luck.

Iounes GARDON