Re: [rt-users] Charts not being displayed in Dashboard

2016-07-19 Thread John Habermann
Thank you Shawn this resolved the issue in both my 4.2.10 and 4.4 install.

On Tue, Jul 19, 2016 at 8:50 AM, Shawn M Moore <sh...@bestpractical.com>
wrote:

>
> > On Jul 18, 2016, at 02:06, John Habermann <john.haber...@gmail.com>
> wrote:
> >
> > Hi
>
> Hi John,
>
> > I can't seem to get charts to display in my dashboards even though they
> display fine individually. […]
>
> This issue is fixed in RT 4.4.1, which is currently in release candidate
> phase.
>
> As a workaround, if you click the Update Chart button at the bottom of the
> page and save it again, it should subsequently show up on dashboards.
>
> > Thank you
>
> Thanks,
> Shawn
>
>
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] Charts not being displayed in Dashboard

2016-07-18 Thread John Habermann
Hi

I can't seem to get charts to display in my dashboards even though they
display fine individually. I have had this issue in 4.2.10 and thought that
it might be due to some upgrade issue but today I did a test install of the
4.4 release which was build with both Graphwiz and GD enabled and tried
just creating 2 tickets in the default queue confirming that I could view
them in a chart. After saving the chart I then created a new dashboard and
added the chart to the dashboard but I have the same result where I just
see a link (see testdashboard.png) and nothing is rendered below it. I
don't see any errors in the rt-server output and from what I read in the
Chart and Dashboard documentation there doesn't seem to be anything special
that must be done but given I can't find anything on google regarding this
issue I must have missed something really obvious. If anyone can shed some
light on why this is happening it would be really appreciated.

Thank you
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] RT Task Timer

2010-11-28 Thread john habermann
Here is the link to the original email that Jesse published about it.
http://www.mail-archive.com/rt-users@lists.bestpractical.com/msg04795.html

On Thu, Nov 25, 2010 at 6:50 PM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
torsten.br...@kuehne-nagel.com wrote:

 Hi Tom,
 i remember an addon at bps svn called RT-Extension-TimedWork but i can't
 find it at BPS Git or Cpan at the moment.

 Think this is the addon you are looking for. We check at home tonight for
 it.

 Torsten

 -Ursprüngliche Nachricht-
 Von: rt-users-boun...@lists.bestpractical.com [mailto:
 rt-users-boun...@lists.bestpractical.com] Im Auftrag von Tom Robinson
 Gesendet: Mittwoch, 24. November 2010 22:57
 An: rt-users@lists.bestpractical.com
 Betreff: [rt-users] RT Task Timer

 Hi,

 Just curious if anyone knows of an extension to RT that allows automated
 task timing? Some kind of 'button' that, when clicked, would start timing a
 task and then when you click it a second time it logs the time against a
 specific task.

 Anyone?

 Regards,

 Tom

 --

 Tom Robinson
 System Administrator

 MoTeC

 121 Merrindale Drive
 Croydon South
 3136 Victoria
 Australia

 T: +61 3 9761 5050
 F: +61 3 9761 5051
 E: tom.robin...@motec.com.au





[rt-users] Using the Timeline Extension to help in scheduling tickets

2010-08-13 Thread john habermann
Hi

If anyone is interested I have added a page to the RT wiki which describes
how I to use the timeline module to display the Start and Due date of
tickets in constructing the ticket timeline. This makes it a useful tool in
helping to schedule your workload in rt a somewhat similar view to what a
Gantt chart might give you. The page is at
http://wiki.bestpractical.com/view/TimelineStartDue

cheers

John

RT Training in Washington DC, USA on Oct 25  26 2010
Last one this year -- Learn how to get the most out of RT!

Re: [rt-users] Using the Timeline Extension to help in scheduling tickets

2010-08-13 Thread john habermann
Because I didn't know about it :)
Thanks very much for letting us know about this Torsten when I had been
searching for Gantt charts and RT the only mention I had found had been to
do with the timeline extension.

