Re: [rt-users] Action mene history blank

2017-02-25 Thread Chris Willard
Hello Matt,

Friday, February 24, 2017, 11:53:22 PM, you wrote:

> To answer your question: Nope. Not a bug. A "reply" (from the Actions
> menu) is a new message for the ticket history. You can reply to any
> transaction (correspondence or comment) in the ticket display and get
> that txn's contents quoted in your reply - so it looks like a reply to
> an email. If you only ever reply via the ticket history of txns, then
> your replies will always have the history quoted in the contents.

Thanks for this.

-- 
Best regards,
 Chrismailto:ch...@thewillards.co.uk



[rt-users] Action mene history blank

2017-02-24 Thread Chris Willard
Hello Rt-users,

When I reply using the action menu the history is empty! Is this a bug
and is there a fix?

-- 
Best regards,
Chris



[rt-users] The default queue via RT

2017-02-19 Thread Chris Willard
Hello All,

Is  it  possible  to  change  the email from address (e.g. The default
queue via RT)?

I found how to change the email text (templates) but not the sender!

-- 
Best regards,
Chris



[rt-users] Assets Advanced Search

2017-02-12 Thread Chris McClement
Is there a way of "advanced searching" assets? For example, I'd like to
search for all assets where status != "EOL" etc. When searching tickets
there's always an advanced tab where I can manually edit the search string
but I'm unable to find this with assets.


[rt-users] Unable to bulk update Assets

2017-02-08 Thread Chris McClement
I'm unable to apply any bulk updates to custom fields in my Asset database.
For example, I have a Custom Field called "Asset Category". I have
configured the CF to be filled from a dropdown list ("Select one value")
and defined a range of categories to select from. Applying a bulk update to
assets where I've selected, for example, setting the CF to "PC" (or any of
the other options I've defined) fails with the following message displayed
in the web browser:

An internal RT error has occurred. Your administrator can find more details
in RT's log files.

I've had a look in my syslog, and every time I attempt this bulk update,
the following two entries appear:

Feb  9 09:17:06 rt RT: [11319] Use of uninitialized value $1 in hash
element at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 3164.
Feb  9 09:17:06 rt RT: [11319] Can't call method "new" without a package or
object reference at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
3099.#012#012Stack:#012
 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:3099]#012
 [/opt/rt4/share/html/Asset/Search/Bulk.html:183]#012
 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:696]#012
 [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:375]#012
 [/opt/rt4/share/html/autohandler:53]

Does anyone have an ideas what might be causing this?

For completeness, applying a bulk update to one of the core fields (e.g.
"Owner") works fine.


Re: [rt-users] SLA Extension - searching for tickets with SLA not set

2017-02-01 Thread Chris McClement
Thanks!

SLA IS NULL  <- that worked.

Following from this: I want to do a bulk update to set an SLA for these
calls. However the bulk update page doesn't include any SLA fields. Any
ideas how I would go about setting the SLA on these calls (other than
manual, I have about 150 tickets that need this changed)?

On Thu, 2 Feb 2017 at 06:28 Jeffrey Pilant <jeffrey.pilant@bayer.com>
wrote:

