Re: [rt-users] Custom condition for script

2013-04-23 Thread Miles Scruggs
Thanks Jim,

I think that has got me off and running now.  About order of execution, from 
what I read it is alphabetical, does that group queue specific scripts in with 
the globals and then order them?

Cheers

Miles Scruggs
mi...@digitalphotobox.net



On Apr 23, 2013, at 10:01 AM, Jim Berry jim.h.be...@frb.gov wrote:

 This should do what you want .   It could be generalized to use groups or 
 AdminCc.   Create a scrip with
  
 Condition = On Create
 Action = User Defined
 Template = Blank
 Stage = TransactionCreate
  
 In the Custom action preparation code box, insert:
  
 ## Add other user as a Cc if ticket is created by either in the users list
  
 my @users = ('us...@mydomain.com', 'us...@mydomain.com');
 my $creator = $self-TransactionObj-CreatorObj-EmailAddress;
 my $Ticket  = $self-TicketObj;
  
 if ($creator eq $users[0]) {
 $Ticket-AddWatcher(Type  = 'Cc',  Email = $users[1]);
 }
 elsif ($creator eq $users[1]) {
  $Ticket-AddWatcher(Type  = 'Cc',  Email = $users[0]);
 }
  
 In the Custom action cleanup code box, insert:
  1;
  
  
 -- Jim
  
  
 From: rt-users-boun...@lists.bestpractical.com 
 [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Miles Scruggs
 Sent: Monday, April 22, 2013 3:52 PM
 To: RT users
 Subject: Re: [rt-users] Custom condition for script
  
 anyone able to help on this one?
  
 
 On Tue, Apr 16, 2013 at 10:46 AM, Miles Scruggs mi...@digitalphotobox.net 
 wrote:
 I have a couple users that can't be trained to CC each other, and they need 
 to be CC'd on everything they create, but they also aren't the only ones 
 creating to the queue so I can't just set them as a watcher for the queue.
 
 Basically I would like to check on create to see if they are one or the other 
 user, and if they are then I would like to add their counterpart as a CC to 
 the ticket. Basically some code that looks like this:
 
 if(user=bob | bill) {
 AddUserAsCCToTicket(bobbill)
 }
 
 The bad news here is that I'm incredibly dumb when it comes to perl, and have 
 no grasp at all of the syntax much less the methods to use.
 
 I'm guessing I put stuff like this in scrips, but I'm not 100% and I'm not 
 sure if that can be put entirely in the condition or if I need to put it in 
 both the condition and the action...
 
 Cheers
 
 Miles Scruggs
 mi...@digitalphotobox.net
 
 
 
 
  
 -- 
 Cheers,
 
 Miles



smime.p7s
Description: S/MIME cryptographic signature


Re: [rt-users] dashboard adding links to dashboard items

2013-04-17 Thread Miles Scruggs
Does anyone have any idea how to do this?


On Mon, Apr 15, 2013 at 3:00 PM, Miles Scruggs mi...@digitalphotobox.netwrote:

 I would like to add a column of links.  For instance the 10 highest
 priority tickets I own section I would like to add a Resolve link that
 will resolve the ticket.  Just like the Take link takes the ticket from
 the 10 newest unowned tickets.

 Ideally I would like to make one column with a couple links separated by a
 /   For instance two links tightly packed like:  Respond / Resolve  Any
 help accomplishing either of these would be awesome.

 Cheers

 Miles Scruggs
 mi...@digitalphotobox.net






-- 
Cheers,

Miles


[rt-users] Custom condition for script

2013-04-16 Thread Miles Scruggs
I have a couple users that can't be trained to CC each other, and they need to 
be CC'd on everything they create, but they also aren't the only ones creating 
to the queue so I can't just set them as a watcher for the queue.

Basically I would like to check on create to see if they are one or the other 
user, and if they are then I would like to add their counterpart as a CC to the 
ticket. Basically some code that looks like this:

if(user=bob | bill) {
AddUserAsCCToTicket(bobbill)
}

The bad news here is that I'm incredibly dumb when it comes to perl, and have 
no grasp at all of the syntax much less the methods to use.

I'm guessing I put stuff like this in scrips, but I'm not 100% and I'm not sure 
if that can be put entirely in the condition or if I need to put it in both the 
condition and the action...

Cheers

Miles Scruggs
mi...@digitalphotobox.net





smime.p7s
Description: S/MIME cryptographic signature


Re: [rt-users] CommandByMail is not working

2013-04-16 Thread Miles Scruggs
Hi Asif,

Can you test basic functionality.  Like change the status with:

Status: resolved

at the top of your reply email.  I'm just wondering if CommandByMail isn't 
working or you are just having issues with the interaction with Custom Fields.

I just installed CommandByMail, but it was on version 4 not three.  It is 
working great.

Cheers

Miles Scruggs



On Apr 16, 2013, at 12:32 PM, Asif Iqbal vad...@gmail.com wrote:

 On Sun, Apr 14, 2013 at 2:55 PM, Asif Iqbal vad...@gmail.com wrote:
 I installed RT-Extension-CommandByMail-0.10 on my RT 3.8.2 and setup the 
 config like below.
 
 Set( @Plugins, qw( RT::Authen::ExternalAuth RT::Extension::CommandByMail ) );
 Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction));
 
 Setup a custom field TAG of type 'Enter one value' for the help queue then
 send an email to the comment address of a ticket I own, as me, of the 
 following
 
 This is a comment
 
  CF.{TAG}: comment1
  
 I do not see any value showing for the custom field TAG on the ticket.
 I do not see any log in debug about the custom field either.
 
 I did restart apache after making change to the config.
 
 What gives?
 
 
 
 Could not find anything in the mailing list that has exact same issue. What 
 am I doing wrong?
 