On Fri, Aug 13, 2010 at 6:38 PM, Torsten Brumm torsten.br...@googlemail.com
 wrote:

 Looks nice, but why not using the perfect RT-Extension-JSGantt ? from
 github

 2010/8/13 john habermann john.haber...@gmail.com

 Hi

 If anyone is interested I have added a page to the RT wiki which describes
 how I to use the timeline module to display the Start and Due date of
 tickets in constructing the ticket timeline. This makes it a useful tool in
 helping to schedule your workload in rt a somewhat similar view to what a
 Gantt chart might give you. The page is at
 http://wiki.bestpractical.com/view/TimelineStartDue

 cheers

 John


 RT Training in Washington DC, USA on Oct 25  26 2010
 Last one this year -- Learn how to get the most out of RT!




 --
 MFG

 Torsten Brumm

 http://www.brumm.me
 http://www.elektrofeld.de


RT Training in Washington DC, USA on Oct 25  26 2010
Last one this year -- Learn how to get the most out of RT!

Re: [rt-users] Unable to delete or modify dashboards as any user including superuser

2010-08-12 Thread john habermann
Hi Kevin

Thanks for your advice, I am pretty sure that I did apply
the rt-setup-database --action upgrade step when I did the upgrade from
3.8.2 to 3.8.8 but I have tried running it again in case and I get a couple
of warnings like:

[Fri Aug 13 01:06:36 2010] [warning]: Couldn't set SortOrder: That is
already the current value (./etc/upgrade/3.8.8/content:32)

Which makes me think I had already done it. It didn't make any difference to
what I see when I am viewing the dashboards.
I had a look in the rt3.8.8/etc/upgrade folder and I see that dashboards are
mentioned in the 3.8.2 content file so on the off chance that I had missed
that step I ran the upgrades from version 3.8.1 but that has not helped
either. As everything was working fine on my 3.8.2 version I would have
thought that I must have already done that step anyway.

Would their be any other schema changes to the rt database outside those
listed in the etc/upgrade folder?

Thank you

On Tue, Aug 10, 2010 at 1:29 AM, Kevin Falcone falc...@bestpractical.comwrote:

 On Mon, Aug 09, 2010 at 12:00:10PM +1000, john habermann wrote:
 Hi
 I have just noticed I have a problem with editing Dashboards in my RT
 instance namely I can't
 do anything with them apart from create them. Once I create them if I
 click on them I see a
 page as shown in the attached images, there are simply no options to
 do anything. I have tried
 giving the user every dashboard permission available and have even
 made them Superuser but it
 makes no difference.
 The problem appears to have occured when I upgraded from rt 3.8.2 to
 3.8.8 as in the older
 version I see Basics * Queries * Subscription * Show link but that
 has disappeared with the
 update to 3.8.8. I did install the Timeline module after I upgraded to
 3.8.8 so I thought that

 When you upgraded, did you run rt-setup-database --action upgrade to
 apply the database changes described in UPGRADING?
 The internal format of Dashboards changed, and it sounds like you
 missed a step.

 -kevin

 might be the problem as the bug at [1]
 https://rt.cpan.org/Public/Bug/Display.html?id=39729
 indicates that it breaks the bulk update but applying that fix does
 not help the dashboard
 problem. I tried disabling that module but the problem still persists.
 Does anyone have any thoughts as to what might be causing this
 problem?
 Thank you
 
  References
 
 Visible links
 1. https://rt.cpan.org/Public/Bug/Display.html?id=39729



 
  Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
  Buy a copy at http://rtbook.bestpractical.com



 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com

RT Training in Washington DC, USA on Oct 25  26 2010
Last one this year -- Learn how to get the most out of RT!

Re: [rt-users] Unable to delete or modify dashboards as any user including superuser

2010-08-12 Thread john habermann
I have done some more investigating comparing what I see in the 3.8.2
version to the 3.8.8 version and I find that it seems the problem is that
the actions are not changing when you select a dashboard from the list of
dashboards. In the 3.8.8 version when I view the list of Dashboards
rt/Dashboards/index.html the actions are:

Select New

In the 3.8.2 version they are:

Select Dashboard New Dashboard

In the 3.8.8 version when I click on a Dashboard the actions menu lists the
names of the Dashboards:

Home | Tags and Searches | Get Things Done

While in the 3.8.2 version when I select a Dashboard I see:

Basics Queries Subscriptions Show

The urls for when I click on the Dashboard is the same
http://servername//rt/Dashboards/49/Tags%20and%20Searches