> Chris McClement writes:
> >I can't figure out how to search for a field (specifically, "SLA") that is
> >unset:
> >
> >Tickets that are emailed to our helpdesk are inserted into a "Helpdesk"
> >queue and from there an operator reviews the content and then assigns the
> >ticket to the relevant queue.
> >
> >The "Helpdesk" queue does not have an SLA assigned to it, but the
> >downstream queues do.  What's been happening, though, is that tickets
> >transferred from "Helpdesk" to "Queue1" (not it's real name) aren't
> picking
> >up the SLA default setting. Instead, the SLA field is unset.
> >
> >If I search for tickets with SLA = 'STANDARD' I get results showing
> tickets
> >that have that SLA value.
> >
> >If I search for tickets with SLA != 'STANDARD' I only get tickets that
> have
> >the SLA field set (URGENT or CRITICAL, for example). But I don't get the
> >hundreds of tickets that don't have the SLA field set at all.
> >
> >Does anyone know the syntax to use to search for a field that is unset?
>
> On 9 Dec 2016, Matt Zagrabelny wrote:
> >... you can search for
> >tickets with empty CF values using the Advanced editing option of a
> >Search:
> >
> >'CF.{bar}' is null
> In reply to a question about searching CF.{bar}
>
> Maybe you can do something similar.
>
> /jeff
>
> 
> The information contained in this e-mail is for the exclusive use of the
> intended recipient(s) and may be confidential, proprietary, and/or
> legally privileged.  Inadvertent disclosure of this message does not
> constitute a waiver of any privilege.  If you receive this message in
> error, please do not directly or indirectly use, print, copy, forward,
> or disclose any part of this message.  Please also delete this e-mail
> and all copies and notify the sender.  Thank you.
> 
>


[rt-users] SLA Extension - searching for tickets with SLA not set

2017-01-31 Thread Chris McClement
I can't figure out how to search for a field (specifically, "SLA") that is
unset:

Tickets that are emailed to our helpdesk are inserted into a "Helpdesk"
queue and from there an operator reviews the content and then assigns the
ticket to the relevant queue.

The "Helpdesk" queue does not have an SLA assigned to it, but the
downstream queues do.  What's been happening, though, is that tickets
transferred from "Helpdesk" to "Queue1" (not it's real name) aren't picking
up the SLA default setting. Instead, the SLA field is unset.

If I search for tickets with SLA = 'STANDARD' I get results showing tickets
that have that SLA value.

If I search for tickets with SLA != 'STANDARD' I only get tickets that have
the SLA field set (URGENT or CRITICAL, for example). But I don't get the
hundreds of tickets that don't have the SLA field set at all.

Does anyone know the syntax to use to search for a field that is unset?


Re: [rt-users] When replying to a new ticket a new ticket get created

2017-01-30 Thread Chris McClement
Hi Martin

I think the problem might be that you are using non-English characters in
the ticket identifier. In New Zealand, Maori words have some special
characters called macrons. They are used with vowels to specify the length
of the vowel sound.

Our service is called "Kotui" but there is meant to be a macron over the
"o" so it is spelled like: Kōtui.

When I first set up our queues, I used the correct, macron-using spelling
in the ticket identifier (e.g. [Kōtui Support ID #12345]), but this results
in all replies generating new tickets instead of being added to existing
tickets. The problem went away when I reverted to using the standard "o"
without a macron.

Regards,
Chris

On Wed, 18 Jan 2017 at 05:25 Martin Petersson <mar...@uanet.se> wrote:

> Well i have looked at the rights. I have created a group called support
> and gave all the necessary access and for the group All in general rights i
> gave them access to everything, comment, register new tickets, create
> tickets and so on.
>
> Really strange, anyone have any more ideas?
>
>
> *Martin Petersson*
> *IT-Konsult*
>
> *+46 (0)522 980 28*, mar...@uanet.se, www.uanet.se
> Gustaf Mattssons Väg 2, 451 50 Uddevalla, Orgnr: 556702-4095
>
> [image: logo-uanet-email.jpg]
> <http://www.uanet.se/>
> <http://www.uanet.se/>
>
> 16 jan. 2017 kl. 16:03 skrev Alex Hall <ah...@autodist.com>:
>
> That looks fine to me, though I'm no expert. I definitely don't see
> anything that would cause email replies to turn into new tickets. My only
> other idea is a rights problem, but I don't know RT well enough to know if
> it's even possible.
>
> My thought is that the users emailing replies don't have permission to
> comment or correspond on the tickets in question, so RT is making new
> tickets instead. But again, I don't know RT enough to say whether it would
> do that or not. It's just a thought. Still, it might be worth checking the
> rights, unless and until someone with more experience can help.
>
> On Mon, Jan 16, 2017 at 9:25 AM, Martin Petersson <mar...@uanet.se> wrote:
>
> Yes here it is:
> I have no files in RT_SiteConfig.d/
>
> #
> # To include a directive here, just copy the equivalent statement
> # from RT_Config.pm and change the value. We've included a single
> # sample value below.
> #
> # If this file includes non-ASCII characters, it must be encoded in
> # UTF-8.
> #
> # This file is actually a perl module, so you can include valid
> # perl code, as well.
> #
> # The converse is also true, if this file isn't valid perl, you're
> # going to run into trouble. To check your SiteConfig file, use
> # this command:
> #
> #   perl -c /path/to/your/etc/RT_SiteConfig.pm
> #
> # You must restart your webserver after making changes to this file.
> #
>
> # You may also split settings into separate files under the
> etc/RT_SiteConfig.d/
> # directory.  All files ending in ".pm" will be parsed, in alphabetical
> order,
> # after this file is loaded.
>
> Set( $rtname, 'uanet.se');
> Set( $Organization, 'uanet.se');
> Set( $Timezone, 'Europe/Stockholm');
> Set( $WebDomain, 'help.uanet.se');
> Set( $WebPort, 443);
> Set( $WebPath, '');
> Set( $DatabasePassword, ’secret');
> Set($CorrespondAddress , ’supp...@uanet.se');
> Set($CommentAddress , 'support-comm...@uanet.se');
> Set(@ReferrerWhitelist, qw(helpdesk.uanet.se:443  helpdesk.uanet.se:80
> <http://helpdesk.uanet.se/>));
> # You must install Plugins on your own, this is only an example
> # of the correct syntax to use when activating them:
> # Plugin( "RT::Authen::ExternalAuth" );
> #Plugin('RT::Extension::SLA');
> #Plugin('RT::Extension::CommandByMail');
> #Set(@MailPlugins, qw(Auth::MailFrom Action::CommandByMail));
> 1;
>
>
> *Martin Petersson*
> *IT-Konsult*
>
> *+46 (0)522 980 28*, mar...@uanet.se, www.uanet.se
> Gustaf Mattssons Väg 2, 451 50 Uddevalla, Orgnr: 556702-4095
>
> 
> <http://www.uanet.se/>
> <http://www.uanet.se/>
>
>
> 16 jan. 2017 kl. 15:19 skrev Alex Hall <ah...@autodist.com>:
>
> Yes, the regexp would be in there if you've modified it. Can you just post
> your entire RT_SiteConfig.pm file (or files if you're using files inside
> RT_SiteConfig.d)? That might be the best way for us to see what you're
> working with.
>
> On Mon, Jan 16, 2017 at 9:14 AM, Martin Petersson <mar...@uanet.se> wrote:
>
> Hello,
>
> Thank you for your answer.
> Should $EmailSubjectTagRegex be in RT_SiteConfig.pm?
>
> I have renamed the RT site, could that cause anything?
>
>
> *Martin Petersson*
> *IT-Konsult*
>
> *+46 (0)522 980 28*, mar...@uanet.se, www.uanet.se
>

Re: [rt-users] Possible to chnage owner WITHOUT updating ticket?

2017-01-30 Thread Chris Manly
Would it work to search/sort on the “last contact” date instead of the “last 
updated” date?

-- 
Christopher Manly
Coordinator, Library Systems
Cornell University Library Information Technologies
c...@cornell.edu
607-255-3344




On 1/30/17, 4:28 AM, "rt-users on behalf of fozzie" 
 
wrote:

Hi all,

I have an unusual situation and looking for the best solution which I hope
you can help with!

Currently, we have 3 support Users managing our RT.  1 of those 3 users will
be deployed to manage the support queue 1 week at a time on a rotation
basis,  so USER A will do week 1, then next week it is USER B and then USER
C the week after that.  The other 2 Users not on RT will be carrying out
other duties so we can only have 1 on at any given time.

At then end of each week, we need to reassign the tickets to the user who
till be taking over RT the following week.  Let's say USER A has finished RT
duty on a Friday evening and is then going to handover his work to USER B. 
Logically, he would just change the owner of all his tickets from USER A to
USER B.

The problem with that is, the "Last Updated" field will change so when USER
B starts on Monday morning, he'll see all his tickets last updated date are
all "3 days ago".

This makes tickets difficult to manage.  We like to know exactly when a
ticket was last replied to, received from or commented on which helps us to
prioritise our workload.  Normally just sorting by 'Last Updated' is handy
so we know which tickets haven't been updated in the longest amount of time.

There are 2 ways I can think of other than the obvious (get more support
staff).

1) Prevent 'Last Updated' field from updating when a ticket has changed
owner.  Is this possible?

2) Leave all open tickets unassigned.  (Would prefer to avoid doing this if
at all possible).


Many thanks in advance, I hope I've explained myself well enough!






--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Possible-to-chnage-owner-WITHOUT-updating-ticket-tp63376.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.




Re: [rt-users] Accessing asset data

2016-12-23 Thread Chris Manly
It would make sense to me to have a queue for meter readings, where each 
reading is a ticket that’s associated with the meter asset.

-- 
Christopher Manly
Coordinator, Library Systems
Cornell University Library Information Technologies
c...@cornell.edu
607-255-3344




On 12/22/16, 6:53 PM, "rt-users on behalf of StreatsAhead" 
 wrote:

Hi all,

I'm trying to make some custom functionality for an asset, I need to
automatically update the value of one custom field of an asset when another
custom field on the same asset is changed. I took a look at using scrips but
couldn't get them to fire when working with assets. I'm now thinking it
might be better to have a ticket workflow instead. The objective is:
We have a bunch of water meters, we need to update the readings in RT every
now and then compile a report at the end of each year.
A few calculations need to be made on the readings and stored against the
asset.
Could someone point me in the right direction for this project?

Thanks!
Matt



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Accessing-asset-data-tp63221.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.




[rt-users] Adding ticket "Description" to the top of the page

2016-12-04 Thread Chris McClement
By default, I sort ticket History so that the newest entry is at the top.
However, I would like to be able to have the original request visible when
I first open a ticket. Does anyone have any suggestions for achieving this?
In other words, the Display tab of a ticket would have a section containing
the first comment/description, but the History section would still be
sorted with newest item at the top of the list.
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - January 9-11 2017

Re: [rt-users] Looking for users of RT 4.4 that use the Asset feature

2016-11-29 Thread Chris Manly
I’ve been starting to work with Assets.  It’s not as rich or fully-baked as the 
ticketing side of things, but it gets the job done for me.  You’ll definitely 
want 4.4.1, because there’s a bug in 4.4.0 where you can’t search for assets 
associated with a person and actually find them.

I’ve done .csv loads of assets.  If you’ve got a custom field that has a unique 
key (like an asset tag #) it works well to avoid creating duplicates.  If you 
lack that… well, let’s just say I had a lot of cleanup to do.

--
Christopher Manly
Coordinator, Library Systems
Cornell University Library Information Technologies
c...@cornell.edu
607-255-3344


From: rt-users  on behalf of john 
boris 
Date: Tuesday, November 29, 2016 at 2:51 PM
To: "rt-users@lists.bestpractical.com" 
Subject: [rt-users] Looking for users of RT 4.4 that use the Asset feature

Good Day,
My department is looking to replace our current Ticket/asset management system. 
I have been using RT on a small basis to handle my own Support requests and 
used the Asset Management add on (pre 4.4). Our current system used to have an 
agent that would populate the data set for us but lacked some of the info we 
needed. We were at the mercy of the company to add features.

I am hoping we can roll our own Powershell script to gather the info we need 
and with some other tweaks we can roll our own.My question to the list is if 
anyone is using RT 4.4 with the Asset Management feature and would like to 
share their experience with it. I am putting together the proposal to use RT 
for this replacement. As a ticket system I think it is an easy sell but the 
Asset portion is my tough sell.

Anyone who wants to reply can reply off list unless it you feel it is relevant 
to stay on the list. I will post what happens when completed (albeit that might 
not be for a month or so).

TIA

--
John J. Boris, Sr.

-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - January 9-11 2017

Re: [rt-users] Greetings from a New RT user in Toronto.

2016-10-24 Thread Chris McClement
Hi Reza

Welcome to RT. We're a fairly new user of the product so have recent
experience of your learning curve!

We have a bit of a workaround in place for "2. Suppress "RT System
Itself...)" lines in the History. We simply hide the entries with custom
css. In Admin > Tools > Theme > Custom CSS (Advanced), we've added:

div.transaction.Ticket-transaction.other {
display: none;
}

This hides all those RT System messages while leaving things like actual
message content/comments alone.

As far as "4. Assigning tickets..." goes, have you set any of your users as
"Privileged"? As far as I remember if you are logged in as a privileged
user you should be able to assign tickets to other privileged users.

Regards
Chris

On Mon, 24 Oct 2016 at 21:50 Reza <reza.toro...@gmail.com> wrote:

> Greetings Folks:
>
> I successfully installed RT on a virtual machine and it has been a
> non-stop learning marathon for 12+ hrs non stop.   If you are as new as
> me in RT, please reply to my message, and perhaps we can have a
> conference call (at my expense) to do some sort of study group session,
> so we can share knowledge.
>
> Its easiest to learn when there are friendly tutors.  FYI, I have
> acquired the following knowledge the very hard way.
> 1.  Setup / Installation.  (The hardest part)
> 2.  Creating Users
> 3.  Creating Groups
> 4.  Understanding Permissons
> 5.  Enabling watchers
> 6.  Configuring Fetch Mail with SSL option to a gmail account (for testing)
> 7.  Configuring Sendmail / Exim and smart host
> 8.  Purging / Shredding tickets
>
>
> What I would like to learn is:
> 1.  Create Random Ticket numbers.
> 2.  Suppress "RT System Itself - Outgoing email recorded"
> 3.  Customization of Auto ticket reply.
> 4.  Assigning tickets / transferring to someone else (when not logged in
> as root)
> 5.  3rd Party CRM integration basics.
>
> Thanks in advance to all the folks here, specially the creators of RT.
>
> Best,
> Reza.
>
> -
> RT 4.4 and RTIR training sessions, and a new workshop day!
> https://bestpractical.com/training
> * Boston - October 24-26
> * Los Angeles - Q1 2017
>
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017

Re: [rt-users] Unable to create ticket via email

2016-10-18 Thread Chris Manly
Hi,

At either the queue level or globally, you need to give the “Everyone” group 
the “CreateTicket” permission.  Then un-known e-mail addresses will be able to 
create new tickets and will get set up as new un-privileged users automatically.

-- 
Christopher Manly
Coordinator, Library Systems
Cornell University Library Information Technologies
c...@cornell.edu
607-255-3344




On 10/17/16, 7:19 PM, "rt-users on behalf of Rune Henssel" 
 
wrote:

Hi List

I am trying to setup RT 4.4.1 so that tickets can be created via an email 
handled by rt-mailgate.
So fare I can only get RT to create a ticket if the sender is already 
created as a user in RT.

If I try to create a ticket from an, to RT unknown email address, I get a 
message back saying:
"You do not have permission to communicate with RT".

The RT installation is running with $ExternalAuth = 1 and $ExternalSettings 
set to use Pg_Auth to authenticate the users from a Postgresql.
@MailPlugins is not set, so it must be using the default values.

Any help in figuring out why RT won't allow ticket creation via email will 
be greatly appreciated.


Yours
Rune Henssel
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017


-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017

[rt-users] Excluding Commands from CommandbyMail parsing

2016-10-02 Thread Chris McClement
I've implemented the CommandbyMail extension (
http://search.cpan.org/dist/RT-Extension-CommandByMail/lib/RT/Extension/CommandByMail.pm)
in my RT 4.4.4 installation. It works well - almost too well!  I am getting
"Extended Mailgate Errors" returned because the plugin is parsing the
message body for "Command: value" (which it is meant to do) and picking up,
in emails forwarded to RT:

"To: x...@abc.com"
"From: x...@abc.com"
"sent: the_date_sent"

And trying to process them as commands.

In addition, forwarded emails have "Subject: [Support ID #12345]
some_new_subject" and this is changing the subject of the RT job to the new
subject, which is different from the subject used when the ticket was
originally created.

Is there a way to stop CommandbyMail from parsing "to:" "from" and "sent:"
as commands, or at least configuring it to not return errors when it fails
to match it to a valid command? And is there a way to prevent parsing
"Subject: " so that my subjects no longer change?
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017

Re: [rt-users] Best setup for using RT with Gmail?

2016-09-04 Thread Chris McClement
You don't need to setup your own mail server, you can just use Gmail. There
are two components to it:

- sending mail via gmail from RT
- fetching mail from gmail and inserting it into RT queues

For sending mail via gmail from RT, start here:
http://serverfault.com/questions/204216/how-to-make-request-tracker-use-an-external-smtp-mail-server.
The answer to that thread links to how-tos.

For fetching mail and inserting it into RT queues, you first need to
install either fetchmail or getmail (I use getmail), configure it to
collect mail from the gmail inbox allocated to the queue, and then hand off
mail it collects to rt-mailgate. rt-mailgate's arguments direct mail to the
relevant queues.

On Mon, 5 Sep 2016 at 02:30 Alex Hall  wrote:

> Hi list,
> I've never set up or run a mail server before, but I need to get email
> working with RT. We use Gmail Apps at work, so everyone has an email
> address. Right now, tick...@domain.com is our ticket one, and I'll use
> tickets+queuen...@domain.com for email ticket creation.
>
> What I'm wondering is which is the best mail server to use on the Debian 8
> server that hosts RT? FastMail seems popular, but will it be best suited to
> Gmail, which requires encryption? Is there a better one? Any other notes on
> doing this I should know? Thanks in advance.
>
> Sent from my iPhone
> -
> RT 4.4 and RTIR training sessions, and a new workshop day!
> https://bestpractical.com/training
> * Boston - October 24-26
> * Los Angeles - Q1 2017
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017

Re: [rt-users] Two emails assigned to the same queue

2016-09-04 Thread Chris McClement
The short answer is: yes.

Sending email to a queue is configured using the RT's mail gateway in
combination with standard linux utilities like fetchmail or getmail. The
basic workflow is:

mail sent to queue mailbox -> getmail collects from mailbox -> getmail
hands new emails to rt-mailgate -> rt-mailgate creates ticket in queue

For multiple addresses to send to the same queue, you simply configure
multiple mailboxes, and tell getmail to collect from them all, handing over
to rt-mailgate that is configured to insert into the same queue.

Note that the above does not depend on the "Reply Address" or "Comment
address" in the GUI queue configuration form for the email address to be
used. The email addresses in those fields, as far as I understand it, are
used by your Privileged users to insert correspondence or comments into
tickets. Someone with more experience might want to correct or confirm that.

On Sat, 3 Sep 2016 at 01:43 Renos Nikolaou 
wrote:

> Hello all,
>
>
>
> I would like to know if it’s possible to have two email addresses assigned
> to the same queue ?
>
> For example, when a user send an email either to us...@domain.com or
> us...@domain.com a ticket will be created in the same QUEUE.
>
>
>
> I created a queue and on the Reply Address field i used (, | ;) between
> the two emails (Ex. us...@domain.com,us...@domain.com ) ,but the
> following notice occurred:
>
> "RTAddressRegexp option in the config doesn't match us...@domain.com,
> us...@domain.com"
>
>
>
> Could you please advise ?
>
>
>
> Thank you!,
>
>
> Renos Nikolaou
> Escalation Engineer
> rnikol...@odysseyconsultants.com
>  Extension: # 153
> 1, Lefkos Anastasiades Street, 3rd Floor, 2012 Strovolos, Nicosia *Tel.:*
> +357 22463600
> 
>
> This e-mail contains proprietary information some or all of which may be
> legally privileged. It is for the intended recipient only. If an addressing
> or transmission error has misdirected this e-mail, please notify the author
> by replying to this e-mail. If you are not the intended recipient you must
> not use, disclose, distribute, copy, print or rely on this e-mail. The
> content of this email may contain private views and opinions, which do not
> constitute formal disclosure or commitment unless specifically stated.
>  
> 
> 
>
> -
> RT 4.4 and RTIR training sessions, and a new workshop day!
> https://bestpractical.com/training
> * Boston - October 24-26
> * Los Angeles - Q1 2017
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017

Re: [rt-users] issue with new search permissions

2016-08-29 Thread Chris McClement
Did you apply the permissions globally or just to the queue? My guess is
the former, which you'd have done by going to Admin -> Global -> Group
Rights. What you want to do is remove those permissions, and then open the
specific queue, and select Group Rights tab (not the Global menu) and
assign from there.

On Tue, 30 Aug 2016 at 01:26 aixenv  wrote:

> So i have a group that is "company1" i gave that group "create and reply
> on ticket" permissions
>
> i had to set the user within this group to privileged so they have
> particular access to a dedicated queue let's call it " company1"
>
> everything looks good except new search
>
> if i go into new search and just do a search on resolved tickets it shows
> EVERY resolved ticket from every queue, and tickets are clickable and
> viewable
>
> how on earth do i limit that to just "company1"
>
> RT version 4.2.10
> -
> RT 4.4 and RTIR training sessions, and a new workshop day!
> https://bestpractical.com/training
> * Boston - October 24-26
> * Los Angeles - Q1 2017
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017

Re: [rt-users] Applying configuration changes?

2016-08-29 Thread Chris McClement
Did you specify Mysql when you ran the configure script (during
installation)? See step 2 of the README:
https://docs.bestpractical.com/rt/4.4.1/README.html

On Tue, 30 Aug 2016 at 06:28 Alex Hall  wrote:

> Hello list,
> Until I can find out why FCGI processes don't work, I'm trying to run RT
> on its own server with:
> sudo /usr/share/request-tracker4/libexec/rt-server --port 8485
> but I get an error about SQLite3 not working. The thing is, I have it set
> to MySQL, not SQLite, so I don't know why it's not using MySQL. I made a
> change to /etc/request-tracker4/RT_SiteConfig.pm, and the same to
> RT_SiteConfig.d/51-DBConfig, but it didn't help. I tried
> sudo /etc/init.d/request-tracker4 restart
> to get the change to register, but had no luck. What do I have to do to
> get RT to see configuration changes? This seems like a simple thing, but I
> can't find it online, and the restart doesn't seem to have helped. If
> there's something obvious I've missed in my DB setup that would cause it to
> use the wrong backend, I'd love to know that as well. RT4.2.8 on Debian 8.
> Thanks.
>
> --
> Alex Hall
> Automatic Distributors, IT department
> ah...@autodist.com
> -
> RT 4.4 and RTIR training sessions, and a new workshop day!
> https://bestpractical.com/training
> * Boston - October 24-26
> * Los Angeles - Q1 2017
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017

Re: [rt-users] Accessibility of RT for screen reader users?

2016-08-25 Thread Chris McClement
The coloured items are links but they are not  tags. Their attributes
are defined using CSS classes.

I tried tabbing through the page and you have to tab through every item in
every menu before you get to the body of the ticket. Once in the body of
the ticket tabbing jumps from link to link, and tickets typically have many
of these.

Of interest may be RT's built-in keyboard shortcuts:
https://bestpractical.com/blog/2016/7/keyboard-shortcuts

While there are shortcuts to navigate search results as well as some basic
actions (like commenting) there do not appear to be shortcuts for
navigating headings within a ticket.

On Thu, 25 Aug 2016 at 15:05 Alex Hall <ah...@autodist.com> wrote:

> Thanks for testing. My only concerns are mousing over things to get them
> to read, and whether the colored items are true headings?
>
> For mousing, I wonder if tab will do the same? That is, if you tab from
> field to field, will NVDA announce the field label as focus changes to the
> field? I never use a mouse, so moving the pointer over a field isn't
> something I think of testing.
>
> The colored items: are those headings in look only, or actual h tags? That
> is, when you're on the page with them, does pressing the h key move you to
> each one in turn?
>
>
> Sent from my iPhone
>
> On Aug 24, 2016, at 19:18, Chris McClement <chri...@bosberaad.com> wrote:
>
> Hi Alex
>
> While I don't have much experience with web accessibility I do run a
> network of public PCs that includes NVDA installed on those PCs, so I
> jumped onto one of them to do a quick test of the RT web pages with NVDA
> active. Bearing in mind that I don't know what is supposed to be good and
> bad for these sorts of things, here are my observations, based on the list
> of your basics:
> - label tags for form fields: yes. You have to mouse over for them to be
> read
> - table titles - When I opened a ticket listing (for example, by clicking
> on a search) the page opened and the first thing NVDA said was "table of x
> rows and Y columns". It also read the table title (e.g. "Found 1 Ticket").
> However it did not automatically read column titles, I had to mouse over
> them.
> - image descriptions use alt attribute - yes, but actually a bit annoying.
> At the top right hand corner of every RT page is the Best Practical Logo so
> every page change one of the things it read was the Logo's alt attribute.
> It felt redundant really quickly!
> - use of headings/landmarks - yes, RT divides tickets display pages into
> sections and the headings are not only in enlarged fonts but different
> sections have color-coded headings. For example, "The Basics" and "Custom
> Fields" is in bright red, the "People" section is in light blue, "Dates" is
> in magenta, etc. So depending on the level of your visual impairment that
> may be useful.
> - accessible widgets like menus or dialogs: menus = yes, dialogs = no.
> There are no popups. Also, the menus are all dropdowns, so nothing visible
> in the menu until you click on it. Clicking on a menu heading does not
> change page, it just opens the menu. Not sure if it is relevant but you can
> configure custom field selection boxes in multiple ways, so for example you
> can make them a dropdown box, or a selectable list, that sort of thing.
>
> One other observation for the web interface: in ticket listings, RT
> abbreviates dates (so "Aug" for August" etc) which took a bit of getting
> used to when NVDA read out the abbreviation when I moused over it.
>
> Hope that helps!
> Chris
>
> On Thu, 25 Aug 2016 at 00:10 Alex Hall <ah...@autodist.com> wrote:
>
>> Hello all,
>> Thanks for your comments on my long list of questions yesterday. I'm
>> going to take today and set up RT on our Debian server, just to see how
>> well it works. As I do, one final question comes to mind: how well does RT
>> work with screen readers?
>>
>> For those unfamiliar, a screen reader does basically what it says on the
>> box: it is a program that speaks, using synthesized speech, what's on the
>> screen. It uses standard system commands augmented with a set of its own
>> commands to read just about everything--emails, webpages, spreadsheets,
>> documents, menus, etc. Different screen readers do different amounts of
>> guessing if the OS/current application fails to provide information, but
>> they all work best when whatever you're using them to access complies with
>> standards and best practices.
>>
>> In this case, I'm wondering how compliant RT's webpages are with web
>> accessibility standards. I'm visually impaired, so use a screen reader
>> (NVDA, www.nvda-project.org) to do 

Re: [rt-users] Accessibility of RT for screen reader users?

2016-08-24 Thread Chris McClement
Hi Alex

While I don't have much experience with web accessibility I do run a
network of public PCs that includes NVDA installed on those PCs, so I
jumped onto one of them to do a quick test of the RT web pages with NVDA
active. Bearing in mind that I don't know what is supposed to be good and
bad for these sorts of things, here are my observations, based on the list
of your basics:
- label tags for form fields: yes. You have to mouse over for them to be
read
- table titles - When I opened a ticket listing (for example, by clicking
on a search) the page opened and the first thing NVDA said was "table of x
rows and Y columns". It also read the table title (e.g. "Found 1 Ticket").
However it did not automatically read column titles, I had to mouse over
them.
- image descriptions use alt attribute - yes, but actually a bit annoying.
At the top right hand corner of every RT page is the Best Practical Logo so
every page change one of the things it read was the Logo's alt attribute.
It felt redundant really quickly!
- use of headings/landmarks - yes, RT divides tickets display pages into
sections and the headings are not only in enlarged fonts but different
sections have color-coded headings. For example, "The Basics" and "Custom
Fields" is in bright red, the "People" section is in light blue, "Dates" is
in magenta, etc. So depending on the level of your visual impairment that
may be useful.
- accessible widgets like menus or dialogs: menus = yes, dialogs = no.
There are no popups. Also, the menus are all dropdowns, so nothing visible
in the menu until you click on it. Clicking on a menu heading does not
change page, it just opens the menu. Not sure if it is relevant but you can
configure custom field selection boxes in multiple ways, so for example you
can make them a dropdown box, or a selectable list, that sort of thing.

One other observation for the web interface: in ticket listings, RT
abbreviates dates (so "Aug" for August" etc) which took a bit of getting
used to when NVDA read out the abbreviation when I moused over it.

Hope that helps!
Chris

On Thu, 25 Aug 2016 at 00:10 Alex Hall <ah...@autodist.com> wrote:

> Hello all,
> Thanks for your comments on my long list of questions yesterday. I'm going
> to take today and set up RT on our Debian server, just to see how well it
> works. As I do, one final question comes to mind: how well does RT work
> with screen readers?
>
> For those unfamiliar, a screen reader does basically what it says on the
> box: it is a program that speaks, using synthesized speech, what's on the
> screen. It uses standard system commands augmented with a set of its own
> commands to read just about everything--emails, webpages, spreadsheets,
> documents, menus, etc. Different screen readers do different amounts of
> guessing if the OS/current application fails to provide information, but
> they all work best when whatever you're using them to access complies with
> standards and best practices.
>
> In this case, I'm wondering how compliant RT's webpages are with web
> accessibility standards. I'm visually impaired, so use a screen reader
> (NVDA, www.nvda-project.org) to do all my work. I'm the only one who will
> be using RT here that needs a screen reader, but as it's my job to
> administer the system, I have to be able to use it reasonably well.
> OSTicket has several major problems in this area, and, while I could
> usually get around them, they made things slower and more frustrating than
> they needed to be.
>
> If anyone has any experience with web accessibility and happens to know
> how well RT works with common screen readers, I'd love your thoughts.
> Specifically, I'm looking for the basics--label tags for form fields, table
> titles, image descriptions using the alt attribute, use of headings and/or
> landmarks to facilitate easy navigation, accessible widgets like menus or
> dialogs, and so on. I'll find out soon first-hand how well RT does at
> these, and I did have a quick look through the demo site, but if anyone has
> input I'd love to hear it. Thanks.
>
> --
> Alex Hall
> Automatic Distributors, IT department
> ah...@autodist.com
> -
> RT 4.4 and RTIR training sessions, and a new workshop day!
> https://bestpractical.com/training
> * Boston - October 24-26
> * Los Angeles - Q1 2017
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017

Re: [rt-users] RT-Extension-CommandByMail <- I can't update tickets by mail

2016-05-19 Thread Chris McClement
Thanks Jim, that solved it!

For completeness, I did run the install again. Here's how it went:

[root@myserver RT-Extension-CommandByMail-2.01]# perl Makefile.PL
Using RT configuration from /opt/rt4/lib/RT.pm:
etc=> /opt/rt4/local/plugins/RT-Extension-CommandByMail/etc
lib=> /opt/rt4/local/plugins/RT-Extension-CommandByMail/lib
*** Module::AutoInstall version 1.16
*** Checking for Perl dependencies...
[Core Features]
- Test::More ...loaded. (1.001014)
- IPC::Open2 ...loaded. (1.04)
*** Module::AutoInstall configuration finished.
Open input
'/root/commandbymail/RT-Extension-CommandByMail-2.01/lib/RT/Extension/CommandByMail/
Test.pm.in' file for substitution
Open output
'/root/commandbymail/RT-Extension-CommandByMail-2.01/lib/RT/Extension/CommandByMail/Test.pm'
file for substitution
Writing Makefile for RT::Extension::CommandByMail
Writing MYMETA.yml and MYMETA.json
[root@myserver   RT-Extension-CommandByMail-2.01]# make
Skip blib/lib/RT/Extension/CommandByMail.pm (unchanged)
Skip blib/lib/RT/Extension/CommandByMail/Test.pm.in (unchanged)
Skip blib/lib/RT/Interface/Email/Action/CommandByMail.pm (unchanged)
Skip blib/lib/RT/Interface/Email/Filter/TakeAction.pm (unchanged)
Skip blib/lib/RT/Extension/CommandByMail/Test.pm (unchanged)
Manifying blib/man3/RT::Extension::CommandByMail.3pm
Manifying blib/man3/RT::Interface::Email::Action::CommandByMail.3pm
Manifying blib/man3/RT::Interface::Email::Filter::TakeAction.3pm
[root@myserver   RT-Extension-CommandByMail-2.01]# make install
Appending installation info to
/opt/rt4/local/plugins/RT-Extension-CommandByMail
 /lib/perllocal.pod

I suspect the "Skip blib/lib/RT/Interface/Email/Action/CommandByMail.pm
(unchanged)" may not have worked had I not done that manual copy. However I
am unsure as to why it didn't copy over the in the first place. Never mind,
it's working and I managed to resolve my test ticket with an email message.



On Thu, 19 May 2016 at 09:21 Jim Brandt <jbra...@bestpractical.com> wrote:

> You still need the 'Plugin' line, so you'll want to uncomment:
>
> Plugin('RT::Extension::CommandByMail');
>
> I'd be curious why the file wasn't installed when your ran 'make
> install' only because the underlying issue might lead to other problems.
> You might try running the install again to make sure the files are
> installed correctly.
>
> Lastly, note that we have one report of an issue with the
> CommandByMailGroup option that we're investigating.
>
> On 5/18/16 4:45 PM, Chris McClement wrote:
> > I need some advice with getting the CommandByMail extension working.
> > I've followed the installation instructions
> > here:
> http://search.cpan.org/dist/RT-Extension-CommandByMail/lib/RT/Extension/CommandByMail.pm
> >
> > I'm on 4.4 so I've commented out the old @Mailplugin lines in
> > RT_Siteconfig.pm
> >
> > Here's an excerpt from RT_Siteconfig.pm where I've tried to add in the
> > correnct lines:
> >
> > # RT 4.2 plugins are not forward compatible with RT 4.4 - removed the
> > following (CJM)
> > #Plugin('RT::Extension::CommandByMail');
> > #Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction));
> > #Set( $CommandByMailGroup, 'APNK Staff');
> >
> > # added for 4.4. by CJM
> >  #Set( @MailPlugins,
> >   #  "Action::Take",
> ># );
> >
> > # added by CJM
> > # enables updating the status of a ticket via email
> > Set(@MailPlugins, qw(Auth::MailFrom Action::CommandByMail));
> >
> > I've included the commented bits because that shows what I removed when
> > I upgraded to 4.4.
> >
> > I have also applied the patch as specified in the instructions.
> >
> > During early troubleshooting I looked for CommandByMail.pm and could not
> > find it in my RT installation. With some guesswork I figured it should
> > be found here:
> >
> > /opt/rt4/lib/RT/Interface/Email/Action/
> >
> > I downloaded the source .pm from the cpan.org <http://cpan.org> page
> > linked above and copied it to that folder. I've checked that the
> > permissions for it are the same as the other files there.
> >
> > Am I even on the right track here? I'm sending an update to RT with
> > "Status: resolved" as the only line in the body and the ticket isn't
> > changing status.
> >
> > Regards,
> > Chris
> >
> >
> > -
> > 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
>
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


[rt-users] RT-Extension-CommandByMail <- I can't update tickets by mail

2016-05-18 Thread Chris McClement
I need some advice with getting the CommandByMail extension working.  I've
followed the installation instructions here:
http://search.cpan.org/dist/RT-Extension-CommandByMail/lib/RT/Extension/CommandByMail.pm

I'm on 4.4 so I've commented out the old @Mailplugin lines in
RT_Siteconfig.pm

Here's an excerpt from RT_Siteconfig.pm where I've tried to add in the
correnct lines:

# RT 4.2 plugins are not forward compatible with RT 4.4 - removed the
following (CJM)
#Plugin('RT::Extension::CommandByMail');
#Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction));
#Set( $CommandByMailGroup, 'APNK Staff');

# added for 4.4. by CJM
 #Set( @MailPlugins,
  #  "Action::Take",
   # );

# added by CJM
# enables updating the status of a ticket via email
Set(@MailPlugins, qw(Auth::MailFrom Action::CommandByMail));

I've included the commented bits because that shows what I removed when I
upgraded to 4.4.

I have also applied the patch as specified in the instructions.

During early troubleshooting I looked for CommandByMail.pm and could not
find it in my RT installation. With some guesswork I figured it should be
found here:

/opt/rt4/lib/RT/Interface/Email/Action/

I downloaded the source .pm from the cpan.org page linked above and copied
it to that folder. I've checked that the permissions for it are the same as
the other files there.

Am I even on the right track here? I'm sending an update to RT with
"Status: resolved" as the only line in the body and the ticket isn't
changing status.

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


[rt-users] RT4 Install on Centos7+Internal Server Error

2016-05-09 Thread Chris Herrmann
You need to fix permissions on 
/opt/rt4/var/log/rt.log

There may be other problems, but you won't see what they are presumably until 
they can be logged in there. 


Regards,
--
Chris Herrmann
Far Edge
http://www.faredge.com.au-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] which Perl version should one use with RT 4.4 on CentOS 6

2016-03-19 Thread Chris Groome
I upvote Martin's answer. He gave you the version and the proper technique
to achieving it.

On Wed, Mar 16, 2016 at 5:44 AM, Martin Wheldon <
martin.whel...@greenhills-it.co.uk> wrote:

> Hi,
>
> I would recommend installing a version of perl just for RT that is
> seperate from the
> system perl. I tend to use the version that the perl project considers
> stable. Currently
> v5.22.1 I believe.
>
> Check out perlbrew for a nice easy clean way of installing a independant
> perl version.
>
> Best Regards
>
> Martin
>
>
> On 2016-03-15 15:36, Joseph D. Wagner wrote:
>
>> If you can upgrade to the latest version of CentOS 7, you'll get perl
>> 5.16.
>>
>> Joseph D. Wagner
>>
>> On 2016-03-15 03:06, Boris Epstein wrote:
>>
>> Hi Peter,
>>>
>>> Thanks, I saw that.
>>>
>>> I was wondering what the benefits and general experience was of
>>> those who used later versions of Perl 5 or Perl 6 vs 5.10.1. Just
>>> trying to see if it was a worthwhile exercize trying to upgrade -
>>> which on Centos did not seem to be trivial.
>>>
>>> Cheers,
>>>
>>> Boris.
>>>
>>> On Tue, Mar 15, 2016 at 4:27 AM, Peter Viskup 
>>> wrote:
>>>
>>> Hello Boris,
 from readme [1] on github it is obvious the RT needs Perl as of
 version 5.10.1 and above. Readme file from 4.4 version has the
 same
 list of requirements.
 Some RT modules may have their own dependencies. You need to check
 them.

 [1] https://github.com/bestpractical/rt

 --
 Peter Viskup

 On Mon, Mar 14, 2016 at 4:33 PM, Boris Epstein
  wrote:

> Hello all,
>
> I am about to upgrade my RT 4.2 to v4.4 on a CentOS 6 machine.
>
 It appears

> that Perl 5.1 is barely adequate. What is the recommended
>
 version of Perl

> for this setup?
>
> Thanks.
>
> Cheers,
>
> Boris.
>
>
 -
> 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
>>>
>>
>> -
>> 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
>
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] which Perl version should one use with RT 4.4 on CentOS 6

2016-03-18 Thread Chris Groome
Hi Jerome,
First I want to apologize. I do not check my 'lists' every day. I hope you
have already found your answer by now. If not,,,
For my install I had a museum piece server and yet, its used every day. So
they need new HW and OS but old DB SW for a quick transition rather than
importing the data into a new ver install.(there done with background)
So new HW with centOS 6.5 using the std perl-5.10.1-136.el6.x86_64
but running rt-3.8.4
The key for my install was resolving dependencies by running the following:
perl sbin/rt-test-dependencies --with-postgres --with-modperl1 --install
(30min later the command finished with the following issues)

I saw messages like this too: Warning: Prerequisite 'Exception::Class =>
1.15' for 'DROLSKY/HTML-Mason-1.56.tar.gz' failed when processing
'DROLSKY/Exception-Class-1.40.tar.gz' with 'make_test => NO'. Continuing,
but chances to succeed are limited.
and this: Syntax error on line 1046 of /usr/local/apache/conf/httpd.conf:
Can't locate RT/Extension/ForkTicket.pm in @INC (@INC contains:
It could not locate it because it was not on the server

So with the above and below messages I knew I had a pyramid of dependencies
to resolve and I needed to start with the smallest and work my way to the
very top  installing them all. It took a small time really to get them all.

Install module Net::Server
Net::Server is up to date (2.008).

SOME DEPENDENCIES WERE MISSING. <==and by the way some of the missing had
missing for them too.
ICAL missing dependencies:
Data::ICal...MISSING
MAILGATE missing dependencies:
HTML::FormatText...MISSING
STANDALONE missing dependencies:
HTTP::Server::Simple >= 0.34...MISSING
HTTP::Server::Simple::Mason >= 0.09...MISSING
GPG missing dependencies:
GnuPG::Interface...MISSING
POSTGRESQL missing dependencies:
DBD::Pg >= 1.43...MISSING
CORE missing dependencies:
HTML::Scrubber >= 0.08...MISSING
MASON missing dependencies:
HTML::Mason >= 1.36...MISSING
http://perldoc.perl.org/perlmodinstall.html <==Read this for installing Dep
I hope this helps.
Sincerely, Chris


On Wed, Mar 16, 2016 at 12:30 PM, Jerome <jer...@ibt.unam.mx> wrote:

> Dear Cris Groome,
>
> You've wrote this answer:
>
> "I upvote Martin's answer. He gave you the version and the proper
> technique to achieving it."
>
> Would you be nice to send me too your "howto" about specific perl install
> for RT?
>
> Regards.
>
>
> --
> -- Jérôme
> Be yourself; everyone else is already taken.
>  (Oscar Wilde)
> -
> 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


[rt-users] Find the first day of this month

2015-12-08 Thread Chris Herrmann
Hi all,

This has been kicked around a few times over the years if google & the list
archives are anything to go on, but I haven't actually seen a solution that
meets what any of the requestors (and me) want.

Which is... to run a search using a date like:

Queue = 'myqueue' and (  ( Status = 'open' or Status = 'new' ) OR (
Resolved > 'first dow after last month' ) )


or "last month + 1" or "first dom" or really anything that will
programmatically always return the first day of this month. I have a shell
script that does this by constructing a date in bash, and then passing the
date to the query as a variable, but I can't do this within the "save
search" function.


The reason I'm after "save search" is that the HTML reports are easier for
humans to read than the TSV extracts that the bash scripts generate.


things like "last month" get close - but it simply works out "now - 30
days". And I can't see a way in Time::ParseDate to extract the month and
year in the same way I would in bash using something like `date +%b`


MIT have a nice page that has better examples than the Time::Parse doco
http://kb.mit.edu/confluence/pages/viewpage.action?pageId=4269222  but I
can't work out how to construct the thing I want using what's available.


Please tell me I'm wrong!


Regards,


Chris


Re: [rt-users] Find the first day of this month

2015-12-08 Thread Chris Herrmann
I also looked at the Attributes table, but the actual SavedSearch is stored
as a binary blob AFAICT? I was going to head down the path of updating the
contents of the field with a programmatically generated string once a day
or something like that:

queue = "myqueue" and Created > "2015-12-01"

i.e. just change the date in question every day so that the Dashboards and
scheduled email reports always have the desired dates. But... I can't see
how to do it with what's there... (a BLOB). And it looks really blobby too
- proper blob... not just a bunch of TEXT that happens to be stored as a
BLOB?

On 8 December 2015 at 21:55, Chris Herrmann <chrisherrma...@gmail.com>
wrote:

> Hi all,
>
> This has been kicked around a few times over the years if google & the
> list archives are anything to go on, but I haven't actually seen a solution
> that meets what any of the requestors (and me) want.
>
> Which is... to run a search using a date like:
>
> Queue = 'myqueue' and (  ( Status = 'open' or Status = 'new' ) OR (
> Resolved > 'first dow after last month' ) )
>
>
> or "last month + 1" or "first dom" or really anything that will
> programmatically always return the first day of this month. I have a shell
> script that does this by constructing a date in bash, and then passing the
> date to the query as a variable, but I can't do this within the "save
> search" function.
>
>
> The reason I'm after "save search" is that the HTML reports are easier for
> humans to read than the TSV extracts that the bash scripts generate.
>
>
> things like "last month" get close - but it simply works out "now - 30
> days". And I can't see a way in Time::ParseDate to extract the month and
> year in the same way I would in bash using something like `date +%b`
>
>
> MIT have a nice page that has better examples than the Time::Parse doco
> http://kb.mit.edu/confluence/pages/viewpage.action?pageId=4269222  but I
> can't work out how to construct the thing I want using what's available.
>
>
> Please tell me I'm wrong!
>
>
> Regards,
>
>
> Chris
>


[rt-users] RT unusably slow on iPhone / TLS

2015-11-25 Thread Chris Herrmann
hi all,

I'm really not sure where to start troubleshooting this. If I use a
computer to access our RT instance, then the speed is good. If I use any
iPhone, then the speed is terrible. 6S/5S/4S iOS7/8/9 - all terrible. By
terrible - I mean that the front page might take 10 seconds to load. If I
tap the username field, it might take a further 10 seconds before I can
enter text. Each and every tap / submit / etc is unusably slow. The key is
a 2048 RSA which should be OK on an iphone.

It *feels* like a site that's using horrible javascript, making the browser
unresponsive. But on an iPhone I really have no way of testing this (well
that I'm aware of).

We're running it on nginx, TLS, self signed cert - signed by an internal CA
that is trusted by the phone. I've tried things ranging from spdy (html/2
not supported on iphone), loading the pem with all of the certs in the
chain, enabling caching of static objects - no difference.

Just to be clear - it's fast on a regular PC / browser. Just slow on phones
(mobile & regular interface) - slow regardless of location (i.e. wifi in
the office to the server, 4G... no difference).

any ideas where I should look? or what do i need to tell you... to try and
get help?

Thanks!

Chris


Re: [rt-users] RT unusably slow on iPhone / TLS

2015-11-25 Thread Chris Herrmann
Poor form to reply to your own question... just tried Chrome on iOS - much
faster. Firefox refuses to load completely because it's a self signed cert.

On 25 November 2015 at 20:31, Chris Herrmann <chrisherrma...@gmail.com>
wrote:

> hi all,
>
> I'm really not sure where to start troubleshooting this. If I use a
> computer to access our RT instance, then the speed is good. If I use any
> iPhone, then the speed is terrible. 6S/5S/4S iOS7/8/9 - all terrible. By
> terrible - I mean that the front page might take 10 seconds to load. If I
> tap the username field, it might take a further 10 seconds before I can
> enter text. Each and every tap / submit / etc is unusably slow. The key is
> a 2048 RSA which should be OK on an iphone.
>
> It *feels* like a site that's using horrible javascript, making the
> browser unresponsive. But on an iPhone I really have no way of testing this
> (well that I'm aware of).
>
> We're running it on nginx, TLS, self signed cert - signed by an internal
> CA that is trusted by the phone. I've tried things ranging from spdy
> (html/2 not supported on iphone), loading the pem with all of the certs in
> the chain, enabling caching of static objects - no difference.
>
> Just to be clear - it's fast on a regular PC / browser. Just slow on
> phones (mobile & regular interface) - slow regardless of location (i.e.
> wifi in the office to the server, 4G... no difference).
>
> any ideas where I should look? or what do i need to tell you... to try and
> get help?
>
> Thanks!
>
> Chris
>


Re: [rt-users] No outbound email after upgrade

2015-08-25 Thread Ditri, Chris
Hi Matt, and thanks for your response.

I have tried this.  It still produces nothing.  Here is what I added to my 
RT_SiteConfig.pm:

Set($MailCommand, mbox);
Set($SendmailPath, /usr/lib/sendmail);
Set($SendmailArguments, -t);
Set($OwnerEmail, m...@workplace.com); 


I have also tried:
Set($MailCommand, sendmailpipe);
Set($MailCommand, smtp);
Set($MailCommand, sendmail);
Set($MailCommand, test);

I do a '/etc/init.d/request-tracker4 restart' after each, and even try 
rebooting.  No good.

I'm sure I'm missing something silly here... but I just don't know what it is...

Any other suggestions?

Thank you.





From: Matt Zagrabelny mzagr...@d.umn.edu
Sent: Friday, August 21, 2015 4:05 PM
To: Ditri, Chris
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] No outbound email after upgrade

On Fri, Aug 21, 2015 at 2:09 PM, Ditri, Chris cdi...@experi-metal.com wrote:

 But, it was always able to send emails with no problem through exim, and I 
 can send emails from the bash command prompt with no problem as well.

From RT_Config.pm:

$MailCommand
$MailCommand defines which method RT will use to try to send mail.
We know that 'sendmailpipe' works fairly well. If 'sendmailpipe'
doesn't work well for you, try 'sendmail'. 'qmail' is also a
supported value.

For testing purposes, or to simply disable sending mail out into the
world, you can set $MailCommand to 'mbox' which logs all mail, in
mbox format, to files in /opt/rt4/var/ based in the process start
time. The 'testfile' option is similar, but the files that it
creates (under /tmp) are temporary, and removed upon process
completion; the format is also not mbox-compatable.

Perhaps try setting MailCommand to mbox or testfile.

-m


Re: [rt-users] No outbound email after upgrade

2015-08-25 Thread Ditri, Chris
 in different 
p   rt4-fcgi- External FastCGI support for request-track
p   rt4-standalone  - Standalone web server support for request-


I thank you.







From: rt-users rt-users-boun...@lists.bestpractical.com on behalf of Ditri, 
Chris cdi...@experi-metal.com
Sent: Tuesday, August 25, 2015 12:26 PM
To: Matt Zagrabelny
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] No outbound email after upgrade

HI Again,

Yes, I'm using debian.  No, I haven't put it in my RT_SiteConfig.d directory 
because I don't want to lose track of the settings.  When the config is good, I 
will move them into the appropriate file and re-execute my update 
update-rt-siteconfig-4.  I'm trying to keep the debris out of my configs.  It 
only reads RT_SiteConfig.pm, so I don't see any harm in this strategy.

I have set the logging on, thank you for that... lets hope it dumps some useful 
info!

Thanks again.






From: Matt Zagrabelny mzagr...@d.umn.edu
Sent: Tuesday, August 25, 2015 11:13 AM
To: Ditri, Chris
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] No outbound email after upgrade

On Tue, Aug 25, 2015 at 10:00 AM, Ditri, Chris cdi...@experi-metal.com wrote:
 Hi Matt, and thanks for your response.

 I have tried this.  It still produces nothing.  Here is what I added to my 
 RT_SiteConfig.pm:

 Set($MailCommand, mbox);
 Set($SendmailPath, /usr/lib/sendmail);
 Set($SendmailArguments, -t);
 Set($OwnerEmail, m...@workplace.com);


 I have also tried:
 Set($MailCommand, sendmailpipe);
 Set($MailCommand, smtp);
 Set($MailCommand, sendmail);
 Set($MailCommand, test);

 I do a '/etc/init.d/request-tracker4 restart' after each, and even try 
 rebooting.  No good.

 I'm sure I'm missing something silly here... but I just don't know what it 
 is...

 Any other suggestions?

It looks like you are using Debian. Are you using the SiteConfig.d
directory and running update-rt-siteconfig before restarting apache?

Other things you could try:

Set($LogStackTraces, 'debug');
Set($LogToSTDERR, 'debug');

then check the apache error log (/var/log/apache2/error.log)  for output.

-m


Re: [rt-users] No outbound email after upgrade

2015-08-25 Thread Ditri, Chris
HI Again,

Yes, I'm using debian.  No, I haven't put it in my RT_SiteConfig.d directory 
because I don't want to lose track of the settings.  When the config is good, I 
will move them into the appropriate file and re-execute my update 
update-rt-siteconfig-4.  I'm trying to keep the debris out of my configs.  It 
only reads RT_SiteConfig.pm, so I don't see any harm in this strategy.

I have set the logging on, thank you for that... lets hope it dumps some useful 
info!

Thanks again.






From: Matt Zagrabelny mzagr...@d.umn.edu
Sent: Tuesday, August 25, 2015 11:13 AM
To: Ditri, Chris
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] No outbound email after upgrade

On Tue, Aug 25, 2015 at 10:00 AM, Ditri, Chris cdi...@experi-metal.com wrote:
 Hi Matt, and thanks for your response.

 I have tried this.  It still produces nothing.  Here is what I added to my 
 RT_SiteConfig.pm:

 Set($MailCommand, mbox);
 Set($SendmailPath, /usr/lib/sendmail);
 Set($SendmailArguments, -t);
 Set($OwnerEmail, m...@workplace.com);


 I have also tried:
 Set($MailCommand, sendmailpipe);
 Set($MailCommand, smtp);
 Set($MailCommand, sendmail);
 Set($MailCommand, test);

 I do a '/etc/init.d/request-tracker4 restart' after each, and even try 
 rebooting.  No good.

 I'm sure I'm missing something silly here... but I just don't know what it 
 is...

 Any other suggestions?

It looks like you are using Debian. Are you using the SiteConfig.d
directory and running update-rt-siteconfig before restarting apache?

Other things you could try:

Set($LogStackTraces, 'debug');
Set($LogToSTDERR, 'debug');

then check the apache error log (/var/log/apache2/error.log)  for output.

-m


Re: [rt-users] No outbound email after upgrade

2015-08-25 Thread Ditri, Chris
Hi Matt,

There is absolutely nothing in ObjectScrips, and everything is set to NULL in 
Scrips (in the database).

Are you implying that I need to make custom scrips to send routine emails 
regarding tickets?  
Something is different then... I definitely didn't have to do that before... 
must be new between 4.0.7 and 4.2.8 (4.0.7 shipped with Wheezy, and 4.2.8 with 
Jessie).  Was it normal to lose that functionality in the upgrade?

I have never messed with Scrips before... not sure I understand them.  Is there 
a good resource on the subject?

Thank you.








From: Matt Zagrabelny mzagr...@d.umn.edu
Sent: Tuesday, August 25, 2015 12:52 PM
To: Ditri, Chris
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] No outbound email after upgrade

On Tue, Aug 25, 2015 at 11:46 AM, Ditri, Chris cdi...@experi-metal.com wrote:
 Ok...

 After turning the debugging, I captured this from the log:

 [1426] [Tue Aug 25 16:41:21 2015] [debug]: Converting 'utf-8' to 'utf-8' for 
 text/html - Subjectless message 
 (/usr/share/request-tracker4/lib/RT/I18N.pm:295)
 [1426] [Tue Aug 25 16:41:21 2015] [debug]: Converting 'utf-8' to 'utf-8' for 
 text/html - Subjectless message 
 (/usr/share/request-tracker4/lib/RT/I18N.pm:295)
 [1426] [Tue Aug 25 16:41:21 2015] [debug]: About to prepare scrips for 
 transaction #8404 (/usr/share/request-tracker4/lib/RT/Transaction.pm:187)
 [1426] [Tue Aug 25 16:41:21 2015] [debug]: Found 0 scrips for 
 TransactionCreate stage with applicable type(s) Correspond for txn #8404 on 
 ticket #621 (/usr/share/request-tracker4/lib/RT/Scrips.pm:495)
 [1426] [Tue Aug 25 16:41:21 2015] [debug]: About to commit scrips for 
 transaction #8404 (/usr/share/request-tracker4/lib/RT/Transaction.pm:210)
 [1426] [Tue Aug 25 16:41:21 2015] [debug]: Found 0 scrips for 
 TransactionBatch stage with applicable type(s) Correspond for txn #8404 on 
 ticket #621 (/usr/share/request-tracker4/lib/RT/Scrips.pm:495)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4484 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4486 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4488 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4490 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4492 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4495 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4497 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4499 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4504 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4506 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4508 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4510 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4512 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4514 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4516 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)
 [1426] [Tue Aug 25 16:41:22 2015] [debug]: Rendering attachment #4518 of 
 'text/html' type 
 (/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:182)


 It says it didn't find a script for transaction batch and for transaction 
 create...  Makes me wonder if I'm missing a package?

Not a package. Check your DB or your admin web interface.

SELECT  * from objectscrips;
SELECT  * from scrips;

The objectscrips is how scrips can be selectively

Re: [rt-users] No outbound email after upgrade

2015-08-21 Thread Ditri, Chris
Hi Matt,

It never could. I never got that working, and had to get going on other 
projects.  Things were complicated because we use exchange with a smart-host 
off-site to scrub our emails for spam and viruses.  It is setup to take all the 
email for our domain. I figured I'd tackle that again at a later date... 
probably using fetchmail or something... Once I get it back to where it was, 
I'll be looking into the receiving end of email.

But, it was always able to send emails with no problem through exim, and I can 
send emails from the bash command prompt with no problem as well.

Thanks.

-Chris






From: Matt Zagrabelny mzagr...@d.umn.edu
Sent: Friday, August 21, 2015 2:54 PM
To: Ditri, Chris
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] No outbound email after upgrade

On Fri, Aug 21, 2015 at 1:33 PM, Ditri, Chris cdi...@experi-metal.com wrote:
 Hello,

 I just upgraded from debian wheezy, which uses RT 4.0.7 to Jessie, which
 uses RT 4.2.8. Like a good debian user, I'm trying to stick with exim4, and
 it has always worked for my purposes in 4.0.7.

 However

 Ever since the update, RT will no longer send emails.

[...]

 Can someone point me in the right direction here?

Can your RT instance receive emails?

-m


[rt-users] No outbound email after upgrade

2015-08-21 Thread Ditri, Chris
Hello,

I just upgraded from debian wheezy, which uses RT 4.0.7 to Jessie, which uses 
RT 4.2.8. Like a good debian user, I'm trying to stick with exim4, and it has 
always worked for my purposes in 4.0.7.

However

Ever since the update, RT will no longer send emails. So, I thought that my 
debian update must have squashed my exim configs... but it didn't. From a bash 
shell, I can send email as anyone I want -- including the RT user. But RT 
itself no longer sends messages. There is nothing in any of my log files, and I 
pushed everything in RT to 'debug'. I check the exim logs, and the messages 
look like they are not even being submitted to the mail service (there is no 
record of them).

I didn't change my RT_SiteConfig.pm file at all... though I have spent several 
hours, after discovering this problem, playing with options to try to jog it 
back into sending email. Nothing works. Of course.

Can someone point me in the right direction here?

Thank you!


Here is my current config:

Set($LDAPHost, 'domaincontroller.mycompany.com');
Set($ExternalAuthPriority,  [   'My_LDAP',
]
);
Set( @Plugins, qw(RT::Authen::ExternalAuth) );
Set($ExternalInfoPriority,  [   'My_LDAP'
]
);
Set($ExternalServiceUsesSSLorTLS,0);
Set($AutoCreateNonExternalUsers,0);
Set($ExternalAuthPriority,['My_LDAP','My_Oracle','SecondaryLDAP','Other-DB']);
'type'  
=  'ldap',
'server'
=  'domaincontroller.mycompany.com',
'user'  
=  'rtu...@mycompany.com',
'pass'  
  =  'password',
'base'  
=  'ou=COMPANY USERS,dc=mycompany,dc=com',
'filter'
=  '((ObjectCategory=User)(ObjectClass=Person))',
'd_filter'  
=  '',
'tls'   
=  1,
'ssl_version'   
=  3,
'net_ldap_args' 
= [version =  3   ],
'attr_match_list'   
= ['Name',

'EmailAddress',

'RealName',

'WorkPhone',

'Address2'

],
'attr_map'  
=  {   'Name' = 'sAMAccountName',

'EmailAddress' = 'mail',

'Organization' = 'physicalDeliveryOfficeName',

'RealName' = 'cn',

'ExternalAuthId' = 'sAMAccountName',

'Gecos' = 'sAMAccountName',

'WorkPhone' = 'telephoneNumber',

'Address1' = 'streetAddress',

'City' = 'l',

'State' = 'st',

'Zip' = 'postalCode',

'Country' = 'co'

}
},
}
);
1;
my $zone = UTC;
$zone=`/bin/cat /etc/timezone`
if -f /etc/timezone;
chomp $zone;
Set($Timezone, $zone);
Set($rtname, 'rt.mycompany.com');
Set($Organization, 'RT.mycompany.com');
Set($CorrespondAddress , 'r...@rt.mycompany.com');
Set($CommentAddress , 

[rt-users] using date calcs in reports

2015-07-05 Thread Chris Herrmann
Hi all,

I can currently export a list of tickets with most of the data I need like
this:

rt list queue = 'myqueue' and (  ( Status = 'open' or Status = 'new') OR
(  Resolved  '$startdate' ) ) -f
id,subject,status,timeworked,requestors,created,started,
lastupdated,resolved  /tmp/report.tsv

Now... what I'd like to do is calculate the difference between Created 
Started... I'm pretty sure that Date::Calc  -  Delta_DHMS will give me what
I want... but I'm not sure how to use this in the query above. Is that even
possible?

I know that there's an RT::Extension::SLA extension which I will also play
with in case it exposes some additional fields that give me the info I want
automagically... but figured I'd ask in case there is an easy way of using
this bit of perl to put the value I want into the output file in one step.

Thanks!

Chris


[rt-users] rt-crontool escalation

2015-02-22 Thread Chris Herrmann
Hi all,

I almost have rt-crontool escalation doing what I want, using the following
command:

rt-crontool --search RT::Search::FromSQL --search-arg 'Status = open or
Status = new' --action RT::Action::EscalatePriority --verbose --log info

I've used this rather than:

--search RT::Search::ActiveTicketsInQueue  --search-arg general

because you then need to pass in every single queue that you want it to
iterate over (in my case every queue).

Anyway - the escalation part is working - it's correctly increasing the
priority by the desired amounts. But... an unintended (but logical) side
effect of this is that when you look at a list of new / open tickets, the
Last Updated and Last Updated By are now of course the last time that
the escalation script was run, and the rtuser configured to run it.

The problem with this, is that it obscures what we actually want to see in
these lists - which is when did a human being last touch this ticket, and
who was it?.

So... is there either a way to modify the search results so that it shows
this, OR is there a way to modify rt-crontool so that it doesn't impact
these specific values for standard searches / ticket lists etc?

Thankyou!

Chris


Re: [rt-users] rt-crontool escalation

2015-02-22 Thread Chris Herrmann
Poor form, I know... but I think I might have found the answer:

rt-crontool --search RT::Search::FromSQL --search-arg 'Status = open or
Status = new' --action RT::Action::LinearEscalate --action-arg
UpdateLastUpdated: 0 --verbose --log info
https://www.bestpractical.com/docs/rt/latest/RT/Action/LinearEscalate.html

Now I just need to work out how to display the priority numerically in the
GUI so I can verify that it's working! BRB... :)

On 23 February 2015 at 17:13, Chris Herrmann chrisherrma...@gmail.com
wrote:

 Hi all,

 I almost have rt-crontool escalation doing what I want, using the
 following command:

 rt-crontool --search RT::Search::FromSQL --search-arg 'Status = open or
 Status = new' --action RT::Action::EscalatePriority --verbose --log info

 I've used this rather than:

 --search RT::Search::ActiveTicketsInQueue  --search-arg general

 because you then need to pass in every single queue that you want it to
 iterate over (in my case every queue).

 Anyway - the escalation part is working - it's correctly increasing the
 priority by the desired amounts. But... an unintended (but logical) side
 effect of this is that when you look at a list of new / open tickets, the
 Last Updated and Last Updated By are now of course the last time that
 the escalation script was run, and the rtuser configured to run it.

 The problem with this, is that it obscures what we actually want to see in
 these lists - which is when did a human being last touch this ticket, and
 who was it?.

 So... is there either a way to modify the search results so that it shows
 this, OR is there a way to modify rt-crontool so that it doesn't impact
 these specific values for standard searches / ticket lists etc?

 Thankyou!

 Chris



Re: [rt-users] rt-crontool escalation

2015-02-22 Thread Chris Herrmann
Hmm...

rt list -f id,priority doesn't show the priority changing (from the CLI) -
is there another way I can verify if it's actually working or if not... why
not?


[rt-users] Duplicate ticket detection at OnCreate

2015-01-19 Thread Chris Herrmann
Hi all,

we have many systems that generate emails on conditions (success, fail,
warn etc), and many of these will quite vocally notify you when something
goes wrong. So if you have 100 systems all emailing you every 5 minutes
about the same underlying problem... the queue rapidly gets out of control.

Are there any extensions / plugins / scrips etc that can be used to look
for duplicate tickets on creation? I know there's a Nagios plugin - but
these aren't Nagios tickets so you don't have a system changing state. In
this case the emails all have identical subject tags (like SUBJECT: Warning
backup failure on host(x)); occur within a short time interval but because
they're generated from a remote system none of them have an RT tag like
[myrtsystem #12345].

We currently manage it when it occurs by running the following:

rt list queue = 'myqueue' and status = 'new' and subject='My Broken
Ticket Subject' -i | rt edit - set status='deleted'

which works well (much faster than the webgui) but it would be nice if we
could simply delete them on incoming or merge them or something like that.

Thanks!

Chris


Re: [rt-users] Continued Migrations Questions

2014-12-13 Thread Chris Herrmann
Hi,

You're after a branded queue. Sorry don't have the doco to hand, but hopefully 
searching for that term will help. 

Regards,
--
Chris Herrmann
Far Edge
+612 84251400
+614 03393309
http://www.faredge.com.au

[rt-users] How to get comment text content from comment id

2014-11-27 Thread Chris Down

Hello,

I have a RT::Transaction that looks like this:

   [
  OldValue : ,
  NewValue : ,
  TimeTaken : 0,
  Creator : 1234,
  ObjectId : 2345,
  Type : Comment,
  Field : ,
  Created : 2011-11-03 18:02:56,
  id : 3456,
  Data : No Subject,
  ObjectType : RT::Ticket
   ]

I thought that the comment would be in NewValue, but it seems both 
OldValue and NewValue are blank.


How should I get the comment text? I looked through the API docs, but I 
couldn't find what I should use to do this. Any pointers in the right 
direction would be appreciated :-)


Thanks!

Chris


pgphvWUYA6s9G.pgp
Description: PGP signature


Re: [rt-users] How to get comment text content from comment id

2014-11-27 Thread Chris Down
Sorry, forgot to mention, I am running 3.8 and $transaction-content is 
unimplemented.


pgpwk77fn2g4L.pgp
Description: PGP signature


Re: [rt-users] How to get comment text content from comment id

2014-11-27 Thread Chris Down

Never mind, it should be -Content ;-)