smime.p7s
Description: S/MIME cryptographic signature


Re: [rt-users] Subjects in emails originating from RT

2013-04-15 Thread Miles Scruggs
Ok just for anyone else looking for this.  Here is what got what I wanted:

Subject: Re: {$Ticket-SubjectTag} {$Ticket-Subject}

stick that at the top of your template and it will add the Re: to your 
subject as well keep everything as standard.

Cheers

Miles Scruggs
mi...@digitalphotobox.net



On Apr 14, 2013, at 11:37 AM, Ruslan Zakirov r...@bestpractical.com wrote:

 Subject: ... { $Ticket-SubjectTag } ...
 
 
 On Sat, Apr 13, 2013 at 8:30 PM, Miles Scruggs mi...@digitalphotobox.net 
 wrote:
 Just hypothetically say everyone isn't a competent programmer. Imagine with 
 me, if you will. 
 
 How would a person with that handicap go about using the subject tag method 
 to put a Re: out in front of the subject. 
 
 Sent from my iPhone
 
 On Apr 13, 2013, at 3:12 AM, Ruslan Zakirov ruslan.zaki...@gmail.com wrote:
 
 If you place tag yourself then rt wouldnt relocate it. In newer versions 
 ticket object has SubjectTag method. If your version is old then you can 
 grab code from repository - very simple code.
 Ruslan from phone.
 
 13.04.2013 3:13 пользователь Miles Scruggs mi...@digitalphotobox.net 
 написал:
 Anyone have any idea how this can be resolved?  
 
 
 On Thu, Apr 11, 2013 at 5:44 AM, Miles Scruggs mi...@digitalphotobox.net 
 wrote:
 Yes but what exactly do you change to get out front of the ticket number?
 
 Sent from my iPhone
 
 On Apr 11, 2013, at 2:06 AM, Ruslan Zakirov r...@bestpractical.com wrote:
 
 Just change AutoReply and Resolved template.
 
 
 On Thu, Apr 11, 2013 at 7:11 AM, Miles Scruggs mi...@digitalphotobox.net 
 wrote:
 Right now I'm trying to tweak out one last thing in RT.  Basically every 
 email client/host has various parameters for determining if/how to thread 
 emails, so I'm fighting a spread out battle.  What I'm up against now is 
 ensuring a Re: is put on the ***front of every subject sent out of RT 
 unless it is an original email to that contact.  The two key places this 
 seems to be currently missing is the Auto Replies and resolving tickets.
 
 Any idea how I can get that little element cleaned up.
 
 Cheers
 
 Miles Scruggs
 mi...@digitalphotobox.net
 
 
 
 
 
 
 -- 
 Best regards, Ruslan.
 
 
 
 -- 
 Cheers,
 
 Miles
 
 
 
 -- 
 Best regards, Ruslan.



smime.p7s
Description: S/MIME cryptographic signature


[rt-users] dashboard adding links to dashboard items

2013-04-15 Thread Miles Scruggs
I would like to add a column of links.  For instance the 10 highest priority 
tickets I own section I would like to add a Resolve link that will resolve 
the ticket.  Just like the Take link takes the ticket from the 10 newest 
unowned tickets.