I see that the rt3/share/html/Dashboards/index.html file has changed from
3.8.2. to 3.8.8 and I tried just using the 3.8.2 index.html version in 3.8.8
but nothing changed. I found that I can edit and delete Dashboards in the
3.8.8 version by manually entering the urls that I can see from the actions
navigation bar in the 3.8.2 version. So if I go
to rt/Dashboards/Modify.html?id=49 I am able to delete a Dashboard from the
3.8.8 version.

Does anyone have any thoughts as to whether this indicates a problem with my
database or something in the html template files?

Thank you

On Tue, Aug 10, 2010 at 1:29 AM, Kevin Falcone falc...@bestpractical.comwrote:

 On Mon, Aug 09, 2010 at 12:00:10PM +1000, john habermann wrote:
 Hi
 I have just noticed I have a problem with editing Dashboards in my RT
 instance namely I can't
 do anything with them apart from create them. Once I create them if I
 click on them I see a
 page as shown in the attached images, there are simply no options to
 do anything. I have tried
 giving the user every dashboard permission available and have even
 made them Superuser but it
 makes no difference.
 The problem appears to have occured when I upgraded from rt 3.8.2 to
 3.8.8 as in the older
 version I see Basics * Queries * Subscription * Show link but that
 has disappeared with the
 update to 3.8.8. I did install the Timeline module after I upgraded to
 3.8.8 so I thought that

 When you upgraded, did you run rt-setup-database --action upgrade to
 apply the database changes described in UPGRADING?
 The internal format of Dashboards changed, and it sounds like you
 missed a step.

 -kevin

 might be the problem as the bug at [1]
 https://rt.cpan.org/Public/Bug/Display.html?id=39729
 indicates that it breaks the bulk update but applying that fix does
 not help the dashboard
 problem. I tried disabling that module but the problem still persists.
 Does anyone have any thoughts as to what might be causing this
 problem?
 Thank you
 
  References
 
 Visible links
 1. https://rt.cpan.org/Public/Bug/Display.html?id=39729



 
  Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
  Buy a copy at http://rtbook.bestpractical.com



 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com

RT Training in Washington DC, USA on Oct 25  26 2010
Last one this year -- Learn how to get the most out of RT!

Re: [rt-users] RTx:Tags - can you have queue specific tagclouds

2010-08-08 Thread john habermann
Hi Jerrad

The problem I have is that I users of the different queues are very
different, for example I have an IT specific queue and then I have a queue
for people working on things like event organisation and grant funding
proposals so the tags that I have in use for the IT queue are not relevant
in any way to the users of the Community queue so the tagcloud would quickly
become cluttered with irrelevant terms.
I might just look at removing it from simple search and just having it as an
option to be added to a dashboard so users in the IT queue can just add a
tagcloud to their dashboard but it won't be cluttering up the simple search
for the other users. Is that something that should be easy to do?

Thank you

On Fri, Aug 6, 2010 at 2:21 AM, Jerrad Pierce 
jpie...@cambridgeenergyalliance.org wrote:

  Does anyone know how you might go about having tagclouds that are
 specific
  to a queue?
 I never had the need. It's not impossible, but would take considerable
 work.

 Part of the problem is that for expediency the extension does its work
 with raw SQL,
 rather than the RT API. Therefore, it is not aware of users' CF ACLs.
 Although hacking
 in that bit wouldn't be too hard. Feel free to submit a bug report at
 rt.cpan.org, but
 I can't make any guarantees when I might be able to do so.

 However, I would make the case that while there may be some information
 leakage
 through seeing tags on tickets one cannot access, access to a full
 list of tags in
 current use helps standardize tag names and reduce proliferation. Not
 getting results
 when clicking on tags ranks as a minor annoyance on par with search result
 count
 not matching the number of returned results :-P


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

[rt-users] RTx:Tags - can you have queue specific tagclouds

2010-08-01 Thread john habermann
Hi

I have been using RTx:Tags and am finding it quite useful but I have been
trying to figure out how I can have different the terms in the tagcloud that
is shown be dependent on the queue that the person has permission to view.
At the moment I have the tags custom field assigned to a single queue
General but a user that does not have access to that queue sees the
tagcloud in the simple search. They don't see any tickets under the tags but
I was wondering if they should be seeing the tagcloud at all?
I have tried creating another customfield tags and assigning this to the
other queue in an effort to give them their own custom tagcloud but that has
not worked. For all users outside of those with permission for the General
queue the tagcloud if full of terms that have no relevance to them.
Does anyone know how you might go about having tagclouds that are specific
to a queue?

