[rt-users] Scrip "On transaction and SetStarted Open Ticket" not working

2016-04-25 Thread John Ouellette
Hi -- I recently upgraded to RT 4.2 and found that the "On transaction 
and SetStarted Open Ticket" scrip was not correctly setting the Started 
date or setting the status to Open.  I've tried playing with recreating 
this scrip and various other tricks, but nothing seems to make it work: 
I'm not sure if the 'On Transaction' condition isn't working, or if the 
'On SetStarted Open Ticket' Action isn't working.


Either way, from an earlier message in the list, it looks like an error 
occured during my upgrade, but I don't know where this might be.  As far 
as I could tell, the upgrade went smoothly and no errors were reported.


How can I check what part of the scrip is broken?  How can I tell what 
part of the install broke?


I also tried updating to 4.4 (from 4.2) hoping that this would fix this 
but, although the installation went smoothly and no errors were 
reported, the problem still exists.


Thanks,
John

--
Dr. John Ouellette
Operations Manager | Gestionnaire des opérations
Canadian Astronomy Data Centre | Centre canadien de données astronomiques
National Research Council Canada | Conseil national de recherches Canada
5071 West Saanich Road | 5071, chemin West Saanich
Victoria, BC V9E 2E7 | Victoria, (C.-B.) V9E 2E7

Telephone | Téléphone  250-363-3037

Government of Canada | Gouvernement du Canada

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Show Ticket Message in Search/Results.html

2016-04-25 Thread Jim Brandt

Sorry, late to the conversation, but here's something I think is similar:

https://metacpan.org/pod/RT::Extension::PreviewInSearch

On 4/25/16 4:48 AM, David Schmidt wrote:

On 25.04.2016 09:58, David Schmidt wrote:

On 25.04.2016 08:49, Christian Loos wrote:

Am 25.04.2016 um 08:46 schrieb David Schmidt:

Another path that looks weird to me is:

"local/Callbacks/YourOrg/Elements/RT__Ticket/ColumnMap/Once"

shouldnt that be

"local/Callbacks/YourOrg/Elements/RT/Ticket/ColumnMap/Once"

Arg ... I missed this, this must be
"local/html/Callbacks/YourOrg/Elements/RT__Ticket/ColumnMap/Once"


Chris


Hey Chris, thanks for your help.

After a bit of debugging these appear to be the correct locations:

"local/html/Callbacks/Univie/Search/Elements/BuildFormatString/Default"
"local/html/Callbacks/Univie/Elements/RT__Ticket/ColumnMap/Once"
"local/lib/RT/Ticket_Local.pm"

I'll wrap everything up in an extension and put it on github.

cheers
david
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


https://github.com/davewood/RT-Extension-TicketPreview
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-25 Thread Martin Wheldon

Hi,

It also says:

"   # Set DocumentRoot as appropriate for the other content you want to 
serve

DocumentRoot /var/www"

So to a path where your other content that you want apache to serve, I'm 
afraid only you can

answer that question.

Best Regards

Martin

On 2016-04-25 10:18, Yanni wrote:

Hello

In the section "Running RT at rt rather than /" says that you need to
make sure "DocumentRoot" is not set to "/opt/rt4/share/html/". What
path am I supposed to use, please?

Thanks
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-25 Thread Yanni

Hello

In the section "Running RT at rt rather than /" says that you need to 
make sure "DocumentRoot" is not set to "/opt/rt4/share/html/". What path 
am I supposed to use, please?


Thanks
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Show Ticket Message in Search/Results.html

2016-04-25 Thread David Schmidt

On 25.04.2016 09:58, David Schmidt wrote:

On 25.04.2016 08:49, Christian Loos wrote:

Am 25.04.2016 um 08:46 schrieb David Schmidt:

Another path that looks weird to me is:

"local/Callbacks/YourOrg/Elements/RT__Ticket/ColumnMap/Once"

shouldnt that be

"local/Callbacks/YourOrg/Elements/RT/Ticket/ColumnMap/Once"

Arg ... I missed this, this must be
"local/html/Callbacks/YourOrg/Elements/RT__Ticket/ColumnMap/Once"


Chris


Hey Chris, thanks for your help.

After a bit of debugging these appear to be the correct locations:

"local/html/Callbacks/Univie/Search/Elements/BuildFormatString/Default"
"local/html/Callbacks/Univie/Elements/RT__Ticket/ColumnMap/Once"
"local/lib/RT/Ticket_Local.pm"

I'll wrap everything up in an extension and put it on github.

cheers
david
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


https://github.com/davewood/RT-Extension-TicketPreview
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Show Ticket Message in Search/Results.html

2016-04-25 Thread David Schmidt

On 25.04.2016 08:49, Christian Loos wrote:

Am 25.04.2016 um 08:46 schrieb David Schmidt:

Another path that looks weird to me is:

"local/Callbacks/YourOrg/Elements/RT__Ticket/ColumnMap/Once"

shouldnt that be

"local/Callbacks/YourOrg/Elements/RT/Ticket/ColumnMap/Once"

Arg ... I missed this, this must be
"local/html/Callbacks/YourOrg/Elements/RT__Ticket/ColumnMap/Once"


Chris


Hey Chris, thanks for your help.

After a bit of debugging these appear to be the correct locations:

"local/html/Callbacks/Univie/Search/Elements/BuildFormatString/Default"
"local/html/Callbacks/Univie/Elements/RT__Ticket/ColumnMap/Once"
"local/lib/RT/Ticket_Local.pm"

I'll wrap everything up in an extension and put it on github.

cheers
david
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Show Ticket Message in Search/Results.html

2016-04-25 Thread Christian Loos


Am 25.04.2016 um 08:46 schrieb David Schmidt:
> Another path that looks weird to me is:
> 
> "local/Callbacks/YourOrg/Elements/RT__Ticket/ColumnMap/Once"
> 
> shouldnt that be
> 
> "local/Callbacks/YourOrg/Elements/RT/Ticket/ColumnMap/Once"
Arg ... I missed this, this must be
"local/html/Callbacks/YourOrg/Elements/RT__Ticket/ColumnMap/Once"


Chris
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Show Ticket Message in Search/Results.html

2016-04-25 Thread David Schmidt

I tried that already and it didnt change a thing.

I run the dev server directly form the command line (./sbin/rt-server 
--port 3000) and dont get an error msg.


Another path that looks weird to me is:

"local/Callbacks/YourOrg/Elements/RT__Ticket/ColumnMap/Once"

shouldnt that be

"local/Callbacks/YourOrg/Elements/RT/Ticket/ColumnMap/Once"

?

On 25.04.2016 07:59, Christian Loos wrote:

Am 23.04.2016 um 10:25 schrieb David Schmidt:

On a sidenote (and without intention to blame you for anything) RT
development is horrible to debug. :)


You should see in your logs a message like 'function TicketPreview not
defined' ...


$ cat local/lib/rt/Ticket_Local.pm


because the correct path is local/lib/RT/Ticket_Local.pm

Chris

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016