Ideally I would like to make one column with a couple links separated by a /   
For instance two links tightly packed like:  Respond / Resolve  Any help 
accomplishing either of these would be awesome.

Cheers

Miles Scruggs
mi...@digitalphotobox.net





smime.p7s
Description: S/MIME cryptographic signature


Re: [rt-users] Mobile Interface modification

2013-04-15 Thread Miles Scruggs
Well it isn't 'all deleted tickets' but it is all tickets.  I wanted 'all
open tickets', which seems like would be much more popular than all
tickets.  Thanks for the heads up I have made the changes I needed, and now
I'm all rolling.


On Thu, Apr 11, 2013 at 7:47 AM, Kevin Falcone falc...@bestpractical.comwrote:

 On Wed, Apr 10, 2013 at 09:33:51PM -0700, Miles Scruggs wrote:
  I really like the mobile interface. I would just like to change one
  thing though, and I'm not sure where to do it. I would like to have a
  link to see all open tickets. I don't have much use for all tickets,
  and would just like to modify the search behavior of that link.

 I wonder if All Tickets meant to be literally 'all deleted tickets' or
 if that's a bug.

 Regardless, you can use the MassageMenus callback in
 share/html/m/_elements/menu to remove All Tickets and replace it with
 your own link.

 That's the cleanest and most upgrade-proof solution.

 -kevin




-- 
Cheers,

Miles


Re: [rt-users] Subjects in emails originating from RT

2013-04-13 Thread Miles Scruggs
Just hypothetically say everyone isn't a competent programmer. Imagine with me, 
if you will. 

How would a person with that handicap go about using the subject tag method to 
put a Re: out in front of the subject. 

Sent from my iPhone

On Apr 13, 2013, at 3:12 AM, Ruslan Zakirov ruslan.zaki...@gmail.com wrote:

 If you place tag yourself then rt wouldnt relocate it. In newer versions 
 ticket object has SubjectTag method. If your version is old then you can grab 
 code from repository - very simple code.
 
 Ruslan from phone.
 
 13.04.2013 3:13 пользователь Miles Scruggs mi...@digitalphotobox.net 
 написал:
 Anyone have any idea how this can be resolved?  
 
 
 On Thu, Apr 11, 2013 at 5:44 AM, Miles Scruggs mi...@digitalphotobox.net 
 wrote:
 Yes but what exactly do you change to get out front of the ticket number?
 
 Sent from my iPhone
 
 On Apr 11, 2013, at 2:06 AM, Ruslan Zakirov r...@bestpractical.com wrote:
 
 Just change AutoReply and Resolved template.
 
 
 On Thu, Apr 11, 2013 at 7:11 AM, Miles Scruggs mi...@digitalphotobox.net 
 wrote:
 Right now I'm trying to tweak out one last thing in RT.  Basically every 
 email client/host has various parameters for determining if/how to thread 
 emails, so I'm fighting a spread out battle.  What I'm up against now is 
 ensuring a Re: is put on the ***front of every subject sent out of 
 RT unless it is an original email to that contact.  The two key places 
 this seems to be currently missing is the Auto Replies and resolving 
 tickets.
 
 Any idea how I can get that little element cleaned up.
 
 Cheers
 
 Miles Scruggs
 mi...@digitalphotobox.net
 
 
 
 -- 
 Best regards, Ruslan.
 
 
 
 -- 
 Cheers,
 
 Miles


Re: [rt-users] Subjects in emails originating from RT

2013-04-12 Thread Miles Scruggs
Anyone have any idea how this can be resolved?


On Thu, Apr 11, 2013 at 5:44 AM, Miles Scruggs mi...@digitalphotobox.netwrote:

 Yes but what exactly do you change to get out front of the ticket number?

 Sent from my iPhone

 On Apr 11, 2013, at 2:06 AM, Ruslan Zakirov r...@bestpractical.com wrote:

 Just change AutoReply and Resolved template.


 On Thu, Apr 11, 2013 at 7:11 AM, Miles Scruggs 
 mi...@digitalphotobox.netwrote:

 Right now I'm trying to tweak out one last thing in RT.  Basically every
 email client/host has various parameters for determining if/how to thread
 emails, so I'm fighting a spread out battle.  What I'm up against now is
 ensuring a Re: is put on the ***front of every subject sent out of RT
 unless it is an original email to that contact.  The two key places this
 seems to be currently missing is the Auto Replies and resolving tickets.

 Any idea how I can get that little element cleaned up.

 Cheers

 Miles Scruggs
 mi...@digitalphotobox.net






 --
 Best regards, Ruslan.