Thank you

John

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

[rt-users] how to stop search displaying tickets the user doesn't have permission to see in the results

2009-05-12 Thread john habermann
Hi

I am having a problem where the unowned search is not restricting its
results to only tickets that are in queues the user has the see ticket
permission for. This is causing the unowned ticket list to not display any
tickets in the rt at a glance page if another queue has 10 more recent
unowned tickets in it. It affects any search in rt for example If you search
for something in the quick search you get it saying that 5 tickets matched
the search but only displaying 1 ticket in the list because 4 of the tickets
would be in queues for which the user has no permission to see tickets.

I have gone through global permissions and queue permissions trying to
figure out how I can control this behaviour but not have not been
successful. The 'see queue' and 'show tickets' permission are only set on a
per queue basis to the group that is working on that queue. I think I must
have broken something though in setting up my permissions as I don't
remember this being the initial behaviour of the unowned tickets search.

Thanks for any help.

-- 
John Habermann
Internet Programmer, System Administrator
The Wilderness Society Inc
http://www.wilderness.org.au
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] how to stop search displaying tickets the user doesn't have permission to see in the results

2009-05-12 Thread john habermann
Thanks for your reply Bill

I think I hadn't noticed this feature before because I only had a couple
of people using it but had just added a new user who forwarded a large
number of emails to her queue in rt so that when I next looked at my default
RT page my unowned tickets had disappeared. I did find this thread though
http://www.gossamer-threads.com/lists/rt/users/80043?search_string=unownedsearch;#80043
which seemed to indicate that people shouldn't see tickets in
their unowned list if those tickets where in queues they didn't have
permission to see. Other emails seemed to indicate that if you only had the
'Show Ticket' and 'See Queue' permission set on a per queue basis then you
should just be seeing unowned tickets from your queues. I wonder if this is
something new in rt 3.8?

On Wed, May 13, 2009 at 10:18 AM, William Graboyes 
william.grabo...@theportalgrp.com wrote:

 Howdy John,

 From my understanding this is a feature of RT,  There isn't much one can
 do about it, the settings aren't granular enough to cover what a single user
 has the right to see, high up on my wish list is something along the lines
 of what you are looking for, I would love to be able to limit users to
 viewing only tickets in a certian queue, or even better as we run an open
 system here, the ability to say this user can only view his tickets. But
 dreams are dreams, and when you are like me, and I am not a perl coding
 maven, there isn't much you can do about it.

 Bill Graboyes



 On Tue, May 12, 2009 at 5:05 PM, john habermann 
 john.haberm...@wilderness.org.au wrote:

 Hi

 I am having a problem where the unowned search is not restricting its
 results to only tickets that are in queues the user has the see ticket
 permission for. This is causing the unowned ticket list to not display any
 tickets in the rt at a glance page if another queue has 10 more recent
 unowned tickets in it. It affects any search in rt for example If you search
 for something in the quick search you get it saying that 5 tickets matched
 the search but only displaying 1 ticket in the list because 4 of the tickets
 would be in queues for which the user has no permission to see tickets.

 I have gone through global permissions and queue permissions trying to
 figure out how I can control this behaviour but not have not been
 successful. The 'see queue' and 'show tickets' permission are only set on a
 per queue basis to the group that is working on that queue. I think I must
 have broken something though in setting up my permissions as I don't
 remember this being the initial behaviour of the unowned tickets search.

 Thanks for any help.

 --
 John Habermann
 Internet Programmer, System Administrator
 The Wilderness Society Inc
 http://www.wilderness.org.au

 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

 Community help: http://wiki.bestpractical.com
 Commercial support: sa...@bestpractical.com


 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com





-- 
John Habermann
Internet Programmer, System Administrator
The Wilderness Society Inc
http://www.wilderness.org.au
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] how to stop search displaying tickets the user doesn't have permission to see in the results