All good now, thanks.


pgpn3NHVCHnrN.pgp
Description: PGP signature


[rt-users] Multiple Custom Fields menu items to split up custom fields

2014-11-17 Thread Chris Hall
Is there a way to make multiple menu items for custom fields, and then
split my custom fields into those separate menu items?

For example: A queue I'm working on will have around 30 custom fields. They
are topical, so they'd like to break it up into groups of about 4 or 5 with
a title on each. So in my mind instead of the red bar that says Custom
Fields on the ticket, there'd be like.. 4 or 5 of them with 4 or 5 custom
fields under each menu item when making a ticket.

Is this possible?


Re: [rt-users] Multiple Custom Fields menu items to split up custom fields

2014-11-17 Thread Chris Hall
This looks almost like what I want, but it looks like it's a global change.
I'm looking to only do this for tickets in a specified queue. Can Custom
Field Groupings do that?

On Mon, Nov 17, 2014 at 12:02 PM, Kevin Falcone falc...@bestpractical.com
wrote:

 On Mon, Nov 17, 2014 at 11:26:58AM -0500, Chris Hall wrote:
  Is there a way to make multiple menu items for custom fields, and then
 split my
  custom fields into those separate menu items?
 
  For example: A queue I'm working on will have around 30 custom fields.
 They are
  topical, so they'd like to break it up into groups of about 4 or 5 with
 a title
  on each. So in my mind instead of the red bar that says Custom Fields
 on the
  ticket, there'd be like.. 4 or 5 of them with 4 or 5 custom fields under
 each
  menu item when making a ticket.

 You've just described Custom Field Groupings, a new option in the 4.2
 series.

 http://bestpractical.com/docs/rt/latest/RT_Config.html#CustomFieldGroupings

 http://blog.bestpractical.com/2013/10/whats-new-in-42-grouping-custom-fields.html

 -kevin



