[rt-users] RT-Extention-QueueDeactivatedScrips
David Moreau Simard
dmsimard at iweb.com
Wed Dec 28 17:46:28 EST 2011
I've made an updated version available as a forked project on Github:
https://github.com/dmsimard/RT-Extension-QueueDeactivatedScrips
Feel free to use it, I will surely update it in the near future.
*David Moreau Simard*
On 11-12-28 4:27 PM, David Moreau Simard wrote:
> Okay, I've managed to make it work.
>
> In the patch, there is a file Scrip_Overlay.pm - now, I've renamed
> this file to Scrip.pm since this is the file that it is meant to extend.
> After doing some tests, I could not get RT to use the extended
> Scrip.pm - maybe you could provide some insight on that.
>
> However, when I placed the extended Scrip.pm into local/lib/RT, scrip
> activation and deactivation worked as expected.
>
> Any ideas ?
>
> *David Moreau Simard*
>
>
> On 11-12-28 2:17 PM, David Moreau Simard wrote:
>> Okay, I've figured it out what was the issue.
>> In the patch you provided, the file hierarchy isn't the same as the
>> one I have.
>>
>> If I look at /opt/rt4/share/html, I have the following:
>> drwxr-xr-x 10 root bin 4096 Dec 28 12:24 Admin
>> drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Approvals
>> drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Articles
>> -rw-r--r-- 1 root bin 2263 Dec 28 12:24 autohandler
>> drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Dashboards
>> -rw-r--r-- 1 root bin 2285 Dec 28 12:24 dhandler
>> drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Download
>> drwxr-xr-x 15 root bin 4096 Dec 28 12:24 Elements
>> drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Helpers
>> -rw-r--r-- 1 root bin 5158 Dec 28 12:24 index.html
>> drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Install
>> -rw-r--r-- 1 root bin 2188 Dec 28 12:24 l
>> drwxr-xr-x 5 root bin 4096 Dec 28 12:24 m
>> drwxr-xr-x 9 root bin 4096 Dec 28 12:24 NoAuth
>> drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Prefs
>> drwxr-xr-x 3 root bin 4096 Dec 28 12:24 REST
>> drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Search
>> drwxr-xr-x 5 root bin 4096 Dec 28 12:24 SelfService
>> drwxr-xr-x 5 root bin 4096 Dec 28 12:24 Ticket
>> drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Tools
>> drwxr-xr-x 2 root bin 4096 Dec 28 12:24 User
>> drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Widgets
>>
>> Now, in the rt_local folder of the patch, the html folder looks like
>> this:
>> drwxrwxrwx 3 root root 4096 Dec 5 03:49 Admin
>> drwxrwxrwx 2 root root 4096 Dec 5 03:50 Queues
>>
>> Notice the Queues folder ? I moved it inside Admin - just like in the
>> default hierarchy:
>> # ls -al /opt/rt4/share/html/Admin/
>> total 48
>> drwxr-xr-x 10 root bin 4096 Dec 28 12:24 .
>> drwxr-xr-x 20 root bin 4096 Dec 28 12:24 ..
>> drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Articles
>> -rw-r--r-- 1 root bin 2213 Dec 28 12:24 autohandler
>> drwxr-xr-x 2 root bin 4096 Dec 28 12:24 CustomFields
>> drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Elements
>> drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Global
>> drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Groups
>> -rw-r--r-- 1 root bin 2268 Dec 28 12:24 index.html
>> drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Queues
>> drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Tools
>> drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Users
>>
>> I now get the global scrip activation toggles inside the queue scrips
>> configuration.
>> I'm now testing to see if I am able to get the expected behavior from
>> my global scrips.
>>
>> I've created a dummy global scrip which re-opens a ticket if the
>> status is changed. If I change the status to "stalled", it resets the
>> ticket's status to "open".
>> Now, I've tried deactivating the scrip both through the global
>> section and the queue section but it keeps going.
>>
>> Trying to figure out what is the issue and I will report back !
>>
>> *David Moreau Simard*
More information about the rt-users
mailing list