2009-05-12 Thread john habermann
I have just found what appears to be a solution for this problem enabling
the UseSQLForACLChecks in your RT_SiteConfig.pm . Once I enabled this the
unowned search now displays only tickets that the user has permission to see
and any searches you run in simple search will return a result that matches
tickets that you have permission to see. The option does warn about possible
performance issues so will see whether I notice any impact on the system. I
am using rt 3.8.2 and mysql 5.0.

cheers
John

On Wed, May 13, 2009 at 10:18 AM, William Graboyes 
william.grabo...@theportalgrp.com wrote:

 Howdy John,

 From my understanding this is a feature of RT,  There isn't much one can
 do about it, the settings aren't granular enough to cover what a single user
 has the right to see, high up on my wish list is something along the lines
 of what you are looking for, I would love to be able to limit users to
 viewing only tickets in a certian queue, or even better as we run an open
 system here, the ability to say this user can only view his tickets. But
 dreams are dreams, and when you are like me, and I am not a perl coding
 maven, there isn't much you can do about it.

 Bill Graboyes



 On Tue, May 12, 2009 at 5:05 PM, john habermann 
 john.haberm...@wilderness.org.au wrote:

 Hi

 I am having a problem where the unowned search is not restricting its
 results to only tickets that are in queues the user has the see ticket
 permission for. This is causing the unowned ticket list to not display any
 tickets in the rt at a glance page if another queue has 10 more recent
 unowned tickets in it. It affects any search in rt for example If you search
 for something in the quick search you get it saying that 5 tickets matched
 the search but only displaying 1 ticket in the list because 4 of the tickets
 would be in queues for which the user has no permission to see tickets.

 I have gone through global permissions and queue permissions trying to
 figure out how I can control this behaviour but not have not been
 successful. The 'see queue' and 'show tickets' permission are only set on a
 per queue basis to the group that is working on that queue. I think I must
 have broken something though in setting up my permissions as I don't
 remember this being the initial behaviour of the unowned tickets search.

 Thanks for any help.

 --
 John Habermann
 Internet Programmer, System Administrator
 The Wilderness Society Inc
 http://www.wilderness.org.au

 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

 Community help: http://wiki.bestpractical.com
 Commercial support: sa...@bestpractical.com


 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com





-- 
John Habermann
Internet Programmer, System Administrator
The Wilderness Society Inc
http://www.wilderness.org.au
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] zimbra and rt

2006-10-03 Thread john habermann

On 10/4/06, Chaim Rieger [EMAIL PROTECTED] wrote:

are there any users here using or looking into zimbra


We have been looking at it as one of the main options improving our
mail system to get better collaboration features. It looks pretty
impressive, I have signed up for a webinar they are putting on
tomorrow and downloaded the 4.0 version yesterday so I can get a bit
more of an idea of what they have to offer.



i wrote a few connectors and am thinking of writing one for the two, if
there is a need.


I haven't given any thought to how it works with RT but would cetainly
be interested in seeing what is possible.

cheers
John



___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com




--
John Habermann
Internet Programmer, System Administrator
The Wilderness Society Inc
http://www.wilderness.org.au
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] how to use RT effectively

2006-09-26 Thread john habermann

Hi Bijayant

On 9/26/06, bijayant kumar [EMAIL PROTECTED] wrote:

Hi,
  I have successfully installed RT-3.6.1. Now, my question is, is there
any administrator and user guide on RT? If yes, than please provide me or
give me the links. Thanks in advance.


The best thing user and administrator guide I can think of is the RT
Essentials book which you can see linked to off the
bestpractical.com/rt website. It is also available through Oreilly's
online library safari and provides lots of information of how you can
use rt and how things work. There is also wiki.bestpractical.com which
has lots of useful information and ideas on how people use rt.

cheers
John



Bijayant Kumar

 Send instant messages to your online friends http://uk.messenger.yahoo.com
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com





--
John Habermann
Internet Programmer, System Administrator
The Wilderness Society Inc
http://www.wilderness.org.au
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] updating screenshots on bestpractical.com

2006-09-26 Thread john habermann

Hi

I was just looking at the screen shots on the Best Practical website
and noticed that they where from the 3.0.5pre2 version of RT. Would be
great if they could be updated to the latest version.

cheers
John