[rt-users] Getting names/values for all custom fields attached to a ticket

2014-11-04 Thread Chris Down

Hello,

In the Perl API, how do I get the names/values of all custom fields 
attached to a ticket? I looked at the documentation, but I only see ways 
to check for custom fields globally, not how to get a list of all the 
custom fields that apply to a single ticket.


I am using 3.8.

Thanks!

Chris


pgpa_tyubbE4p.pgp
Description: PGP signature
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Getting names/values for all custom fields attached to a ticket

2014-11-04 Thread Chris Down

Hi Emmanuel,

Thanks for your great reply!

Emmanuel Lacour writes:

my $CustomFields = $Ticket-CustomFields;


This works, but I don't see it documented here[0]. Is that expected?

[0]: https://www.bestpractical.com/docs/rt/3.8/RT/Ticket.html


while (my $CustomField = $CustomFields-Next) {
   print $CustomField-Name.: .$CustomField-Content.\n;
}


This only partially works as Content is not a known method.

I also tried calling the custom field name as a method on the ticket 
object, since many other fields work that way, but that didn't work (no 
such method).


I will keep on looking, and if you have any other suggestions I would be 
very eager to hear them :-)


Thank you!

Chris


pgpKfrP08t_f2.pgp
Description: PGP signature
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Getting names/values for all custom fields attached to a ticket

2014-11-04 Thread Chris Down

I think I eventually found what I want[0]:

   $ticket-CustomFieldValuesAsString($custom_field_name);

However, on my version of RT this says:


RT::Ticket::CustomFieldValuesAsString Unimplemented in main. (rt-dump.pl line 
91)


Any ideas? :-)

0: 
http://bestpractical.com/docs/rt/3.8/RT/Record.html#CustomFieldValuesAsString-FIELD


pgpUDrVwPj81B.pgp
Description: PGP signature
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Getting names/values for all custom fields attached to a ticket

2014-11-04 Thread Chris Down

Emmanuel Lacour writes:

$ticket-FirstCustomFieldValue($custom_field_name);


Dude, that totally works! Thanks so much for your help, I owe you one!


pgpzWA9NU8ko8.pgp
Description: PGP signature
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


[rt-users] rt-users] Continued Migrations Questions -

2014-10-22 Thread Chris Herrmann
Hi Matt,

Yes you can do this on a per queue basis. My term for this is per queue
branding - I'm not sure if there's an official term for it. A disclaimer -
there are probably better / more efficient ways of doing this; I'm not an
expert but this is how we have it working.

So in a nutshell...

- Make sure the MTA will deliver messages for the desired addresses (e.g.
mynewqu...@mynewdomain.com -- mynewqueue ). In our case we have a forward
facing MTA, so it goes:

  mynewqu...@mynewdomain.com -- mynewqueuealias@myrthost --
rt-mailgate

- Create your queue, put in the email addresses as you normally would for
your standard RT queue
- then create queue specific templates to override the system wide ones.
For example:

Template Name: Autoreply
Template Content:
Sender: mynewqu...@mynewdomain.com
Reply-To: mynewqu...@mynewdomain.com
From: My New Queue mynewqu...@mynewdomain.com
Subject: My New Queue Support Case: {$Ticket-Subject}
RT-Attach-Message: yes

{$Transaction-Content()}

This means that the queue will send out replies with these values, instead
of the system wide defaults (which would normally pick up your queue
address for correspondence). You need the queue address so that things
actually work - for example so that mailgate can drop the tickets in the
queue.

Hopefully that makes sense and I haven't made too many egregious errors...

Cheers,

Chris
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


[rt-users] Admin Drop Down doesn't show for admin AD user or group.

2014-08-01 Thread SCHAFER Chris
So we have the following

Apache enable for authentication with Kerberos.
Ldap active directory importing data
A AD user and group that have been given all privs.
But They still don't have the admin menu.

So to make any changes I have to stop apache, run stand alone, and logon as 
root.

I have checked all the global privs check boxes for both the user and the group.

Neither seems to propagate the permissions.

Running latest RT.  On RHEL 6 latest.