-- 
Cheers,

Miles


Re: [rt-users] Subjects in emails originating from RT

2013-04-12 Thread Miles Scruggs
Well that is almost accurate. The code does not always add it to the front.
 If you reply to a ticket using the web UI (RT is still originating the
message, but on behalf of the user) it will put a Re: on the front of the
subject.  I just don't understand the logic behind not putting it on
all correspondence since logically everything sent out about the ticket
should be prefixed with the Re:.  The only exception would be the original
ticket when it was created either by the system automatically or by a user.

I really don't want the tag at the end of the subject as it is great
exactly where they put it. I'm guessing there is a just a goofed up flag in
the system which makes it assume those specific scrips are suppose to
originate emails instead of replying to the existing.  In some ways it does
make sense because they do change the subject by inserting Auto Reply or
Resolved etc.  For me I see no reason to fork the original thread with
two separate emails. I've already removed those extra tags, which while
they are nice, I don't believe they are worth the cost of forking the
thread.


On Fri, Apr 12, 2013 at 4:52 PM, Thomas Sibley t...@bestpractical.comwrote:

 On 04/12/2013 04:13 PM, Miles Scruggs wrote:
  Anyone have any idea how this can be resolved?

 There's no option to move the tag and the code always adds it to the front.

 I extracted an extension from customer work which moves the subject tag
 all the way to the end.  Try it out once it shows up at
 https://metacpan.org/module/RT::Extension::TrailingSubjectTag (should be
 within the hour).

 It's not quite what you want, necessarily, since it may obscure the
 ticket ID in long subjects, but it'll make your Re: first.

 Thomas




-- 
Cheers,

Miles


Re: [rt-users] Mobile Interface modification

2013-04-11 Thread Miles Scruggs
In my case I want to change the filter on that list. I know that isn't a CSS 
change. I just need to know if that is in the HTML in that path or DB or other 
location?

Sent from my iPhone

On Apr 11, 2013, at 1:28 AM, Bart b...@pleh.info wrote:

 Hi,
 
 The mobile style is located in this location:
 
 /opt/rt4/share/html/m
 
 You can basically copy that directory, or just the files that you want to 
 change to this location:
 
 /opt/rt4/local/html/m
 
 For example, if you only copy the css file to the local location, then you'll 
 only replace that part of the mobile interface. The same will count for the 
 other parts of this page.
 
 Hope this helps a little. (you can view the changes in your normal browser by 
 going to https://your RT URL/m/.)
 
 
 
 
 2013/4/11 Miles Scruggs mi...@digitalphotobox.net
 Hi,
 
 I really like the mobile interface.  I would just like to change one thing 
 though, and I'm not sure where to do it.  I would like to have a link to see 
 all open tickets.  I don't have much use for all tickets, and would just 
 like to modify the search behavior of that link.
 
 Cheers
 
 Miles Scruggs
 mi...@digitalphotobox.net
 
 
 
 -- 
 Bart G.


[rt-users] upgrade from 3.6.6 pgsql to 3.8.1rc5

2008-08-15 Thread Miles Scruggs
',  
'minutes', 'RefersTo-new', '', 'Owner', 10, 'DependsOn-new', '', 'new- 
MemberOf', '', 'MemberOf-new', '', 'Content', 'another test ticket on  
newly upgraded system.', 'TimeWorked-TimeUnits', 'minutes', 'Due', '')  
called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line  
121
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm  
line 121
HTML 
::Mason 
::CGIHandler::_handler('HTML::Mason::CGIHandler=HASH(0x9ebef38)',  
'HASH(0xa9005e8)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ 
CGIHandler.pm line 73
HTML 
::Mason 
::CGIHandler 
::handle_cgi_object('HTML::Mason::CGIHandler=HASH(0x9ebef38)',  
'CGI::Fast=HASH(0xa90b1ac)') called at /opt/6sq-rt/bin/ 
mason_lighttpd_handler.fcgi line 88

eval {...} at /opt/6sq-rt/bin/mason_lighttpd_handler.fcgi line 88

Cheers

Miles Scruggs
Wide Ideas | Operations | [EMAIL PROTECTED] | 509.525.6522  
ext 4880







smime.p7s
Description: S/MIME cryptographic signature
___
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