--
John Habermann
Internet Programmer, System Administrator
The Wilderness Society Inc
http://www.wilderness.org.au
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Calling method Headers in Custom Condition

2006-04-27 Thread john habermann
Hi

I have a queue called database which had been setup to recieve emails
from a form. I had set up a simple approval process by following the
wiki so I created an approv-database queue and then have a template in
the database queue that creates a Ticket in the approv-database queue
when a ticket is created in the database queue.

The usage of the database queue has expanded beyond just accepting
emails from the form and other tickets that are created in it don't
need to be approved so I have been trying to change the database queue
so that only tickets created by the form emails will trigger an
approval.

To do this I have the form inserting a header RT-Formname and I then
changed the Request Approval scip in the database queue so it used a
custom condition rather than the default On create condition. This
is what I have in my Custom Condition:

my $header = $self-TransactionObj-Attachments-First-Headers();
$header =~ s/\n\s+/ /g;
my $formname = '';
if ($header =~ /^Formname: (.*?)$/m) {
$formname = $1;
$RT::Logger-debug(the headers are $formname);
}
else {
$RT::Logger-debug(didn't match);
}
$RT::Logger-debug(the formname is $formname);
return undef unless ($formname eq Database);
return 1;
---

This appears to work fine as if I create a ticket through the web
interface in RT then the Request Approval scrip is not called and a
ticket is created that doesn't trigger the approval process. When I
send in a email from the form the approval process is triggered as
before so a ticket is created that is pending approval but even though
it appears to work fine and the tickets are created I am getting this
in the rt.log file:

--
[Thu Apr 27 06:24:25 2006] [error]: Scrip 16 IsApplicable failed:
Can't call method Headers on an undefined value at (eval 602) line
1.

Stack:
  [(eval 602):1]
  [/usr/share/request-tracker3.4/lib/RT/ScripCondition_Overlay.pm:219]
  [/usr/share/request-tracker3.4/lib/RT/Scrip_Overlay.pm:438]
  [/usr/share/request-tracker3.4/lib/RT/Scrips_Overlay.pm:228]
  [/usr/share/request-tracker3.4/lib/RT/Transaction_Overlay.pm:160]
  [/usr/share/request-tracker3.4/lib/RT/Record.pm:1373]
  [/usr/share/request-tracker3.4/lib/RT/Ticket_Overlay.pm:3439]
  [/usr/share/request-tracker3.4/lib/RT/Ticket_Overlay.pm:3176]
  [(eval 579):14]
  [/usr/share/request-tracker3.4/lib/RT/ScripAction_Overlay.pm:220]
  [/usr/share/request-tracker3.4/lib/RT/Scrip_Overlay.pm:477]
  [/usr/share/request-tracker3.4/lib/RT/Scrips_Overlay.pm:235]
  [/usr/share/request-tracker3.4/lib/RT/Transaction_Overlay.pm:160]
  [/usr/share/request-tracker3.4/lib/RT/Record.pm:1373]
  [/usr/share/request-tracker3.4/lib/RT/Ticket_Overlay.pm:3439]
  [/usr/share/request-tracker3.4/lib/RT/Ticket_Overlay.pm:3176]
  [/usr/share/request-tracker3.4/html/Approvals/index.html:80]
  [/usr/share/request-tracker3.4/html/autohandler:215]
 (/usr/share/request-tracker3.4/lib/RT/Condition/UserDefined.pm:67)
[Thu Apr 27 06:24:25 2006] [debug]: About to commit scrips for
transaction #7809
(/usr/share/request-tracker3.4/lib/RT/Transaction_Overlay.pm:167)
---
I also appear to be getting this notice when other tickets are being
created in other queues as I just noticed that it appeared in the log
when some created a ticket in the support queue.

I am thinking that it is something to do with IsApplicable but not
quite sure that is supposed to apply given that the code is being
executed through the Userdefinied.pm condition. If anyone can shed any
 light or point me to some more info on this subject I would
appreciate it, have looked on the Wiki and also in the RT Essentials
book but couldn't find much that helped me figure out why this error
was happening although it helped me figure out how to to get this far.

cheers
John
--
John Habermann
The Wilderness Society
www.wilderness.org.au
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


We're hiring! Come hack Perl for Best Practical: 
http://bestpractical.com/about/jobs.html