Thoughts?  This is auth/AD setup is killing me.  This should be simpler.


-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

[rt-users] SSO Kerberos means I can't have logins from non Kerberos happy system?

2014-08-01 Thread SCHAFER Chris
Is it correct that if I have any users that need to type their password rather 
then pass their credentials I can't use AD/Win/Kerberos SSO?

I am looking at the two configs for apache method for admin.

I suppose I could do two front ends one for NTLM authentication and one for 
Kerberos.

Presuming I could at least get admin accounts to work.  I though the hard part 
of ticketing systems was the work flow configuration.

I think I remember RT being really great but I don't think I ever integrated 
it.  Just stand alone db.


-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

[rt-users] Question about generating a report

2014-07-08 Thread Chris Hall
Hello,

My rt users have hit me with a rather.. unusual request. I'm not exactly
sure how to get RT to do what they're asking.

Basically they want to generate a monthly report of times a comment was
made on tickets in a queue. This alone I'm almost able to achieve through a
mysql query. But they've thrown me a curve ball in that they also want
listed the value of a custom field. Basically what they're looking for is
something like this...

--
| Queue 1 | datetime | value of custom field |
| Queue 1 | datetime | value of custom field |
| Queue 1 | datetime | value of custom field |
| Queue 2 | datetime | value of custom field |
| Queue 3 | datetime | value of custom field |
| Queue 3 | datetime | value of custom field |
--

Could anybody give me any type of direction as to how I could get this
information from the database in the form of a mysql query?
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

[rt-users] t-users] File attachments corrupted after DB migration

2014-05-17 Thread Chris Herrmann
Hi Matthias,

I would guess that it might be the max packet size in your my.ini - look for 
the setting in the [mysqldump] section, and make sure it's suitably large. If 
you have fields larger  than this value then it will truncate the field when 
exporting.  I'm not sure if there's a corresponding setting in pg that you will 
need to tweak. 

Regards,
--
Chris Herrmann
Far Edge
+612 84251400
+614 03393309
http://www.faredge.com.au-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training

[rt-users] From Inbox to Ticket

2014-05-09 Thread Chris Herrmann
Hi, just take regular backups of your SQL server. If mail fails the sending 
party should retry. If your system is down for longer than the mail retry limit 
a) the sender will be notified by their mail server and b) presumably you will 
notice if your server is down for 5 days. 

One thing to watch out for that I have encountered previously is if the rt 
thread handling the incoming message runs out of memory and dies you will lose 
the message... But if my memory serves me right we saw this only on outbound 
correspondence (ie a ticket reply from rt to the requester), not inbound. 

Regards,
--
Chris Herrmann
Far Edge
+612 84251400
+614 03393309
http://www.faredge.com.au-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training

Re: [rt-users] Bad sendmail configuration

2014-04-04 Thread Chris Davies

On 25/03/14 16:24, GARCIA PEREZ, Alberto (Alberto)** CTR ** wrote:

I have just upgrade de RT from 3.6.6 to 4.0.4 I have an issue with the sendmail 
configuration. I try several tutorial but it doesn´t work for me.


Can you send ordinary emails from your server? Or are you expecting to 
use a different server to send your emails for you? You need to address 
this before adding RT into the mix.




Is the easy and best way to send users notifications?
How can I configure it?


What isn't working? What error message(s) do you get?

Chris



smime.p7s
Description: S/MIME Cryptographic Signature
-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training

Re: [rt-users] Issue Trying To Get AD Integration Working

2014-04-03 Thread Chris Davies

On 02/04/14 20:44, Jason Batchelor wrote:
I have been trying for sometime to get AD auth working correctly on my 
server. I've managed to get most of the way there I think but am 
consistently getting hung up on an error.



Set($ExternalSettings, {
'My_LDAP'   =  {
'type'  =  'ldap',
'server'=  'ldaps://example.company.org 
http://example.company.org',

'base'  =  'dc=x,dc=org',
'filter'=  '(objectClass=*)',
'd_filter'  = 
'(userAccountControl:1.2.840.113556.1.4.803:=2)',

'tls'   =  0,
'ssl_version'   =  3,
'net_ldap_args' = [ version =  3 ]
},
} );



Some questions:
- Do you have SSL configured on port tcp/636 for your AD? (It's not an 
out-of-the-box option.) We've dropped back to using mandatory TLS on 
tcp/389.
- Have you tried using something like ldapsearch to confirm that your 
connection parameters are correct?
- IME, AD requires authentication to bind to anything other than the 
base scope. Have you omitted this just for the email, or in its entirety?



The following is a configuration that works for me

'type' = 'ldap',
'server' = 'dc.example.org',
'user' = 'u...@example.org',
'pass' = 'secretpassword',
'base' = 'dc=example,dc=org',
'filter' = '(ObjectClass=User)',
'd_filter' = '(userAccountControl:1.2.840.113556.1.4.803:=2)',
'attr_match_list' = [ 'Name', 'EmailAddress', 'displayName' ],
'attr_map' = {
'Name' = 'sAMAccountName',
'EmailAddress' = 'mail',
'Organization' = 'physicalDeliveryOfficeName',
'RealName' = 'cn',
'ExternalAuthId' = 'sAMAccountName',
'Gecos' = 'sAMAccountName',
'WorkPhone' = 'telephoneNumber',
'Address1' = 'streetAddress',
'City' = 'l',
'State' = 'st',
'Zip' = 'postalCode',
'Country' = 'co',
},
# Permit domain prefix on username (EXAMPLE\user)
# 'ad_domain_prefix' = 'EXAMPLE',  # case insensitive
# 'ad_domain_required' = 'no', # { 'yes' | 'no' }
# 'ad_domain_separator' = '\\',# split here


Here are some URLs of configurations that according to my notes were 
useful at the time

- http://www.gossamer-threads.com/lists/rt/users/109309
- http://requesttracker.wikia.com/wiki/ExternalAuth
- /opt/rt4/local/plugins/RT-Authen-ExternalAuth/etc/RT_SiteConfig.pm
- /root/.cpan/build/RT-Authen-ExternalAuth-0.12-9Em3TJ/README

Regards,
Chris


smime.p7s
Description: S/MIME Cryptographic Signature
-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training

Re: [rt-users] Automatically Set Let this user be granted rights

2014-03-24 Thread Chris Ditri
Hi Jon,

Thank you for that.  I see what this is doing... a little different than I was 
thinking, but it sounds like it will work for me.

I did not see a package for debian wheezy to install this (I know I said 
squeeze... my mistake!).  So I installed using CPAN, though I am no perl guru 
by any stretch.

I think it is because of this that I'm running into the following error.  This 
is what happens when I run:   
/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/bin/rtldapimport
 --debug

Can't locate RT/Extension/LDAPImport.pm in @INC (@INC contains: 
/usr/local/share/request-tracker4/lib /usr/share/request-tracker4/lib 
/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/lib/RT/Extension/
 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 
/usr/local/lib/site_perl .) at 
/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/bin/rtldapimport
 line 28.
BEGIN failed--compilation aborted at 
/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/bin/rtldapimport
 line 28.

So I try to force the path by doing:
PERL5LIB=/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/lib/RT/Extension/
  
/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/bin/rtldapimport
 -debug

Which doesn't work any better.

Any idea on how to fix this?  Thank you.

-Chris




DISCLAIMER: This message, including all attachments and/or linked documents, is 
intended for the exclusive use of the individual or entity to which it is 
addressed and may contain privileged, proprietary and confidential information. 
You are hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited without permission from the author. This 
notice serves as a confidentiality marking for the purpose of any 
confidentiality or nondisclosure agreement. If this message has been received 
in error, please destroy the original message and all copies without reading it 
and notify Experi-Metal Inc. immediately via telephone at (586) 977-7800.

WARNING: This document may contain technical data whose export is restricted by 
the Arms Export Control Act (Title 22 U.S.C. 2751, et seq.) International 
Traffic in Arms Regulations (ITAR). Disclosure of any technical data to foreign 
persons without prior U.S. Government authorization is strictly prohibited. 
Violations of these laws and regulations are subject to severe criminal 
penalties.

Thank you very much for your cooperation.
-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training

[rt-users] Automatically Set Let this user be granted rights

2014-03-19 Thread Chris Ditri
Hello,

I am using RT 4.0.2, which is stable in Debian Squeeze.

I have external auth set to authenticate against AD.  The problem I'm running 
into is that people who are logging in with AD accounts do not have the Let 
this user be granted rights box automatically checked, and therefore, they are 
not getting the permissions that I have set to the everyone group.

I have set up the everyone group as per the docs so that they should be able 
create tickets and to search for tickets for which they are the requestor.  As 
it stands right now, AD users login, and they cannot do either (can't do 
anything, really).

In order to check this box, an AD user must first login. We have many end-users 
working 24/7 on 5 different shifts, there is no way to coordinate this, so I 
really need the system to just allow an AD user to inherit the permissions of 
the everyone group upon first login.

How can this be achieved?

Thank you.

-Chris

Christopher Ditri
Manager, Information Systems
Experi-Metal Inc.
6385 Wall Street
Sterling Heights, MI 48312
Phone: (586) 977-7800
Fax: (586) 977-6981
www.experi-metal.comhttp://www.experi-metal.com/

[cid:image002.png@01CF4371.FA218560]http://www.experi-metal.com/


Connnect with Us!  [cid:image003.png@01CF436A.2A49D5B0] 
http://www.twitter.com/experimetalinc   [cid:image004.png@01CF436A.2A49D5B0] 
http://www.facebook.com/pages/Experi-Metal-INC/150560074972339?v=app_4949752878#!/pages/Experi-Metal-INC/150560074972339?v=wall
   [cid:image005.png@01CF436A.2A49D5B0] 
http://www.linkedin.com/companies/73915













DISCLAIMER: This message, including all attachments and/or linked documents, is 
intended for the exclusive use of the individual or entity to which it is 
addressed and may contain privileged, proprietary and confidential information. 
You are hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited without permission from the author. This 
notice serves as a confidentiality marking for the purpose of any 
confidentiality or nondisclosure agreement. If this message has been received 
in error, please destroy the original message and all copies without reading it 
and notify Experi-Metal Inc. immediately via telephone at (586) 977-7800.

WARNING: This document may contain technical data whose export is restricted by 
the Arms Export Control Act (Title 22 U.S.C. 2751, et seq.) International 
Traffic in Arms Regulations (ITAR). Disclosure of any technical data to foreign 
persons without prior U.S. Government authorization is strictly prohibited. 
Violations of these laws and regulations are subject to severe criminal 
penalties.

Thank you very much for your cooperation.
inline: image003.pnginline: image004.pnginline: image005.pnginline: image002.png-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training

[rt-users] Requestor Dashboard

2014-03-18 Thread Chris Ditri
Hi,

I'm new to RT.  I have it installed on a Debian Squeeze system, and it seems to 
be working (I'm using 4.0.2 which is stable in Squeeze).

I have my RT setup to authenticate against AD.  My plan is that all technicians 
will have local accounts in RT, and all the end-users will fall-back to AD.  
External Authentication seems to be working, so I think I'm well on my way in 
this regard.

What I'm trying to do is set up a very simple interface for our end-users.  
When they log in, I want them to be presented with a dashboard that has a two 
frames:  one the lets them open a ticket (which QuickCreate does), and one that 
shows them a list of tickets for which they were/are the requestor (so they can 
follow the progress of their open issues).

The latter is what is causing me difficulty.  I'm looking for functionality 
similar to My Tickets, except I want to search on requestor, not on owner.

I have been googling this for some time now (3 days), and I'm not finding any 
answers.  I think this is because there is so much out-dated information out 
there.

Can someone please point me in the right direction here?

Thank you.

-Chris

Christopher Ditri
Manager, Information Systems
Experi-Metal Inc.
6385 Wall Street
Sterling Heights, MI 48312
Phone: (586) 977-7800
Fax: (586) 977-6981
www.experi-metal.comhttp://www.experi-metal.com/

[cid:image002.png@01CF42A1.E6E726B0]http://www.experi-metal.com/


Connnect with Us!  [cid:image003.png@01CF429F.AD50F130] 
http://www.twitter.com/experimetalinc   [cid:image004.png@01CF429F.AD50F130] 
http://www.facebook.com/pages/Experi-Metal-INC/150560074972339?v=app_4949752878#!/pages/Experi-Metal-INC/150560074972339?v=wall
   [cid:image005.png@01CF429F.AD50F130] 
http://www.linkedin.com/companies/73915













DISCLAIMER: This message, including all attachments and/or linked documents, is 
intended for the exclusive use of the individual or entity to which it is 
addressed and may contain privileged, proprietary and confidential information. 
You are hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited without permission from the author. This 
notice serves as a confidentiality marking for the purpose of any 
confidentiality or nondisclosure agreement. If this message has been received 
in error, please destroy the original message and all copies without reading it 
and notify Experi-Metal Inc. immediately via telephone at (586) 977-7800.

WARNING: This document may contain technical data whose export is restricted by 
the Arms Export Control Act (Title 22 U.S.C. 2751, et seq.) International 
Traffic in Arms Regulations (ITAR). Disclosure of any technical data to foreign 
persons without prior U.S. Government authorization is strictly prohibited. 
Violations of these laws and regulations are subject to severe criminal 
penalties.

Thank you very much for your cooperation.
inline: image003.pnginline: image004.pnginline: image005.pnginline: image002.png-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training

[rt-users] Display Owner in SelfService

2013-12-04 Thread Chris Lasater
Is it possible to have the owner displayed in the Self Service page, so
that people know who owns their ticket?
Chris


Re: [rt-users] trying to calculate time worked per transaction / ticket using SQL

2013-12-03 Thread Chris Herrmann
Hi Tom,

Thanks for your reply. A couple of reasons why I've started this way -
primarily probably familiarity. But also:

- Speed - database access is significantly faster than REST
- I can run queries against a replica of the database, thereby not
interfering with the production system
- It fits better with how we access and aggregate data from other systems
(i.e. SQL is the only common language that they all share)
- We already have several systems pulling data from RT via SQL since 2002
- My SQL skills are significantly better than my (non-existent) Perl skills
so trying to access data as data makes more sense to me - I've been stymied
before by Perl when trying to query using RTs built-in query engine for
example. I don't know but I would guess that REST will also use perl syntax
for querying?

If using REST is it possible to make use of query caches etc? I realise
that under the hood the sql engine will still have it's own indexes /
query caches / etc, but curious if REST also has any of this?

Regards,

Chris


On 3 December 2013 11:07, Tom Lahti tla...@dmsolutions.com wrote:

  Why don’t use you want to use REST?  You’re shooting yourself in the
 foot; when you upgrade RT, your queries will no longer work and will have
 to be updated.  If you use the REST interface, you can upgrade with
 impunity and not have to worry about your queries not working anymore.

  —
 Tom

  On Dec 1, 2013, at 11:18 PM, Chris Herrmann chrisherrma...@gmail.com
 wrote:

   Hi all,

  Just bumping this one - does anyone have any suggestions? Am I
 approaching this the wrong way? Using MySQL btw if that makes a difference.

  Thanks,

  Chris

 -- Forwarded message --
 From: Chris Herrmann chrisherrma...@gmail.com
 Date: 24 November 2013 22:11
 Subject: trying to calculate time worked per transaction / ticket using SQL
 To: rt-users@lists.bestpractical.com


   Hi all,

 I'm trying to put together a SQL query to present a view, that allows
 summaries of data to be performed in reporting tools. I have a feeling that
 this question has been asked before and answered, but my google-fu is
 failing me, so apologies in advance... I've only found questions about
 using RT-REST, for example (which I don't want to do).

  I'm using RT 3.8.7 (yes I know it's old and it's in the pipeline to
 upgrade but we have a bunch of other systems that are integrated with RT
 and so it's not a simple just upgrade RT project for us.

 Anyway, what I want to end up with is the following fields:

  Tickets.EffectiveID
 Queues.Name
  Tickets.Owner
  Transactions.Creator
  Transactions.TimeTaken
  Transactions.Created
  Tickets.Status
  Tickets.Started
  Tickets.Resolved
  Tickets.Created
  Transactions.Type

  So i can easily point various reports at it and work from there.

  the sql I'm using is...
 SELECT
 Tickets.EffectiveId AS TicketID,
 Queues.`Name` AS Queue,
 Tickets.`Owner` AS OwnerID,
 Transactions.Creator AS TransactionCreatorID,
 Transactions.TimeTaken AS TimeTaken,
 Transactions.Created AS TransactionCreated,
 Tickets.`Status` AS TicketStatus,
 Tickets.Started AS TicketStarted,
 Tickets.Resolved AS TicketResolved,
 Tickets.Created AS TicketCreated,
 Transactions.Type AS TransactionType
 FROM
 Tickets
 JOIN Transactions ON ((Transactions.ObjectId = Tickets.id)))
 JOIN Queues ON ((Queues.id = Tickets.Queue)

  but I'm not getting the results I expect...

  or even something far simpler like:
 SELECT
 Transactions.Creator,
 sum(Transactions.TimeTaken/60) AS TimeInHours,
 Month(Transactions.Created) AS TransactionMonth,
 Year(Transactions.Created) AS TransactionYear
 FROM
 Tickets JOIN Transactions ON Transactions.ObjectId = Tickets.id
 where Transactions.Created  2013-10-01
 group by Creator, Month(Transactions.Created), Year(Transactions.Created)

  just to try and compare the numbers... that I'm seeing with
 timeworked.pl...

  Now my problem is that the numbers I'm getting don't match those
 returned by REST - for example using the timeworked.pl script..

  Is there a definitive SQL somewhere that I should use to return
 these?... and any pointers on what transaction types I should be avoiding
 or how to avoid double counting merged transactions I would be very
 grateful...

  Thankyou!

  Chris




 This e-mail message is confidential and is intended solely for the use of
 the addressee(s) named above. If you are not the intended recipient, or the
 person responsible to deliver it to the recipient, you are hereby advised
 that any dissemination, distribution or copying of this communication is
 prohibited. If you have received this e-mail in error, please notify the
 sender by return e-mail. Thank you.



[rt-users] Fwd: trying to calculate time worked per transaction / ticket using SQL

2013-12-01 Thread Chris Herrmann
Hi all,

Just bumping this one - does anyone have any suggestions? Am I approaching
this the wrong way? Using MySQL btw if that makes a difference.

Thanks,

Chris

-- Forwarded message --
From: Chris Herrmann chrisherrma...@gmail.com
Date: 24 November 2013 22:11
Subject: trying to calculate time worked per transaction / ticket using SQL
To: rt-users@lists.bestpractical.com


Hi all,

I'm trying to put together a SQL query to present a view, that allows
summaries of data to be performed in reporting tools. I have a feeling that
this question has been asked before and answered, but my google-fu is
failing me, so apologies in advance... I've only found questions about
using RT-REST, for example (which I don't want to do).

I'm using RT 3.8.7 (yes I know it's old and it's in the pipeline to upgrade
but we have a bunch of other systems that are integrated with RT and so
it's not a simple just upgrade RT project for us.

Anyway, what I want to end up with is the following fields:

Tickets.EffectiveID
Queues.Name
Tickets.Owner
Transactions.Creator
Transactions.TimeTaken
Transactions.Created
Tickets.Status
Tickets.Started
Tickets.Resolved
Tickets.Created
Transactions.Type

So i can easily point various reports at it and work from there.

the sql I'm using is...
SELECT
Tickets.EffectiveId AS TicketID,
Queues.`Name` AS Queue,
Tickets.`Owner` AS OwnerID,
Transactions.Creator AS TransactionCreatorID,
Transactions.TimeTaken AS TimeTaken,
Transactions.Created AS TransactionCreated,
Tickets.`Status` AS TicketStatus,
Tickets.Started AS TicketStarted,
Tickets.Resolved AS TicketResolved,
Tickets.Created AS TicketCreated,
Transactions.Type AS TransactionType
FROM
Tickets
JOIN Transactions ON ((Transactions.ObjectId = Tickets.id)))
JOIN Queues ON ((Queues.id = Tickets.Queue)

but I'm not getting the results I expect...

or even something far simpler like:
SELECT
Transactions.Creator,
sum(Transactions.TimeTaken/60) AS TimeInHours,
Month(Transactions.Created) AS TransactionMonth,
Year(Transactions.Created) AS TransactionYear
FROM
Tickets JOIN Transactions ON Transactions.ObjectId = Tickets.id
where Transactions.Created  2013-10-01
group by Creator, Month(Transactions.Created), Year(Transactions.Created)

just to try and compare the numbers... that I'm seeing with timeworked.pl...

Now my problem is that the numbers I'm getting don't match those returned
by REST - for example using the timeworked.pl script..

Is there a definitive SQL somewhere that I should use to return these?...
and any pointers on what transaction types I should be avoiding or how to
avoid double counting merged transactions I would be very grateful...

Thankyou!

Chris


[rt-users] AD domains with RT::Authen::ExternalAuth

2013-11-29 Thread Chris Davies
At the moment using RT::Authen::ExternAuth for LDAP authentication to 
Active Directory it's not possible to use DOMAIN\user syntax. This is at 
odds with much of the other (Windows based) infrastructure we use, and 
it confuses our users. Until recently we've been trying to mitigate the 
issue with a message that reminds people to omit the domain part, but 
it's not a clean solution and has been bugging me.


I've finally got around to making some changes to 
RT::Authen::ExternalAuth that allows me to define the Windows domain. 
This isn't a true Forest/Trust model but it's sufficient for us. The 
change is, I believe, backwards compatible with existing installations 
as the domain can be an optional component.


Examples:
DOMAIN\user - succeeds if DOMAIN is required and matches, and 
user is authenticated in LDAP
user - succeeds if DOMAIN is optional, and user is authenticated 
in LDAP

OTHERDOMAIN\user - fails if DOMAIN is required but does not match
DOMAIN\otheruser - fails if DOMAIN matches, but otheruser is not 
authenticated in LDAP


In order to support this I've added three new configuration elements in 
RT_Site_Config.pm, settable per LDAP configuration section:

'ad_domain_prefix' = 'DOMAIN',# is case insensitive
'ad_domain_required' = 'no',# { 'yes' | 'no' }
'ad_domain_separator' = '\\',# split domain\user with this 
character



Are the patches something that would be useful to share here? I've tried 
emailing the contact in the RT::Authen::ExternalAuth but heard nothing back.


Chris



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [rt-users] Upgrading from 4.0.8 to 4.2.1 missing dashboards

2013-11-29 Thread Chris Black
Anyone have any suggestions on this? I've tried restoring my database and
running the make upgrade-database again but the same thing happens. It
seems like my user loses all permissions, etc?

I even tried enabling the root user and it's the same thing, just a list of
open tickets, no options, etc.

Thanks,
Chris Black
IT Manager
Gourmet Trading
HelpDesk: 310-216-1234
chr...@gourmettrading.net


On Thu, Nov 28, 2013 at 11:48 AM, Chris Black chr...@gourmettrading.netwrote:

 Hi everyone,

 I just upgraded from 4.0.8 to 4.2.1 this morning and when I log in with my
 username which was full admin. When I log in now, I am only seeing my list
 of open tickets. I can't find any dashboard options, admin options, etc.

 I did run make upgrade-database and there were no errors.

 Did I miss part of the upgrade process?




[rt-users] Error while running make fixdeps on plack

2013-11-28 Thread Chris Black
Hi all,

I am trying to build a new server with RT and am having some problems
getting make fixdeps to run completely.


It seems like it's failing on PLACK:

arning: Prerequisite 'Plack = 0.992' for 'KAZUHO/Starlet-0.21.tar.gz'
failed when processing 'MIYAGAWA/Plack-1.0030.tar.gz' with 'writemakefile
= NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512'.
Continuing, but chances to succeed are limited.
make[1]: Entering directory `/root/.cpan/build/Starlet-0.21-q_ryrV'
cp lib/Starlet/Server.pm blib/lib/Starlet/Server.pm
cp lib/Starlet.pm blib/lib/Starlet.pm
cp lib/Plack/Handler/Starlet.pm blib/lib/Plack/Handler/Starlet.pm
Manifying blib/man3/Starlet.3pm
make[1]: Leaving directory `/root/.cpan/build/Starlet-0.21-q_ryrV'
  KAZUHO/Starlet-0.21.tar.gz
  /usr/bin/make -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent
state
Running make test
make[1]: Entering directory `/root/.cpan/build/Starlet-0.21-q_ryrV'
PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -MTest::Harness
-e undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib',
'blib/arch') t/*.t
t/00base.t . 1/? Use of uninitialized value $plackup in
exec at t/00base.t line 34.
start_server (pid:2164) starting now...
starting new worker 2165
Can't exec : No such file or directory at
/usr/local/share/perl5/Server/Starter.pm line 358.
failed to exec No such file or directory
new worker 2165 seems to have failed to start, exit status:65280
starting new worker 2166


Can anyone help out with this?

Thanks.


Re: [rt-users] Error while running make fixdeps on plack

2013-11-28 Thread Chris Black


 You've shown the error for Starlet, which depends on Plack.  Please show
 the output of 'cpan install Plack'

  - Alex


 Here's the output from that command.

Plack-1.0030/benchmarks/fcgi.pl
CPAN: File::Temp loaded ok (v0.2304)

  CPAN.pm: Going to build M/MI/MIYAGAWA/Plack-1.0030.tar.gz

Can't locate File/ShareDir/Install.pm in @INC (@INC contains:
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
Makefile.PL line 9.
BEGIN failed--compilation aborted at Makefile.PL line 9.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
Warning (usually harmless): 'YAML' not installed, will not store persistent
state
  MIYAGAWA/Plack-1.0030.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Could not read '/root/.cpan/build/Plack-1.0030-RDn9Lg/META.yml'. Falling
back to other methods to determine prerequisites
Failed during this command:
 MIYAGAWA/Plack-1.0030.tar.gz : writemakefile NO
'/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512


Re: [rt-users] Error while running make fixdeps on plack

2013-11-28 Thread Chris Black
On Thu, Nov 28, 2013 at 9:52 AM, Alex Vandiver ale...@bestpractical.comwrote:

 On Thu, 2013-11-28 at 09:30 -0800, Chris Black wrote:
CPAN.pm: Going to build M/MI/MIYAGAWA/Plack-1.0030.tar.gz
 
 
  Can't locate File/ShareDir/Install.pm in @INC

 Apparently your version of CPAN.pm is too old to understand
 configure_requires.  What does `cpan -v` report?

 You can work around this by running 'cpan install
 File::ShareDir::Install' before running 'make fixdeps'
  - Alex


 Hi thanks!

[root@localhost rt-4.2.1]# cpan -v
/usr/bin/cpan script version 1.9, CPAN.pm version 1.9402

Running that install manually helped, but now I am having problems with the
GPG missing dependencies:
GnuPG::Interface ...MISSING

Running that manually is giving me this:
Failed 20/20 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 2
  ALEXMV/GnuPG-Interface-0.46.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports ALEXMV/GnuPG-Interface-0.46.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent
state
Running make install
  make test had returned bad status, won't install without force
Could not read '/root/.cpan/build/Mouse-2.1.0-m4Tq8q/META.yml'. Falling
back to other methods to determine prerequisites
Failed during this command:
 GFUJI/Mouse-2.1.0.tar.gz : writemakefile NO
'/usr/bin/perl Build.PL --installdirs site' returned status 65280
 SARTAK/Any-Moose-0.21.tar.gz : make_test NO
 ALEXMV/GnuPG-Interface-0.46.tar.gz   : make_test NO


Re: [rt-users] Error while running make fixdeps on plack

2013-11-28 Thread Chris Black
On Nov 28, 2013, at 10:08 AM, Alex Vandiver ale...@bestpractical.com wrote:

 On Thu, 2013-11-28 at 09:59 -0800, Chris Black wrote:
 
 [root@localhost rt-4.2.1]# cpan -v
 /usr/bin/cpan script version 1.9, CPAN.pm version 1.9402
 
 You may wish to update CPAN: 'cpan install CPAN' 
 Or install and use cpanm:
  cpan install App::cpanminus
  RT_FIX_DEPS_CMD=cpanm make fixdeps
 
 
 Failed during this command:
 GFUJI/Mouse-2.1.0.tar.gz : writemakefile NO
 '/usr/bin/perl Build.PL --installdirs site' returned status 65280
 SARTAK/Any-Moose-0.21.tar.gz : make_test NO
 ALEXMV/GnuPG-Interface-0.46.tar.gz   : make_test NO
 
 Mouse is the dependency that failed to install.  Show the logs from
 attempting to install that.
 - Alex
 
 

Doing the CPAN upgrade fixed it! Thanks! :)


[rt-users] Upgrading from 4.0.8 to 4.2.1 missing dashboards

2013-11-28 Thread Chris Black
Hi everyone,

I just upgraded from 4.0.8 to 4.2.1 this morning and when I log in with my
username which was full admin. When I log in now, I am only seeing my list
of open tickets. I can't find any dashboard options, admin options, etc.

I did run make upgrade-database and there were no errors.

Did I miss part of the upgrade process?


[rt-users] trying to calculate time worked per transaction / ticket using SQL

2013-11-24 Thread Chris Herrmann
Hi all,

I'm trying to put together a SQL query to present a view, that allows
summaries of data to be performed in reporting tools. I have a feeling that
this question has been asked before and answered, but my google-fu is
failing me, so apologies in advance... I've only found questions about
using RT-REST, for example (which I don't want to do).

I'm using RT 3.8.7 (yes I know it's old and it's in the pipeline to upgrade
but we have a bunch of other systems that are integrated with RT and so
it's not a simple just upgrade RT project for us.

Anyway, what I want to end up with is the following fields:

Tickets.EffectiveID
Queues.Name
Tickets.Owner
Transactions.Creator
Transactions.TimeTaken
Transactions.Created
Tickets.Status
Tickets.Started
Tickets.Resolved
Tickets.Created
Transactions.Type

So i can easily point various reports at it and work from there.

the sql I'm using is...
SELECT
Tickets.EffectiveId AS TicketID,
Queues.`Name` AS Queue,
Tickets.`Owner` AS OwnerID,
Transactions.Creator AS TransactionCreatorID,
Transactions.TimeTaken AS TimeTaken,
Transactions.Created AS TransactionCreated,
Tickets.`Status` AS TicketStatus,
Tickets.Started AS TicketStarted,
Tickets.Resolved AS TicketResolved,
Tickets.Created AS TicketCreated,
Transactions.Type AS TransactionType
FROM
Tickets
JOIN Transactions ON ((Transactions.ObjectId = Tickets.id)))
JOIN Queues ON ((Queues.id = Tickets.Queue)

but I'm not getting the results I expect...

or even something far simpler like:
SELECT
Transactions.Creator,
sum(Transactions.TimeTaken/60) AS TimeInHours,
Month(Transactions.Created) AS TransactionMonth,
Year(Transactions.Created) AS TransactionYear
FROM
Tickets JOIN Transactions ON Transactions.ObjectId = Tickets.id
where Transactions.Created  2013-10-01
group by Creator, Month(Transactions.Created), Year(Transactions.Created)

just to try and compare the numbers... that I'm seeing with timeworked.pl...

Now my problem is that the numbers I'm getting don't match those returned
by REST - for example using the timeworked.pl script..

Is there a definitive SQL somewhere that I should use to return these?...
and any pointers on what transaction types I should be avoiding or how to
avoid double counting merged transactions I would be very grateful...

Thankyou!

Chris


Re: [rt-users] RT 4.2 and ownership of tickets after comments

2013-11-06 Thread Chris Hall
I'm officially stumped.  This apparently is an issue that doesn't effect
everybody, but the people it does I can't pin down why.  I did a separate
RT installation on another server and verified that my scrip works.  This
wasn't a problem before 4.2, so it must be some sort of fail safe I'm
guessing.  So here's what I've noticed..

The logs show a scrip firing twice that emails the owner when the owner
changes.
In the history it shows RT forcefully changing the owner.
The next thing that happens is the new owner gives the ticket to the old
owner.
Some people in some queues are not affected.

I've double, triple checked permissions on people and groups.  I've re-read
through all my scrips and nothing except my scrip is changing ownership.
 No queues have any special scrips, they are all global.  I'm at a complete
loss what could be causing this anomaly.  Is there somewhere I can go or
something I can turn on that will enable like a debug mode so I can see
what's happening on a step by step basis when something happens like a
comment?


On Tue, Nov 5, 2013 at 3:45 PM, Alex Vandiver ale...@bestpractical.comwrote:

 On Tue, 2013-11-05 at 15:36 -0500, Chris Hall wrote:
  Still haven't found anything.  What's odd is that it's not a problem
  w/ the scrip.  The scrip still works.  RT force changes the owner to
  whoever made the comment.  It even shows up in the history.  But it's
  like the very next thing that happens is the new owner gives the
  ownership back to the original owner.  I can't seem to figure out why.

 Look at your logs; I suspect you have a second scrip which is firing to
 give it back.
  - Alex





Re: [rt-users] RT 4.2 and ownership of tickets after comments

2013-11-06 Thread Chris Hall
To better illustrate what I'm seeing, here's a screen cap.
http://i.imgur.com/FTlLGYO.jpg
On the top is what I see when I tried to comment on a ticket.
On the bottom is a clip from the history, where you can see one person
commenting, RT changing ownership to them, and then they immediately return
ownership.

I have a theory as to what might be happening.  Could it be possible that
the scrips are processed before the changes?  If so, perhaps my scrip is
changing ownership of the ticket, and then RT sees on the right in the
Ticket and Transaction section a different owner than the ticket now has,
and the user changes it?

This is all I can really find in the log as far as anything useful.  Below
you can see that scrip 2 fires off when my scrip forcefully changes
ownership.  It then immediately fires off again because the user has given
ownership back to the original owner.

I've noticed that if I revoke the ModifyTicket permission the RT scrip will
change the owner to them, and then they are aunable to change the owner
back.  The result at the top is a message saying the comment was added,
followed by a line that reads Permission Denied.  As far as I can tell,
this achieves the desired effect.  However, a lot of people aren't happy
about doing it this way.

I just tried removing all scrips from the queue except my scrip that
changes owner, and the result was the same.  So it's not a problem w/
another scrip that's running.  Below is a log snippet.

Nov  6 09:56:39 rt RT: [30613]
rt-4.2.0-30613-1383749799-1974.57417-...@xxx.com #57417/999085 - Scrip 8
On Comment Notify AdminCcs as Comment
Nov  6 09:56:39 rt RT: [30613]
rt-4.2.0-30613-1383749799-1974.57417-...@xxx.com sent  Bcc: x...@xxx.com,
x...@xxx.com
Nov  6 09:56:39 rt RT: [30613]
rt-4.2.0-30613-1383749799-497.57417-...@xxx.com #57417/999085 - Scrip 9
On Comment Notify Other Recipients as Comment
Nov  6 09:56:39 rt RT: [30613]
rt-4.2.0-30613-1383749799-497.57417-...@xxx.com No recipients found. Not
sending.
Nov  6 09:56:39 rt RT: [30613] Auto assign ticket #57417 to user #230355
Nov  6 09:56:39 rt RT: [30613]
rt-4.2.0-30613-1383749799-436.57417-...@xxx.com #57417/999087 - Scrip 2
On Owner Change Notify Owner
Nov  6 09:56:39 rt RT: [30613]
rt-4.2.0-30613-1383749799-436.57417-...@xxx.com No recipients found. Not
sending.
Nov  6 09:56:39 rt RT: [30613]
rt-4.2.0-30613-1383749799-1566.57417-...@xxx.com #57417/999089 - Scrip 2
On Owner Change Notify Owner
Nov  6 09:56:39 rt RT: [30613]
rt-4.2.0-30613-1383749799-1566.57417-...@xxx.com sent  To: x...@xxx.com
Nov  6 09:56:39 rt RT: [30613] Use of uninitialized value in concatenation
(.) or string at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 1793.
Nov  6 09:56:39 rt RT: [30613] More than 50 possible Owners found for Queue
41; switching to autocompleter


On Wed, Nov 6, 2013 at 10:54 AM, Asif Iqbal vad...@gmail.com wrote:




 On Wed, Nov 6, 2013 at 10:04 AM, Chris Hall hir...@gmail.com wrote:

 I'm officially stumped.  This apparently is an issue that doesn't effect
 everybody, but the people it does I can't pin down why.  I did a separate
 RT installation on another server and verified that my scrip works.  This
 wasn't a problem before 4.2, so it must be some sort of fail safe I'm
 guessing.  So here's what I've noticed..

 The logs show a scrip firing twice that emails the owner when the owner
 changes.
 In the history it shows RT forcefully changing the owner.
 The next thing that happens is the new owner gives the ticket to the
 old owner.
 Some people in some queues are not affected.

 I've double, triple checked permissions on people and groups.  I've
 re-read through all my scrips and nothing except my scrip is changing
 ownership.  No queues have any special scrips, they are all global.  I'm at
 a complete loss what could be causing this anomaly.  Is there somewhere I
 can go or something I can turn on that will enable like a debug mode so I
 can see what's happening on a step by step basis when something happens
 like a comment?



 Some log related to one of this event would help, even if you have to
 sanitize it first.
 But make sure you provide complete logs, so no scrip action gets skipped
 while you are
 pasting it here.





 On Tue, Nov 5, 2013 at 3:45 PM, Alex Vandiver 
 ale...@bestpractical.comwrote:

 On Tue, 2013-11-05 at 15:36 -0500, Chris Hall wrote:
  Still haven't found anything.  What's odd is that it's not a problem
  w/ the scrip.  The scrip still works.  RT force changes the owner to
  whoever made the comment.  It even shows up in the history.  But it's
  like the very next thing that happens is the new owner gives the
  ownership back to the original owner.  I can't seem to figure out why.

 Look at your logs; I suspect you have a second scrip which is firing to
 give it back.
  - Alex






 --
 Asif Iqbal
 PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?




Re: [rt-users] RT 4.2 and ownership of tickets after comments

2013-11-06 Thread Chris Hall
Fixed

It was as I suspected. (I think)  The scrips were running and changing the
owner of the ticket, and then RT was applying everything to the ticket
update, including the Ticket and Transaction section afterwards.  Since
this section holds a field marked Owner and is defaultly populated by the
old owner, RT was reading that value and using it to re-set the owner after
the scrip had ran.

I'm not a programmer, so my fix is quick and dirty.  But this is what I
did.  I removed the following code from Update.html

{   name = 'Owner',
comp = '/Elements/SelectOwner',
args = {
Name = Owner,
TicketObj= $TicketObj,
QueueObj = $TicketObj-QueueObj,
DefaultLabel = loc([_1] (Unchanged),
$m-scomp('/Elements/ShowUser', User = $TicketObj-OwnerObj)),
Default  = $ARGS{'Owner'}
}
},

This removed the owner field from the comment page.  My users never change
the owner here anyways.

I know changing this file in this way means in the future upgrades will
probably overwrite my changes, but for now everybody is happy and I just
have to be aware that this fix is needed if it's ever overwritten by an
upgrade.


On Wed, Nov 6, 2013 at 2:02 PM, Asif Iqbal vad...@gmail.com wrote:


 On Wed, Nov 6, 2013 at 12:20 PM, Chris Hall hir...@gmail.com wrote:

 Nov  6 09:56:39 rt RT: [30613]
 rt-4.2.0-30613-1383749799-436.57417-...@xxx.com #57417/999087 - Scrip
 2 On Owner Change Notify Owner
 Nov  6 09:56:39 rt RT: [30613]
 rt-4.2.0-30613-1383749799-436.57417-...@xxx.com No recipients found.
 Not sending.
 Nov  6 09:56:39 rt RT: [30613]
 rt-4.2.0-30613-1383749799-1566.57417-...@xxx.com #57417/999089 - Scrip
 2 On Owner Change Notify Owner
 Nov  6 09:56:39 rt RT: [30613]
 rt-4.2.0-30613-1383749799-1566.57417-...@xxx.com sent  To: x...@xxx.com



 This log does not really show the event when RT forcibly changed the
 owner. You might need to provide a fresh complete log for a new event.

 Also, do you might have any scrip in Scrips which apply to all queues
 and Current Scrips section? A snapshot of /Admin/Queues/Scrips.html?id=XX
 where XX is the ``id'' of the queue might show that.

 Please include all when you reply.


 --
 Asif Iqbal
 PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?




[rt-users] Question about 4.2 and setting the owner

2013-11-05 Thread Chris Hall
Hello all,

I have somewhat of an aesthetics question about RT 4.2.  Back in 4.0, when
my helpdesk people went to create a ticket, etc, they would sometimes need
to change the owner in the basics field.  In 4.0 it was a dropdown.  In
4.2, it's now a typed auto-completing field. Is there a way to revert to
the dropdown easily?


[rt-users] RT 4.2 and ownership of tickets after comments

2013-11-05 Thread Chris Hall
I'm noticing a strange problem after my upgrade from 4.0.0 to 4.2.  Before
my upgrade I'd made a global script that would have the user attempt to
take ownership of a ticket after commenting on it.  This is still working
after the upgrade.  However, now it is immediately given back to the
previous owner for some reason.  History reads like this:


# The RT System itself - Owner forcibly changed from
Uhttp://rt.imctv.com/User/Summary.html?id=108
serA to UserB
# U http://rt.imctv.com/User/Summary.html?id=36196serB - Given to UserA

Any ideas what might be causing this and how to stop it?


Re: [rt-users] Question about 4.2 and setting the owner

2013-11-05 Thread Chris Hall
That's the answer Alex.  I found it a few minutes after I'd emailed the
mailing list.  There's ~60 users.  Thanks for the reply.


On Tue, Nov 5, 2013 at 12:03 PM, Alex Vandiver ale...@bestpractical.comwrote:

 On Tue, 2013-11-05 at 11:35 -0500, Parish, Brent wrote:
  Add this line into RT_SiteConfig.pm:
 
  Set($AutocompleteOwners, 0);

 RT 4.2 did not change this default; if $AutocompleteOwners was not set
 in your 4.0 installation, it will not be set in your 4.2 upgrade.

 You are likely running into a performance optimization in RT 4.2;
 namely, configurations with large numbers of possible Owners (generally
 due to configuration errors) can cause extremely long load times on
 Update pages.  RT 4.2 switches to the autocompleter when it finds more
 than 50 possible owners, rather than attempting to render a very large
 drop-down.  This is irrespective of the value of $AutocompleteOwners.

 How many potential owners exist in this queue?
  - Alex





Re: [rt-users] RT 4.2 and ownership of tickets after comments

2013-11-05 Thread Chris Hall
This is my scrip that sets the owner to themselves after a comment.  Like I
said though it's working fine.  However, something else seems to be kicking
off now afterwards that is giving the ticket back to the previous owner.


Condition: On Create
Action: User Defined
Template: Blank

Custom Condition: BLANK

Custom action preparation code:
  return 1;

Custom action commit code:
  # get actor ID
  my $Actor = $self-TransactionObj-Creator;

  # if actor is RT_SystemUser then get out of here
  return 1 if $Actor == $RT::SystemUser-id;

  # get out unless ticket owner is nobody
  return 1 unless $self-TicketObj-Owner == $RT::Nobody-id;

  # ok, try to change owner
  $RT::Logger-info(Auto assign ticket #. $self-TicketObj-id . to user
#.$Actor );
  my ($status, $msg) = $self-TicketObj-SetOwner( $Actor );
  unless( $status ) {
$RT::Logger-error( Impossible to assign the ticket to $Actor: $msg );
return undef;
  }
  return 1;



On Tue, Nov 5, 2013 at 12:03 PM, Alex Vandiver ale...@bestpractical.comwrote:

 On Tue, 2013-11-05 at 11:40 -0500, Chris Hall wrote:
  I'm noticing a strange problem after my upgrade from 4.0.0 to 4.2.
   Before my upgrade I'd made a global script that would have the user
  attempt to take ownership of a ticket after commenting on it.  This is
  still working after the upgrade.  However, now it is immediately given
  back to the previous owner for some reason.  History reads like this:
 
 
 
 
  # The RT System itself - Owner forcibly changed from UserA to UserB
  # UserB - Given to UserA
 
 
  Any ideas what might be causing this and how to stop it?

 You will need to provide the scrip before we will be able to hazard any
 guesses.
  - Alex




Re: [rt-users] RT 4.2 and ownership of tickets after comments

2013-11-05 Thread Chris Hall
My mistake, the custom action commit code is this:

# get actor ID
my $Actor = $self-TransactionObj-Creator;

# ok, try to change owner
$RT::Logger-info(Auto assign ticket #. $self-TicketObj-id . to user
#.$Actor );
my ($status, $msg) = $self-TicketObj-SetOwner( $Actor,'Force' );
unless( $status ) {
  $RT::Logger-error( Impossible to assign the ticket to $Actor: $msg );
  return undef;
}
return 1;


On Tue, Nov 5, 2013 at 12:10 PM, Chris Hall hir...@gmail.com wrote:

 This is my scrip that sets the owner to themselves after a comment.  Like
 I said though it's working fine.  However, something else seems to be
 kicking off now afterwards that is giving the ticket back to the previous
 owner.


 Condition: On Create
 Action: User Defined
 Template: Blank

 Custom Condition: BLANK

 Custom action preparation code:
   return 1;

 Custom action commit code:
   # get actor ID
   my $Actor = $self-TransactionObj-Creator;

   # if actor is RT_SystemUser then get out of here
   return 1 if $Actor == $RT::SystemUser-id;

   # get out unless ticket owner is nobody
   return 1 unless $self-TicketObj-Owner == $RT::Nobody-id;

   # ok, try to change owner
   $RT::Logger-info(Auto assign ticket #. $self-TicketObj-id . to
 user #.$Actor );
   my ($status, $msg) = $self-TicketObj-SetOwner( $Actor );
   unless( $status ) {
 $RT::Logger-error( Impossible to assign the ticket to $Actor: $msg
 );
 return undef;
   }
   return 1;



 On Tue, Nov 5, 2013 at 12:03 PM, Alex Vandiver 
 ale...@bestpractical.comwrote:

 On Tue, 2013-11-05 at 11:40 -0500, Chris Hall wrote:
  I'm noticing a strange problem after my upgrade from 4.0.0 to 4.2.
   Before my upgrade I'd made a global script that would have the user
  attempt to take ownership of a ticket after commenting on it.  This is
  still working after the upgrade.  However, now it is immediately given
  back to the previous owner for some reason.  History reads like this:
 
 
 
 
  # The RT System itself - Owner forcibly changed from UserA to UserB
  # UserB - Given to UserA
 
 
  Any ideas what might be causing this and how to stop it?

 You will need to provide the scrip before we will be able to hazard any
 guesses.
  - Alex





Re: [rt-users] RT 4.2 and ownership of tickets after comments

2013-11-05 Thread Chris Hall
Still haven't found anything.  What's odd is that it's not a problem w/ the
scrip.  The scrip still works.  RT force changes the owner to whoever made
the comment.  It even shows up in the history.  But it's like the very next
thing that happens is the new owner gives the ownership back to the
original owner.  I can't seem to figure out why.


On Tue, Nov 5, 2013 at 12:32 PM, Chris Hall hir...@gmail.com wrote:

 My mistake, the custom action commit code is this:

 # get actor ID
 my $Actor = $self-TransactionObj-Creator;

 # ok, try to change owner
 $RT::Logger-info(Auto assign ticket #. $self-TicketObj-id . to user
 #.$Actor );
 my ($status, $msg) = $self-TicketObj-SetOwner( $Actor,'Force' );
 unless( $status ) {
   $RT::Logger-error( Impossible to assign the ticket to $Actor: $msg );
   return undef;
 }
 return 1;


 On Tue, Nov 5, 2013 at 12:10 PM, Chris Hall hir...@gmail.com wrote:

 This is my scrip that sets the owner to themselves after a comment.  Like
 I said though it's working fine.  However, something else seems to be
 kicking off now afterwards that is giving the ticket back to the previous
 owner.


 Condition: On Create
 Action: User Defined
 Template: Blank

 Custom Condition: BLANK

 Custom action preparation code:
   return 1;

 Custom action commit code:
   # get actor ID
   my $Actor = $self-TransactionObj-Creator;

   # if actor is RT_SystemUser then get out of here
   return 1 if $Actor == $RT::SystemUser-id;

   # get out unless ticket owner is nobody
   return 1 unless $self-TicketObj-Owner == $RT::Nobody-id;

   # ok, try to change owner
   $RT::Logger-info(Auto assign ticket #. $self-TicketObj-id . to
 user #.$Actor );
   my ($status, $msg) = $self-TicketObj-SetOwner( $Actor );
   unless( $status ) {
 $RT::Logger-error( Impossible to assign the ticket to $Actor: $msg
 );
 return undef;
   }
   return 1;



 On Tue, Nov 5, 2013 at 12:03 PM, Alex Vandiver 
 ale...@bestpractical.comwrote:

 On Tue, 2013-11-05 at 11:40 -0500, Chris Hall wrote:
  I'm noticing a strange problem after my upgrade from 4.0.0 to 4.2.
   Before my upgrade I'd made a global script that would have the user
  attempt to take ownership of a ticket after commenting on it.  This is
  still working after the upgrade.  However, now it is immediately given
  back to the previous owner for some reason.  History reads like this:
 
 
 
 
  # The RT System itself - Owner forcibly changed from UserA to UserB
  # UserB - Given to UserA
 
 
  Any ideas what might be causing this and how to stop it?

 You will need to provide the scrip before we will be able to hazard any
 guesses.
  - Alex






[rt-users] Question about SMTP in an upgrade from 4.0 to 4.2

2013-10-31 Thread Chris Hall
In a few days we'll be upgrading from RT 4.0.0 to 4.2.  I was reviewing the
upgrade document and I came across something distressing...

The Csmtp option for LRT_Config/$MailCommand, along with the associated
C$SMTPServer, C$SMTPFrom, and C$SMTPDebug options, has been removed
because it did not guarantee delivery.  Instead, use a local MTA for
outgoing mail, via the 'sendmailpipe' setting to C$MailCommand.

I rely on those settings to send mail out to our smtp server, and thus far
it's worked out great.  In fact, they're very resistant to the idea of
having the RT server operate as a mail server.  If I'm reading this right,
am I to understand that after the upgrade I'll no longer be able to send
mail out via an external smtp server?  Is there any way around that?


[rt-users] Fwd: Some issues with message box after upgrade to 4.0.7

2013-10-16 Thread Chris Herrmann


Hi, this doesn't address the underlying question of how to change the MSG box, 
but if you're using Firefox you can use the Lazarus plugin to raise your text 
from the dead in the scenario you describe. You need to toggle the box into 
plain text mode to get the right-click Lazarus restore option. After this you 
can toggle it back to HTML if you want. This toggle is one of the buttons on 
the wysiwyg Comment box control sorry can't remember which one right now!


Chris Herrmann
Far Edge
+612 84251400
+614 03393309
http://www.faredge.com.au

[rt-users] nginx / varnish / apache with RT?

2013-08-06 Thread Chris Herrmann
Hi all,

i've been playing with an NVA setup for some lamp sites (Joomla) and the
scaling is looking pretty amazing... still early days but initial results
look very promising.

anyway, it got me thinking to whether varnish would work with RT. I'm
familiar enough with it to understand the generic accelerator principle ...
but I don't see how it would work with generated content - because of RT
handles sessions / authentication / etc. Or is it smart enough to know that
if I visit the same ticket twice in a row and the ticket hasn't changed, to
give me cached content?

I've tried searching for perl varnish and request tracker varnish type
pages but have only found one archive thread
http://www.gossamer-threads.com/lists/rt/users/72455 which appears
inconclusive - does it actually make a noticeable difference or not?
Internally we're using a squid proxy, and we have a small number of users,
so not sure that the static page elements being handled by varnish or nginx
would offer a huge advantage? anyway keen to hear people's experiences or
other thoughts on accelerating RT...

Cheers,

Chris


Re: [rt-users] rt-users Digest, Vol 113, Issue 9

2013-08-05 Thread Chris Herrmann
Hi Kevin,

Thanks for that, yes I'm a bit blonde undef would not log. I've changed
that to 'error' now.

OK, there's 3 tickets with that effectiveID; there are 91 transactions that
relate to those three ticket IDs. OK i've just tried the cli, and

show ticket/106648/history

works OK... and the www interface is working OK right now too for that
ticket. Hmm...

What kind of information do I need to dig out for you?

Sorry a bit vague I know, I'm just not sure where to look for the
information that's going to give a clue about what broke!

so the logs when it does work look the same as when it fails:
Aug  6 09:53:02 sirius RT: We found a merged ticket.106966/106648
Aug  6 09:53:02 sirius RT: last message repeated 2 times
Aug  6 09:53:02 sirius RT: We found a merged ticket.106969/106648
Aug  6 09:53:02 sirius RT: last message repeated 2 times
Aug  6 09:53:02 sirius RT: We found a merged ticket.106966/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106969/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106966/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106969/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106966/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106969/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106966/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106969/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106966/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106969/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106966/106648
Aug  6 09:53:02 sirius RT: We found a merged ticket.106969/106648
Aug  6 09:53:12 sirius RT: We found a merged ticket.106966/106648
Aug  6 09:53:12 sirius RT: last message repeated 35 times
Aug  6 09:53:12 sirius RT: We found a merged ticket.106969/106648
Aug  6 09:53:12 sirius RT: last message repeated 44 times
Aug  6 09:53:12 sirius RT: We found a merged ticket.106966/106648
Aug  6 09:53:12 sirius RT: We found a merged ticket.106969/106648
Aug  6 09:53:12 sirius RT: last message repeated 11 times
Aug  6 09:53:12 sirius RT: We found a merged ticket.106966/106648

If I comment right now I get in /var/log/user.log:

Aug  6 09:55:07 sirius RT: About to think about scrips for transaction
#971499
Aug  6 09:55:07 sirius RT: About to prepare scrips for transaction #971499
Aug  6 09:55:07 sirius RT: Found 7 scrips for TransactionCreate stage with
applicable type(s) Comment
Aug  6 09:55:07 sirius RT: About to commit scrips for transaction #971499
Aug  6 09:55:07 sirius RT: Committing scrip #7 on txn #971499 of ticket
#106648
Aug  6 09:55:07 sirius RT: Calling SetRecipientDigests for transaction
RT::Transaction=HASH(0x7f5fbc933c10), id 971499
Aug  6 09:55:07 sirius RT: Working on mailfield To; recipients are
Aug  6 09:55:07 sirius RT: Subject: [myRT #106648] [Comment] B/F - Broken
site#012From: Chris Herrmann via RT helpdesk-comment@sirius#012Reply-To:
helpdesk-comment@sirius#012In-Reply-To:
CCD0821AE781994EB8BAB510676B5EF50120CD129B79@mail.local#012References:
RT-Ticket-106648@local#012
CCD0821AE781994EB8BAB510676B5EF50120CD129B79@mail.local#012Message-ID:
rt-3.8.7-31323-1375746907-921.106648-7-0@local#012Precedence:
bulk#012X-RT-Loop-Prevention: myRT#012RT-Ticket: myRT
#106648#012Managed-BY: RT 3.8.7 (
http://www.bestpractical.com/rt/)#012RT-Originator:
chris@local#012MIME-Version:
1.0#012Content-Transfer-Encoding: 8bit#012Content-Type: text/plain;
charset=utf-8#012X-RT-Original-Encoding: utf-8
Aug  6 09:55:07 sirius RT: Removing deferred recipients from To: line
Aug  6 09:55:07 sirius RT: Setting deferred recipients for attribute
creation
Aug  6 09:55:07 sirius RT: Working on mailfield Cc; recipients are

(and more like this - truncating in the interests of brevity - let me know
if you want a full dump but it looks like it's just iterating over several
scrips determining who it needs to notify based upon the transaction).

Aug  6 09:55:08 sirius RT: Committing scrip #26 on txn #971499 of ticket
#106648
Aug  6 09:55:08 sirius RT: Committing scrip #29 on txn #971499 of ticket
#106648
Aug  6 09:55:08 sirius RT: Found 0 scrips for TransactionBatch stage with
applicable type(s) Comment
Aug  6 09:55:09 sirius RT: We found a merged ticket.106966/106648

Let me know where else I should go digging, or more general info that I can
/ should provide you on our setup.

Thanks again!

Chris


[rt-users] One particular ticket crashes RT 3.8.7

2013-08-04 Thread Chris Herrmann
Hi guys,

at this stage I'm just hoping to find out where to look, to get more
information. Scenario is:
- Viewing or comment / replying on a specific ticket causes the page to
fail. Other tickets are fine.
- Viewing the same ticket via the mobile interface is OK
- Emailing the ticket wtih updated comments is OK
- I haven't tried CLI yet so can't comment
- Upgrading RT isn't an option right now
- It isn't consistent - it doesn't always fail. Fail rate appears to be
around 9/10 times

The only logs of note that I can find are:
apache vhost access_log - just shows me that the page got hit e.g.
  /Ticket/Update.html?Action=Commentid=106648
 /Ticket/Display.html?id=106648
apache vhost error_log - empty
apache default error log - has:
[Mon Aug 05 12:58:24 2013] [notice] child pid 7013 exit signal Segmentation
faul

these correspond to when i try to view this specific ticket.
Based upon some list emails I saw kicking around last week I've added:
Set($LogToSyslog, 'debug');
Set($LogToScreen, 'error');
Set($LogToFile  , undef);
Set($LogDir, '/var/log/rt3');
Set($LogToFileNamed , rt3.log);#log to rt.log

to RT_SiteConfig.pm
but... there's nothing logging to /var/log/rt3
/var/log/debug contains:
Aug  5 13:45:59 sirius RT: We found a merged ticket.106966/106648
Aug  5 13:45:59 sirius RT: We found a merged ticket.106969/106648
Aug  5 13:46:02 sirius RT: We found a merged ticket.106966/106648
Aug  5 13:46:02 sirius RT: last message repeated 35 times
Aug  5 13:46:02 sirius RT: We found a merged ticket.106969/106648
Aug  5 13:46:02 sirius RT: last message repeated 44 times
Aug  5 13:46:02 sirius RT: We found a merged ticket.106966/106648
Aug  5 13:46:02 sirius RT: We found a merged ticket.106969/106648
Aug  5 13:46:02 sirius RT: last message repeated 11 times
Aug  5 13:46:02 sirius RT: We found a merged ticket.106966/106648
/var/log/syslog (ditto)
/var/log/user.log
 even more of it...
Aug  5 13:46:02 sirius RT: We found a merged ticket.106966/106648
Aug  5 13:46:21 sirius RT: last message repeated 42 times



Other notes:
- hitting the page chews a lot of CPU for a long time before finally dieing
- the ticket is large (a lot of text) but it's by no means the largest
ticket we have by an order of magnitude. These other larger tickets are
fine...

Help! Not sure where I should be looking... Thanks!

Regards,

Chris


Re: [rt-users] How to customize/redirect default Logout Page?

2013-07-11 Thread Chris O'Kelly
I haven't touched CAS before, so I am grasping at straws here, but lets start 
by making the assumption that you edited ./share/html/NoAuth/Logout.html (I 
think best practises would dictate that you edit a local copy in 
local/html/NoAuth/Logout.html, but I do not believe it is a necessity). I would 
be really surprised if you were not seeing any changes after modifying that 
file, but I have been got by all of these before, and they seem possible:

-Have you cleared your mason cache? (you'll need to rm -rf 
/your_rt_directory/var/mason_data/obj/*)
-Have you restarted your web server? (if it's apache, sudo service apache2 
restart)
-Have you cleared your browser cache?

These are the first places I'd look if applied changes are not being reflected.

Regards



Regards

Chris O'Kelly
Systems  Web Administrator

Minecorp Australia
P: 07 3723 1000

M: 0450 586 190


Minecorp Australia
37 Murdoch Circuit
Acacia Ridge QLD 4110
Australia
www.minecorp.com.au
Sent Via a Mobile Device.


-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Duncan Napier
Sent: Friday, 12 July 2013 2:36 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] How to customize/redirect default Logout Page?

Hi,

I Run RT 4.0.8 using CAS Authentication and when an authenticated user selects 
the Logout item on the Settings/Logout menu, the web server forwards briefly to 
the share/html/NoAuth/Logout.html and then re-logs CAS Authenticated users back 
in. I would like to Logout.html to forward to a URL on the CAS server that 
causes the browser to clear the CAS login tokens/cookies, and effectively log 
out authenticated CAS users.

I tried editing Logout.html to redirect to the CAS logout page, but changing 
the contents of Logout.html has no effect on the Logout page as Logout.html 
seems to be defined somewhere else. Is there a .po file or something for 
replacing the RT default with a custom or forwarded logout page?

 Regards,

 Duncan.



[rt-users] Question about restricting queues

2013-06-17 Thread Chris Hall
I've got a bit of a weird problem, and wondered if anybody has a solution
for it.

We have several queues, and a few are grouped up by name.  For example:

Queue A tier 1
Queue A tier 2
Queue A tier 3

Queue B tier 1
Queue B tier 2
Queue B tier 3

The managers at the helpdesk are having a problem w/ ppl making a ticket in
Queue A tier 1, and then when they escalate it, accidentally transferring
it to Queue B tier 2 (instead of Queue A tier 2).  They asked me if there
was any way to group these queues up in such a way that, for example, if a
ticket is made in any of the Queue A's they are locked in and can only be
transferred between the Queue A's.

I hope that makes sense.  The problem is some of these queues are tied to
different businesses, and if we send out an email due to a ticket queue
transfer and it goes to the wrong company it looks bad on us.  I know
personal responsibility can go a long way to fixing this but besides
that, is there any way to do what I described above w/ RT?


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training

[rt-users] Message autosave

2013-05-29 Thread Chris Herrmann
Firefox extension Lazarus does this in all sites. 

Regular bacon saver. 


Chris Herrmann
Far Edge
+612 84251400
+614 03393309
http://www.faredge.com.au


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


[rt-users] Database mangling 1mb

2013-05-28 Thread Chris Herrmann
Hi my guess would be max allowed packet size (my.cnf) is being exceeded. If 
MySQL receives an oversized field it will truncate to the specified limit. This 
will break binary files. 

Make sure your:

Regular web access has a large enough max allowed packet;
That your backups match this value;
That any restore scripts / procedures also match this value. 


Chris Herrmann
Far Edge
+612 84251400
+614 03393309
http://www.faredge.com.au


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


[rt-users] Kanban / agile workflows?

2013-05-23 Thread Chris Herrmann
Hi guys,

Just wondering if there are any plugins or ?? That would facilitate alternative 
ways of visualising work to do like agile or kanban or ??

I'm thinking this could be helpful for teams and individual users to prioritise 
their work. 

Thanks,


Chris Herrmann
Far Edge
+612 84251400
+614 03393309
http://www.faredge.com.au


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


Re: [rt-users] Kanban / agile workflows?

2013-05-23 Thread Chris Herrmann

Just realise this is almost exactly the question I asked several weeks ago but 
had no responses...

Chris Herrmann
Far Edge
+612 84251400
+614 03393309
http://www.faredge.com.au

On 23/05/2013, at 20:17, Chris Herrmann chrisherrma...@gmail.com wrote:

Hi guys,

Just wondering if there are any plugins or ?? That would facilitate alternative 
ways of visualising work to do like agile or kanban or ??

I'm thinking this could be helpful for teams and individual users to prioritise 
their work. 

Thanks,


Chris Herrmann
Far Edge
+612 84251400
+614 03393309
http://www.faredge.com.au


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training


[rt-users] Conditional Custom Fields

2013-05-22 Thread Chris Foster
Hi,

 

I am trying to setup against ticket in a certain queue where a group of
custom fields show based on a value of another custom field (as a
combobox).  This is so that it prompts users to fill out the relevant
custom fields only not all of the custom fields.  I have all of the
custom fields all setup and each field generally has a standard prefix
in the field name, so this hopefully should make it easier to group the
relevant custom fields.  How would I go round in doing this as I have
looked in the wiki and mailing list archives to no avail?  We are using
RT 4.0.12 and I am new to RT.

 

Regards,

Chris.

 


Have you visited Bartercard Maps yet? www.bartercardmaps.co.nz
Find us on Facebook www.facebook.com/BartercardNewZealand

*
From time to time Bartercard may promote goods and services on behalf of 
members, however Bartercard acts as a third party record keeper and 
transactions are conducted between members. Bartercard is not a party to these 
transactions. Any advice or representations made should not be relied upon, 
and independent advice should be sought. Please refer to the full rules of the 
Trading Program which are available on request.
This e-mail, including attachments, may be confidential and/or privileged. Only 
the intended recipient may access or use it. Any dissemination, distribution or 
copying of this e-mail is strictly prohibited. If you are not the intended 
recipient please notify us immediately by return e-mail and then erase the 
e-mail. Any confidentiality or privilege is not waived or lost if you have 
received this e-mail in error.
*


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training

Re: [rt-users] RT::Authen::ExternalAuth extension loading issue

2013-05-09 Thread Chris Foster
Hi Alex,

Thanks for your response.  I have further looked and yes there does appear to 
be a couple more of lines of errors before this line, they are:

[warning]: Subroutine handle_startup_error redefined at /opt/rt4/sbin rt-server 
line 240. (/opt/rt4/sbin/rt-server:240)
[warning]: Subroutine handle_bind_error redefined at /opt/rt4/sbin/rt-server 
line 252. (/opt/rt4/sbin/rt-server:252)

Hope this helps.  Looking forward in being pointed in the right direction to 
resolve this issue.

Regards,
Chris.

-Original Message-
From: Alex Vandiver [mailto:ale...@bestpractical.com] 
Sent: Friday, 10 May 2013 7:27 a.m.
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT::Authen::ExternalAuth extension loading issue

On Thu, 2013-05-09 at 11:51 +1200, Chris Foster wrote:
 Error while loading /opt/rt4/sbin/rt-server: Attempt to reload 
 RT/Authen/ExternalAuth.pm aborted. \nCompilation failed in require at 
 /opt/rt4/sbin…/lib/RT.pm line 730.

Please show the complete error.  There should be an error message above that.

I suspect that you don't have all of the dependencies for 
RT::Authen::ExternalAuth installed.
 - Alex




Have you visited Bartercard Maps yet? www.bartercardmaps.co.nz
Find us on Facebook www.facebook.com/BartercardNewZealand

*
From time to time Bartercard may promote goods and services on behalf of 
members, however Bartercard acts as a third party record keeper and 
transactions are conducted between members. Bartercard is not a party to these 
transactions. Any advice or representations made should not be relied upon, and 
independent advice should be sought. Please refer to the full rules of the 
Trading Program which are available on request.
This e-mail, including attachments, may be confidential and/or privileged. Only 
the intended recipient may access or use it. Any dissemination, distribution or 
copying of this e-mail is strictly prohibited. If you are not the intended 
recipient please notify us immediately by return e-mail and then erase the 
e-mail. Any confidentiality or privilege is not waived or lost if you have 
received this e-mail in error.
*


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training

[rt-users] RT::Authen::ExternalAuth extension loading issue

2013-05-08 Thread Chris Foster
Hi,

 

I am new to RT and I am trying to get RT::Authen::ExternalAuth extension
working, I have it all installed and configuration to query our Active
Directory server all set, but when going into RT I set HTTP 500 Internal
Server Error.

I have therefore checked the error log and it has the following message:

 

Error while loading /opt/rt4/sbin/rt-server: Attempt to reload
RT/Authen/ExternalAuth.pm aborted. \nCompilation failed in require at
/opt/rt4/sbin.../lib/RT.pm line 730.

 

I have done a lot of googling  searching the archives of this list but
has not turned up anything.

 

This is for a brand new instance of RT, if the plugin is commented out
in RT_SiteConfig.pm, RT works fine, so it is affecting just this
extension.  Using the latest downloadable versions as of this week.

 

If someone could point in the right direction that would be great.

 

Regards,

Chris.

 


Have you visited Bartercard Maps yet? www.bartercardmaps.co.nz
Find us on Facebook www.facebook.com/BartercardNewZealand

*
From time to time Bartercard may promote goods and services on behalf of 
members, however Bartercard acts as a third party record keeper and 
transactions are conducted between members. Bartercard is not a party to these 
transactions. Any advice or representations made should not be relied upon, 
and independent advice should be sought. Please refer to the full rules of the 
Trading Program which are available on request.
This e-mail, including attachments, may be confidential and/or privileged. Only 
the intended recipient may access or use it. Any dissemination, distribution or 
copying of this e-mail is strictly prohibited. If you are not the intended 
recipient please notify us immediately by return e-mail and then erase the 
e-mail. Any confidentiality or privilege is not waived or lost if you have 
received this e-mail in error.
*


-- 
RT Training in Seattle, June 19-20: http://bestpractical.com/training

[rt-users] Agile / Scrum workflows

2013-05-01 Thread Chris Herrmann
Hi all,

I'm wondering if there are any plugins / mods / etc that would allow
tickets to be viewed in an Agile / et al type style - in the same way that
GreenHopper does this for Jira. In fact if I could somehow get RT tickets
to talk to Greenhopper that might actually do...

Searching for RT  Agile / Greenhopper / jira / etc just returns results on
migrating, or articles comparing the two - but so far I haven't found
anyone talking about whether it would be possible to make them talk at all.

Why do we have both?

We use Jira for software development - it's tied to the version control
repository, and we build workflows that suit the style of project. And
request tracker for helpdesk tickets. But... it would be very nice if there
was a way to link the two in some way.

Cheers,

Chris


Re: [rt-users] Unable to configure article classes in 4.0.10

2013-03-15 Thread Chris Manly
I ended up copying the code for 4.0.6 from my dev box to the prod install,
and things work as you expect.  If I switch it to 4.0.10, the config menus
disappear again.

So there's definitely something about 4.0.10 in my prod environment.  For
now, we go forward on 4.0.6 and as time permits I'll play and see what I
can figure out.

-- 
Christopher Manly
Coordinator, Library Systems
Cornell University Library Information Technologies
c...@cornell.edu
607-255-3344




On 3/5/13 4:49 PM, Kevin Falcone falc...@bestpractical.com wrote:

On Tue, Mar 05, 2013 at 09:24:38PM +, Chris Manly wrote:
When we create a new article class, none of the configuration
options appear on the right hand
side of /Admin/Articles/Classes/Modify.html.  So, we can't make the
new class apply to a
queue. However, for the class that I created on the 4.0.6 system (I
then copied over the
database to the prod install), the config options appear normally.
All of the users who are attempting to set up the classes have
SuperUser privs.
Am I just missing something obvious, or did I trip on a bug in
4.0.10?  Or, is there somewhere

I'm not aware of a bug in 4.0.10 around this and in fact it works fine
for me on newly created Classes.

What's in your logs.

What arguments are being passed to Modify.html in the URL on pages
where the links don't show up vs those where they do.

-kevin




-- 
RT training in Amsterdam, March 20-21: 
http://bestpractical.com/services/training.html

Help improve RT by taking our user survey: 
https://www.surveymonkey.com/s/N23JW9T


[rt-users] Unable to configure article classes in 4.0.10

2013-03-05 Thread Chris Manly
Hi all,

Okay I'm stumped.  I'm setting up a new install of RT4.  My proof of concept 
install on a dev box was 4.0.6, but 4.0.10 was out by the time I got to setting 
up the production install, so that one is 4.0.10.  The database for the 
4.0.10 production system was seeded with a dump from the 4.0.6 dev box.

When we create a new article class, none of the configuration options appear on 
the right hand side of /Admin/Articles/Classes/Modify.html.  So, we can't make 
the new class apply to a queue. However, for the class that I created on the 
4.0.6 system (I then copied over the database to the prod install), the 
config options appear normally.

All of the users who are attempting to set up the classes have SuperUser privs.

Am I just missing something obvious, or did I trip on a bug in 4.0.10?  Or, is 
there somewhere I can be looking to figure out what's going on?  I can't see 
any differences in the databases that would be an obvious source of the 
differential behavior, and a debug log doesn't spit out anything telling that I 
can see.

Any insight would be appreciated, including RTFM directives with helpful 
pointers to the correct FM, if I simply failed to find the right clue that's 
out there somewhere.

Thanks!

--
Christopher Manly
Coordinator, Library Systems
Cornell University Library Information Technologies
c...@cornell.edu
607-255-3344


-- 
RT training in Amsterdam, March 20-21: 
http://bestpractical.com/services/training.html

Help improve RT by taking our user survey: 
https://www.surveymonkey.com/s/N23JW9T

Re: [rt-users] URL Error after upgrading to rt4

2013-02-19 Thread Chris O'Kelly
Hi Rolf,

It looks like you are missing the closing quotes on the line you inserted:

I insert as line #2
use lib /opt/rt4/lib/RT;

should be

use lib /opt/rt4/lib/RT;

The error message eludes to this by:

(Might be a runaway multi-line  string starting on line 2)

Regards



Regards

Chris O'Kelly
Systems  Web Administrator

Minecorp Australia
P: 07 3723 1000
M: 0450 586 190


Minecorp Australia
37 Murdoch Circuit
Acacia Ridge QLD 4110

www.minecorp.com.au
Sent Via a Mobile Device.


-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Rolf Krogstad
Sent: Wednesday, 20 February 2013 8:05 AM
To: rt-us...@lists.fsck.com
Subject: Re: [rt-users] URL Error after upgrading to rt4

Kevin Falcone falcone at bestpractical.com writes:


 On Thu, Feb 14, 2013 at 10:29:30PM +, Rolf Krogstad wrote:
  Hello,
 
  I have created a new server (RedHat 5.9 64-bit) and am running the latest
  version of MySQL and RT 4.0.10.   The old server was RT 3.6.6

 There were some bugs in early 3.6 RTs where it would store the full
 URL so /rt3/Ticket/Display.html?id=__id__ rather than
 /__WebPath__/Ticket/Display.html?id=__id__

  With one user I can go in and select a ticket and it opens fine with the
URL:
  http://v20labtrack/Ticket/Display.html?id=2973
 
  If I log in as a different user it generates this URL which comes up with
  a page not found error:
  http://v20labtrack/rt3/Ticket/Display.html?id=2973

 This implies some users have a version of the Format for the search
 that includes __WebPath__ and some include /rt3/ literally.

 There's a new branch that adds an upgrade script

https://github.com/bestpractical/rt/commit/5d887addad62c4da580a651df8c94bd8cdb0
fbb8

 You can grab that script and try running it on a development copy of
 your data and see if it properly repairs the links for you.

 Try it out and let us know how it goes?  The branch needs review and
 merging, but test results from the field are really helpful.

 -kevin




Thanks, Kevin.   Not being a perl expert I need some assistance.
I managed to get my library path inserted but have one syntax to correct.
I insert as line #2
use lib /opt/rt4/lib/RT;
I then deleted an empty line from the comment section so the code lines line
up with your example.

I am getting this back on the compile:
syntax error at ./fix-3.6-search-result-format-in-attribute.pl line 66,
near  $content-{Format} =~ s!(?=href=)
  (Might be a runaway multi-line  string starting on line 2)
:66

My URL is generating (for example):
http://v20labtrack/rt3/Ticket/
and I want it to be:
http://v20labtrack/Ticket/

so I changed this line to rt3:
my $path = shift @ARGV || 'rt3';

how do I need to change this one?
 $content-{Format} =~ s!(?=href=)/$path(?=/|$)!__WebPath__!ig )

thanks   Rolf




--
RT training in Amsterdam, March 20-21: 
http://bestpractical.com/services/training.html

Help improve RT by taking our user survey: 
https://www.surveymonkey.com/s/N23JW9T


-- 
RT training in Amsterdam, March 20-21: 
http://bestpractical.com/services/training.html

Help improve RT by taking our user survey: 
https://www.surveymonkey.com/s/N23JW9T


  1   2   3   4   5   >