From lstewart at internap.com Sat Oct 1 18:01:58 2016 From: lstewart at internap.com (Landon Stewart) Date: Sat, 1 Oct 2016 22:01:58 +0000 Subject: [rt-users] Close tickets with email In-Reply-To: <2111E8DB-CAB6-411B-B636-34A3430605F7@uanet.se> References: <2111E8DB-CAB6-411B-B636-34A3430605F7@uanet.se> Message-ID: <25406DA1-CE15-43C2-BDA9-A10934E58C3D@internap.com> On Sep 30, 2016, at 9:13 AM, Martin Petersson > wrote: Hello all I've heard that I can close a ticket by sending an email, how do I do that? It it's just closing tickets you want you could create a scrip on the queue for globally that looks for a condition and carries out the action to close a ticket. Alternatively if you want to allow more commands (be careful if users use the queue(s)) you could use something like RT::Extension::CommandByMail. I've used it in the past and it's quite good once people get used to using it. You can limit it's use to certain groups and change the Queue, Owner, Status, Custom Fields, etc with it by replying to tickets with certain content at the top of the reply. -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisis at bosberaad.com Sun Oct 2 19:55:53 2016 From: chrisis at bosberaad.com (Chris McClement) Date: Sun, 02 Oct 2016 23:55:53 +0000 Subject: [rt-users] Excluding Commands from CommandbyMail parsing Message-ID: 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: xyz at abc.com" "From: xyz at 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: xxxx" so that my subjects no longer change? -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at nileshgr.com Sun Oct 2 23:28:25 2016 From: me at nileshgr.com (Nilesh) Date: Mon, 3 Oct 2016 08:58:25 +0530 Subject: [rt-users] Customizing with Overlays Message-ID: Hello, I came across this page: https://rt-wiki.bestpractical.com/wiki/CustomizingWithOverlays Can I put my Overlay files in local/lib? Do I have to maintain the same directory structure? Let's say I have to customize RT::Action::SendEmail, so my Overlay should be in local/lib/RT/Action/SendEmail_Overlay.pm or just local/lib/SendEmail_Overlay.pm ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at chmrr.net Sun Oct 2 23:47:22 2016 From: alex at chmrr.net (Alex Vandiver) Date: Sun, 2 Oct 2016 20:47:22 -0700 Subject: [rt-users] Customizing with Overlays In-Reply-To: References: Message-ID: <20161002204722.6c94d8e9@thraddash.chmrr.net> On Mon, 3 Oct 2016 08:58:25 +0530 Nilesh wrote: > Can I put my Overlay files in local/lib? Yup; that's what's generally suggested. > Do I have to maintain the same directory structure? Yes. > Let's say I have to customize RT::Action::SendEmail, so my Overlay should > be in local/lib/RT/Action/SendEmail_Overlay.pm or just > local/lib/SendEmail_Overlay.pm ?? The former. - Alex From me at nileshgr.com Sun Oct 2 23:49:03 2016 From: me at nileshgr.com (Nilesh) Date: Mon, 3 Oct 2016 09:19:03 +0530 Subject: [rt-users] Customizing with Overlays In-Reply-To: <20161002204722.6c94d8e9@thraddash.chmrr.net> References: <20161002204722.6c94d8e9@thraddash.chmrr.net> Message-ID: On 03-Oct-2016 9:17 AM, "Alex Vandiver" wrote: > > On Mon, 3 Oct 2016 08:58:25 +0530 > Nilesh wrote: > > Can I put my Overlay files in local/lib? > > Yup; that's what's generally suggested. > > > Do I have to maintain the same directory structure? > > Yes. > > > Let's say I have to customize RT::Action::SendEmail, so my Overlay should > > be in local/lib/RT/Action/SendEmail_Overlay.pm or just > > local/lib/SendEmail_Overlay.pm ?? > > The former. > - Alex Thanks a lot -- Nilesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From bparish at cognex.com Mon Oct 3 10:04:57 2016 From: bparish at cognex.com (Parish, Brent) Date: Mon, 3 Oct 2016 14:04:57 +0000 Subject: [rt-users] Excluding Commands from CommandbyMail parsing In-Reply-To: References: Message-ID: <9b10d4c34de542bb9aa98f34f91be33c@USNAEXCP1.pc.cognex.com> Hi. Dunno if it is the best way, but what I do it in RT 4.4.1 is edit the file: /opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Extension/CommandByMail.pm Around line 349 look for this block of code, and add the line indicated with the plus (+) in front of it (without including the plus sign itself). my $found_pseudoheaders = 0; foreach my $line (@content) { next if $line =~ /^\s*$/ && ! $found_pseudoheaders; + last if $line =~ m/^(from:|cid:)/i; last if $line !~ /^(?:(\S+(?:{.*})?)\s*?:\s*?(.*)\s*?|)$/; last if not defined $1 and $found_pseudoheaders; next if not defined $1; What this does is bail out of processing further lines as mail commands once it finds a line beginning with ?From: ? (e.g. from a forwarded email). It ALSO drops out if it finds ?cid:?, which we sometimes saw with inline images being forwarded. Please note that on older versions of RT, this block of code was found somewhere around line 228 in: /opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm Thanks, Brent From: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Chris McClement Sent: Sunday, October 02, 2016 7:56 PM To: rt-users at lists.bestpractical.com Subject: [rt-users] Excluding Commands from CommandbyMail parsing 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: xyz at abc.com" "From: xyz at 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: xxxx" so that my subjects no longer change? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 3 14:11:32 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 3 Oct 2016 14:11:32 -0400 Subject: [rt-users] What is $HideUnsetFieldsOnDisplay? Message-ID: Hi all, The only note for the configuration variable in the docs says "hides unset fields on ticket display", which I knew from the variable name. But what is an unset field, and is this on ticket creation as well? How do I unset a field, or does it mean a field not filled in during ticket creation? I hoped I could unset a few fields my work will never need, to take away some clutter, such as 'time worked' or the article selection on a ticket reply. Thanks for any explanations. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ktm at rice.edu Mon Oct 3 14:26:25 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Mon, 3 Oct 2016 13:26:25 -0500 Subject: [rt-users] What is $HideUnsetFieldsOnDisplay? In-Reply-To: References: Message-ID: <20161003182625.GK4498@aart.rice.edu> On Mon, Oct 03, 2016 at 02:11:32PM -0400, Alex Hall wrote: > Hi all, > The only note for the configuration variable in the docs says "hides unset > fields on ticket display", which I knew from the variable name. But what is > an unset field, and is this on ticket creation as well? How do I unset a > field, or does it mean a field not filled in during ticket creation? I > hoped I could unset a few fields my work will never need, to take away some > clutter, such as 'time worked' or the article selection on a ticket reply. > Thanks for any explanations. > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com Hi Alex, When you are looking at the ticket display, the custom fields and their values are listed, even ones that do not currently have a value. Setting this config option determines whether empty value fields will be displayed. In 4.4, this is a per-user preference setting. Regards, Ken From david.schmidt at univie.ac.at Tue Oct 4 07:52:09 2016 From: david.schmidt at univie.ac.at (David Schmidt) Date: Tue, 04 Oct 2016 13:52:09 +0200 Subject: [rt-users] "On Reply" set ticket status to "resolved" Message-ID: <603189b7188173d9e6042a34a603e91c@webmail2016.univie.ac.at> Hello list, I would like to set a tickets status to "resolved" on reply. The wiki mentions a "On Reply" action that I cannot find in my rt instance. https://rt-wiki.bestpractical.com/wiki/ManualScrips cheers david From ahall at autodist.com Tue Oct 4 10:31:49 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 4 Oct 2016 10:31:49 -0400 Subject: [rt-users] Making ticket history easier to read Message-ID: Sorry to ask something I've already posted about, but this is the last major area my boss and coworkers are all continuing to ask me about. It's also one area on which I can find nothing at all. People want the ticket history to read more like a forum or instant message conversation, rather than an email reply chain with tons of extra links. Just for two replies on a ticket, here's what we all see: Tue Oct 04 10:11:37 2016 ahall (Alex Hall) - Correspondence added [Reply] [Comment] [Forward] Download (untitled) / with headers text/plain 121B [my response] # Tue Oct 04 10:02:58 2016 username (First Last) - Correspondence added [Reply] [Comment] [Forward] Subject: RE: [IT #97] subject of the ticket To: ITQueueEmail at domain.com Date: Tue, 4 Oct 2016 10:00:57 -0400 From: "username" Download (untitled) / with headers text/plain 130B Download (untitled) / with headers text/html 1.9KiB what username said All that is just for TWO responses. When three or four people are on a ticket, talking back and fourth, it quickly becomes a mess of extraneous text through which everyone has to wade just to find information. Alternatively, what we're hoping to find is a way to make it read more like this: On Tue, Oct 4 2016 at 10:11 AM, Alex Hall (ahall) said: my reply text on Tue, Oct 4 2016 at 10:02 AM, First Last (username) said: what username said And that's it. I can't tell you how much easier this would make the lives of all our customer service people in particular, but of everyone using RT at this company as well. At this point, I'm even willing to edit source code, but I have no idea where to start. If anyone has any suggestions or ideas, I'd love to hear them. Thanks in advance. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvdwege at xs4all.nl Tue Oct 4 13:13:12 2016 From: jvdwege at xs4all.nl (Joop) Date: Tue, 4 Oct 2016 19:13:12 +0200 Subject: [rt-users] Making ticket history easier to read In-Reply-To: References: Message-ID: <57F3E328.3020809@xs4all.nl> On 4-10-2016 16:31, Alex Hall wrote: > Sorry to ask something I've already posted about, but this is the last > major area my boss and coworkers are all continuing to ask me about. > It's also one area on which I can find nothing at all. > > People want the ticket history to read more like a forum or instant > message conversation, rather than an email reply chain with tons of > extra links. Just for two replies on a ticket, here's what we all see: Have a look at RT::Extension::HistoryFilter which will hide quite a bit of history. Regards, Joop From ktm at rice.edu Tue Oct 4 13:20:32 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Tue, 4 Oct 2016 12:20:32 -0500 Subject: [rt-users] Making ticket history easier to read In-Reply-To: <57F3E328.3020809@xs4all.nl> References: <57F3E328.3020809@xs4all.nl> Message-ID: <20161004172032.GQ4498@aart.rice.edu> On Tue, Oct 04, 2016 at 07:13:12PM +0200, Joop wrote: > On 4-10-2016 16:31, Alex Hall wrote: > > Sorry to ask something I've already posted about, but this is the last > > major area my boss and coworkers are all continuing to ask me about. > > It's also one area on which I can find nothing at all. > > > > People want the ticket history to read more like a forum or instant > > message conversation, rather than an email reply chain with tons of > > extra links. Just for two replies on a ticket, here's what we all see: > Have a look at RT::Extension::HistoryFilter which will hide quite a bit > of history. > > Regards, > > Joop Hi, This functionality is included natively in newer RT releases. If just the few additional links are problematic, you may want to look at: http://wiki.bestpractical.com/view/BasicVsAdvancedInterface It allow you to toggle to the SelfService interface which is much more basic. If that does not work, you will need to take a look at the options to customize your local system. If you do it cleanly, then updates are much simpler. Regards, Ken From anthnd at hotmail.com Tue Oct 4 13:28:02 2016 From: anthnd at hotmail.com (Anthony Nguyen-Duong) Date: Tue, 4 Oct 2016 17:28:02 +0000 Subject: [rt-users] Calculating the number of emails/replies/correspondences per ticket Message-ID: Hi, I'd like to find out how to add my own calculation to charts, as opposed to the limited Ticket Count and various time calculations available for charts. I'd like to add a calculation that calculates the number of emails/correspondences between an agent and a customer. I've tried looking through "lib/RT/Report/Tickets.pm" and "share/html/Search/Chart.html", but there's a lot of things I don't understand in there. Now, realistically I may not have to go through the effort of adding a calculation for charts. My end result is a table that has the columns: TicketId, NumberOfEmails (and I'll probably add some other things like Subject and whatnot). However, I'd prefer not to have a Custom Field for NumberOfEmails, reason being I'm not sure if there's a way to calculate the number of emails for all my past tickets and set all of them to their correct value apart from manually counting and inputting it. Instead, I was considering doing Callbacks or something to count the number of Correspondences in the Transactions table from the database and appending a column to a table. If I instead added a chart calculation, the end result would be more flexible - at the cost of a (possibly?)difficult implementation. > New Chart > Group tickets by Ticket/Id. (individual tickets, so basically no grouping; this might get out of hand for large numbers of tickets though; this is something else I'd like to know how to do) > Calculate values of Email count. > Generate bar chart or table Now that I think about it though, I might just be able to add a column called Number of Emails to search results and get that sorted out. Sorry my thoughts are kind of all over the place right now. In summary, envisioned end result: - A table/search result list (doesn't necessarily have to be a chart) that can be added to a dashboard that has, at minimum, the columns: TicketId and NumberOfEmails - NumberOfEmails is preferably not a Custom Field - The column NumberOfEmails must be able to find the number of emails between an agent and customer of all tickets that are currently in my database (I'd imagine I have to use SQL for this somewhere to count Correspondences for specific TicketId's) I'd like to know what the best thing to do would be and how to start working on a solution. I hope I've explained my problem well enough. I can clarify further if you'd like. Thank you, Anthony -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Tue Oct 4 15:26:30 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 4 Oct 2016 15:26:30 -0400 Subject: [rt-users] Which mason_data to clear when installing plugins? Message-ID: Hello list, I'm installing the HistoryFilter plugin as suggested in my last thread. As I was going to clear the cache, I found something odd: I appear to have two mason caches. One is for RT while the other isn't explicitly so, but still... Which one should I clear out? I see: /var/cache/request-tracker4/mason_data, inside of which are obj, cache, and etc /var/cache/mason, inside of which are obj and cache The first one seems the obvious choice, but I had no end of trouble getting ExtensionAsString to work when I tried it last week. I wonder if I was clearing out the wrong cache? What's the worst that happens if I clear the wrong one (one not meant for RT)? I'm guessing nothing too bad, as this is just a cache anyway. Oh, I'm on Debian 8, RT4.2.8, everything up to date. Thanks. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at uanet.se Tue Oct 4 10:59:38 2016 From: martin at uanet.se (Martin Petersson) Date: Tue, 4 Oct 2016 14:59:38 +0000 Subject: [rt-users] Close tickets with email In-Reply-To: <25406DA1-CE15-43C2-BDA9-A10934E58C3D@internap.com> References: <2111E8DB-CAB6-411B-B636-34A3430605F7@uanet.se> <25406DA1-CE15-43C2-BDA9-A10934E58C3D@internap.com> Message-ID: Hello Landon Yes, i just want to to close the tickets, could you help me with that scrip, please :) Martin Petersson IT-Konsult +46 (0)522 980 28, martin at uanet.se, www.uanet.se Gustaf Mattssons V?g 2, 451 50 Uddevalla, Orgnr: 556702-4095 [cid:A93F8E95-F3FC-464A-AF04-402618F91147 at uanet.local] 2 okt. 2016 kl. 00:01 skrev Landon Stewart >: On Sep 30, 2016, at 9:13 AM, Martin Petersson > wrote: Hello all I've heard that I can close a ticket by sending an email, how do I do that? It it's just closing tickets you want you could create a scrip on the queue for globally that looks for a condition and carries out the action to close a ticket. Alternatively if you want to allow more commands (be careful if users use the queue(s)) you could use something like RT::Extension::CommandByMail. I've used it in the past and it's quite good once people get used to using it. You can limit it's use to certain groups and change the Queue, Owner, Status, Custom Fields, etc with it by replying to tickets with certain content at the top of the reply. -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo-uanet-email.jpg Type: image/jpeg Size: 4419 bytes Desc: logo-uanet-email.jpg URL: From ahall at autodist.com Tue Oct 4 16:21:13 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 4 Oct 2016 16:21:13 -0400 Subject: [rt-users] Making ticket history easier to read In-Reply-To: <20161004172032.GQ4498@aart.rice.edu> References: <57F3E328.3020809@xs4all.nl> <20161004172032.GQ4498@aart.rice.edu> Message-ID: Thanks guys. For the RT::Extension::HistoryFilter, where should the config file go and what should it have? The readme says to put it in /etc, but that doesn't seem right. Even if it is, the readme never details the options or syntax that can be used in the file. I've installed the extension, but see no difference thus far. Upgrading from 4.2.8 to 4.4.x isn't an option at the moment, even if I can get a from-source install to work. I will look at the patch the link describes, though, and hope that an upgrade will be possible soon. Maybe over Christmas while no one is using the system for a few days. . Thanks. On Tue, Oct 4, 2016 at 1:20 PM, Kenneth Marshall wrote: > On Tue, Oct 04, 2016 at 07:13:12PM +0200, Joop wrote: > > On 4-10-2016 16:31, Alex Hall wrote: > > > Sorry to ask something I've already posted about, but this is the last > > > major area my boss and coworkers are all continuing to ask me about. > > > It's also one area on which I can find nothing at all. > > > > > > People want the ticket history to read more like a forum or instant > > > message conversation, rather than an email reply chain with tons of > > > extra links. Just for two replies on a ticket, here's what we all see: > > Have a look at RT::Extension::HistoryFilter which will hide quite a bit > > of history. > > > > Regards, > > > > Joop > > Hi, > > This functionality is included natively in newer RT releases. If just the > few additional links are problematic, you may want to look at: > > http://wiki.bestpractical.com/view/BasicVsAdvancedInterface > > It allow you to toggle to the SelfService interface which is much more > basic. If that does not work, you will need to take a look at the options > to customize your local system. If you do it cleanly, then updates are > much simpler. > > Regards, > Ken > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ktm at rice.edu Tue Oct 4 16:36:00 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Tue, 4 Oct 2016 15:36:00 -0500 Subject: [rt-users] Making ticket history easier to read In-Reply-To: References: <57F3E328.3020809@xs4all.nl> <20161004172032.GQ4498@aart.rice.edu> Message-ID: <20161004203600.GU4498@aart.rice.edu> On Tue, Oct 04, 2016 at 04:21:13PM -0400, Alex Hall wrote: > Thanks guys. For the RT::Extension::HistoryFilter, where should the config > file go and what should it have? The readme says to put it in /etc, but > that doesn't seem right. Even if it is, the readme never details the > options or syntax that can be used in the file. I've installed the > extension, but see no difference thus far. > > Upgrading from 4.2.8 to 4.4.x isn't an option at the moment, even if I can > get a from-source install to work. I will look at the patch the link > describes, though, and hope that an upgrade will be possible soon. Maybe > over Christmas while no one is using the system for a few days. . Thanks. > Hi Alex, On our system, the config file is: /opt/rt3/local/plugins/RT-Extension-HistoryFilter/etc/HistoryFilter_Config.pm and contains: ------------------ # configuration for RT::Extension::HistoryFilter Set( @HistoryFilterTypes, qw(Create Correspond Comment) ); 1; ------------------ Regards, Ken From reinhold at aiding.it Tue Oct 4 16:44:10 2016 From: reinhold at aiding.it (Reinhold Pescoller) Date: Tue, 4 Oct 2016 22:44:10 +0200 Subject: [rt-users] "Uncheck boxes to disable notifications" Message-ID: <57F4149A.4020002@aiding.it> Hi, I have this trouble. On resolving a ticket sometimes I don't want to notify the requestor. So I uncheck the box "Uncheck boxes to disable notifications" but the notification is send although. I noticed that when I reply to a ticket It works correctly. When I uncheck the box the notification is not send. Is it a bug or I miss some configuration? thanks in advance From lstewart at internap.com Tue Oct 4 15:23:58 2016 From: lstewart at internap.com (Landon Stewart) Date: Tue, 4 Oct 2016 19:23:58 +0000 Subject: [rt-users] Calculating the number of emails/replies/correspondences per ticket In-Reply-To: References: Message-ID: <54E0AA9C-B5E4-4700-A0CA-C879689B1B2C@internap.com> On Oct 4, 2016, at 10:28 AM, Anthony Nguyen-Duong > wrote: Hi, I'd like to find out how to add my own calculation to charts, as opposed to the limited Ticket Count and various time calculations available for charts. I'd like to add a calculation that calculates the number of emails/correspondences between an agent and a customer. I've tried looking through "lib/RT/Report/Tickets.pm" and "share/html/Search/Chart.html", but there's a lot of things I don't understand in there. Now, realistically I may not have to go through the effort of adding a calculation for charts. My end result is a table that has the columns: TicketId, NumberOfEmails (and I'll probably add some other things like Subject and whatnot). However, I'd prefer not to have a Custom Field for NumberOfEmails, reason being I'm not sure if there's a way to calculate the number of emails for all my past tickets and set all of them to their correct value apart from manually counting and inputting it. Instead, I was considering doing Callbacks or something to count the number of Correspondences in the Transactions table from the database and appending a column to a table. We have two CFs that are populated - ClientReplies, StaffReplies and can be used in the charts. I've done this twice before with two different approaches. The first approach worked like this: A crontab would use an action which would do this for each ticket. It would cycle through all the create and correspond transactions and attribute them to either staff or clients then update the CF when it was done. This meant that every single create,correspond transaction was processed for every ticket every time it ran. It was a wasteful way to do it. The second approach worked like this: Two conditions were created - One that detected 'staff' correspondence and another to detect 'client' (non-staff) correspondence. Depending on which condition was true an action to increment the appropriate CF (read the current CF value, add 1, delete the old CF value, record the new CF value). The net effect was that the CFs were updated only when it was necessary. This is a much more efficient way to do it. -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Tue Oct 4 17:10:57 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 4 Oct 2016 17:10:57 -0400 Subject: [rt-users] Making ticket history easier to read In-Reply-To: <20161004203600.GU4498@aart.rice.edu> References: <57F3E328.3020809@xs4all.nl> <20161004172032.GQ4498@aart.rice.edu> <20161004203600.GU4498@aart.rice.edu> Message-ID: Do you happen to know where that is on Debian? I can't locate a plugins directory anywhere I've tried, and putting it in /usr/request-tracker4/etc didn't seem to work correctly. Thanks. On Tue, Oct 4, 2016 at 4:36 PM, Kenneth Marshall wrote: > On Tue, Oct 04, 2016 at 04:21:13PM -0400, Alex Hall wrote: > > Thanks guys. For the RT::Extension::HistoryFilter, where should the > config > > file go and what should it have? The readme says to put it in /etc, but > > that doesn't seem right. Even if it is, the readme never details the > > options or syntax that can be used in the file. I've installed the > > extension, but see no difference thus far. > > > > Upgrading from 4.2.8 to 4.4.x isn't an option at the moment, even if I > can > > get a from-source install to work. I will look at the patch the link > > describes, though, and hope that an upgrade will be possible soon. Maybe > > over Christmas while no one is using the system for a few days. . Thanks. > > > > Hi Alex, > > On our system, the config file is: > > /opt/rt3/local/plugins/RT-Extension-HistoryFilter/etc/ > HistoryFilter_Config.pm > > and contains: > > ------------------ > # configuration for RT::Extension::HistoryFilter > > Set( @HistoryFilterTypes, qw(Create Correspond Comment) ); > > 1; > ------------------ > > Regards, > Ken > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lstewart at internap.com Tue Oct 4 17:30:29 2016 From: lstewart at internap.com (Landon Stewart) Date: Tue, 4 Oct 2016 21:30:29 +0000 Subject: [rt-users] Calculating the number of emails/replies/correspondences per ticket In-Reply-To: References: <54E0AA9C-B5E4-4700-A0CA-C879689B1B2C@internap.com> Message-ID: <9AC719EB-82E8-42D2-B1BE-D5A03C2B2986@internap.com> On Oct 4, 2016, at 2:09 PM, Anthony Nguyen-Duong > wrote: Hi Landon, Thanks for the reply. In your implementation, what kind of charts can you make with those CFs? We classify our tickets by subject matter so the chart I'm seeing is basically grouped by three CFs. It basically shows that X staff replies are made for every Y client replies broken down by each classification. It's not perfect but I haven't looked into using the calculation part of the graphing yet for CFs. I have implemented a "Number of Emails" CF before with a similar implementation as your second approach, but when charting I can only use it for grouping. So the table would look something like: Number of Emails | Ticket count ------------------------------------------------ 0 53 1 89 2 25 Further, wouldn't all tickets that already exist in my database have "(no value)" for the new CF? My understanding is that the new CF would only "kick in" for new tickets. I might re-consider implementing a CF again, but something similar to your first approach. The second approach is definitely more efficient, but my supervisor has asked that I implement it in a way that it is drawing from the data in the database rather than incrementing a counter, which could end up being less reliable. I think I would consider doing some creative joins and subqueries with the mysql tables to get this information instead but it will get complicated really quickly. I should have mentioned that after I used the second approach I described I had to update all the tickets with the first approach in order to get everything caught up but I only have to do it once after the second approach was finished and working. -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ktm at rice.edu Tue Oct 4 18:13:45 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Tue, 4 Oct 2016 17:13:45 -0500 Subject: [rt-users] Making ticket history easier to read In-Reply-To: References: <57F3E328.3020809@xs4all.nl> <20161004172032.GQ4498@aart.rice.edu> <20161004203600.GU4498@aart.rice.edu> Message-ID: <20161004221345.GY4498@aart.rice.edu> On Tue, Oct 04, 2016 at 05:10:57PM -0400, Alex Hall wrote: > Do you happen to know where that is on Debian? I can't locate a plugins > directory anywhere I've tried, and putting it in /usr/request-tracker4/etc > didn't seem to work correctly. Thanks. > Hi Alex, Try doing a find for a '*HistoryFilter*' directory. Unfortunately, I am unfamiliar with Debian. Regards, Ken From me at nileshgr.com Tue Oct 4 21:13:45 2016 From: me at nileshgr.com (Nilesh) Date: Wed, 5 Oct 2016 06:43:45 +0530 Subject: [rt-users] "On Reply" set ticket status to "resolved" In-Reply-To: <603189b7188173d9e6042a34a603e91c@webmail2016.univie.ac.at> References: <603189b7188173d9e6042a34a603e91c@webmail2016.univie.ac.at> Message-ID: You can write a simple scrip with a pre commit action to change the TicketObj status. See the api docs. -- Nilesh On 04-Oct-2016 5:22 PM, "David Schmidt" wrote: > Hello list, > > I would like to set a tickets status to "resolved" on reply. The wiki > mentions a "On Reply" action that I cannot find in my rt instance. > > https://rt-wiki.bestpractical.com/wiki/ManualScrips > > cheers > david > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From felix at d2france.fr Wed Oct 5 03:52:41 2016 From: felix at d2france.fr (Felix Defrance) Date: Wed, 5 Oct 2016 09:52:41 +0200 Subject: [rt-users] Change status to open when user respond to a ticket. In-Reply-To: <7aa12fb8-dc74-a063-44be-e27ba94b17e2@d2france.fr> References: <648a2401-f6f4-94e0-aeb0-3ddbd7ffc4bf@espresso-gridpoint.com> <7aa12fb8-dc74-a063-44be-e27ba94b17e2@d2france.fr> Message-ID: <5c152b63-ad1a-ce91-2890-80fbc806400a@d2france.fr> Hi, I tested this scrip last week and it work's for me ;) Cheers F?lix. Le 26/09/2016 ? 18:31, Felix Defrance a ?crit : > Thx for the doc Vinzenz. > > And now, do you think my scrip below will do the job ? (I'm not familar with perl..) > > ## --- Condition: User defined > ## --- Action: User defined > ## --- Template: blank > > ## --- Custom Condition: > > return 0 unless ( > $self->TransactionObj->Type eq "Correspond" > && $self->TicketObj->QueueObj->Name eq "customercare" > && $self->TicketObj->Status eq "customer_feedback_required" > ); > return 1; > > > > ## --- Custom action preparation code: > return 1; > > > ## --- Custom action cleanup code: > $self->TicketObj->SetStatus("open"); > > F?lix. > > > Le 26/09/2016 ? 16:15, Sinapius, Vinzenz a ?crit : >> >> Hi, >> >> >> >> I solved this by creating a custom scrip. Take a look at >> https://rt-wiki.bestpractical.com/wiki/CustomConditionSnippets and >> https://rt-wiki.bestpractical.com/wiki/CustomActionSnippets >> >> >> >> Cheers, >> >> Vinzenz >> >> Vinzenz Sinapius >> Information Technology | Informationstechnik >> >> *trace**tronic***GmbH >> Stuttgarter Str. 3 >> 01189 DRESDEN >> GERMANY >> >> Phone: +49 351 205768-167 >> Fax: +49 351 205768-999 >> E-mail: vinzenz.sinapius at tracetronic.de >> >> >> Head Office | Hauptsitz: Stuttgarter Str. 3, 01189 DRESDEN, GERMANY >> Managing Directors | Gesch?ftsf?hrer: Dr.-Ing. Rocco Deutschmann, >> Dr.-Ing. Peter Str?hle >> Registration Court | Registergericht: Amtsgericht Dresden, HRB 23 086 >> >> >> >> *Von:*rt-users [mailto:rt-users-bounces at lists.bestpractical.com] *Im >> Auftrag von *Piet Honkoop >> *Gesendet:* Montag, 26. September 2016 15:32 >> *An:* Felix Defrance ; >> rt-users at lists.bestpractical.com >> *Betreff:* Re: [rt-users] Change status to open when user respond to >> a ticket. >> >> >> >> Hi, >> >> I'm curious how to solve this one too :) >> >> even a bit more specific: if the requestor mails, reset status (so >> not 'anybody') >> >> Best regards, >> >> Piet >> >> >> >> On 26-9-2016 14:46, Felix Defrance wrote: >> >> Hi, >> >> >> I need to change ticket status to open when anybody respond to a >> ticket by email or web UI and when the ticket is in a specific >> status. >> >> This is a custom lifecycle, without stalled status, and which the >> stalled status is a custom named status. >> >> So anybody known, how i could do the same "lifecycle" as stalled, >> but for another status ? >> >> Thx, >> >> -- >> >> F?lix Defrance >> >> PGP: 0x0F04DC57 >> >> >> -- >> Dit bericht is gescanned op virussen en andere gevaarlijke >> inhoud door *MailScanner* en lijkt schoon te zijn. >> >> >> --------- >> >> RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training >> >> * Boston - October 24-26 >> >> * Los Angeles - Q1 2017 >> >> >> >> -- >> Dit bericht is gescanned op virussen en andere gevaarlijke >> inhoud door *MailScanner* en lijkt schoon te zijn. >> > > -- > F?lix Defrance > PGP: 0x0F04DC57 -- F?lix Defrance PGP: 0x0F04DC57 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tvillwock at codematix.de Wed Oct 5 05:18:25 2016 From: tvillwock at codematix.de (Tilo Villwock) Date: Wed, 5 Oct 2016 11:18:25 +0200 Subject: [rt-users] Attachments are dropped randomly from correspondence Message-ID: Hello, we're struggling with a problem where attachments get randomly dropped from a submitted correspondence in a ticket. we're using RT 4.4.1 in production on a RHEL 6 server with a PostgreSQL 9.1 backend on another server. The application is NOT configured with external storage for attachments and as such - as per your documentation - everything is being base64 encoded and inserted into the database. It also seems that uploading the attachments to the RT server works just fine because the previews (where applicable) work perfectly. However, on submit only a subset of the attachments apparently make it into the database. I've double checked this in the actual table in the database. A few more observations: * there is absolutely no error message in the logs (the level is set to debug) when files are being uploaded or the correspondence is submitted * there seems no correlation whatsoever to the file type, file size or number of files that have been attached as we've tested multiple scenarios (pdfs, zip archives, images, text files) and they all randomly failed to be included * there was one subscriber mail delivery error that occurred when attaching 8 images with a total size of ~20Mb (the error was reported as critical in the log, however, no further explanation) We've upgraded from a previous version (4.2.10) and it worked perfectly before with the same setup. The following is our RT_SiteConfig.pm with credentials redacted: Set( $rtname, ''); Set($LogToFile, 'debug'); Set($LogDir, '/var/log/rt'); Set($LogToFileNamed, "rt.log"); Set($WebPort, 443); Set($WebPath, '/rt'); Set($WebDomain , ''); my $port = RT->Config->Get('WebPort'); Set($WebBaseURL, ($port == 443? 'https': 'http') .'://' . RT->Config->Get('WebDomain') . ($port != 80 && $port != 443? ":$port" : '') ); Set($WebURL , $WebBaseURL . $WebPath . "/"); Set($Organization , ""); Set($Timezone , 'Europe/Berlin'); Set($DatabaseType , 'Pg'); Set($DatabaseHost , ''); Set($DatabaseRTHost , ''); Set($DatabasePort , ''); Set($DatabaseUser, ""); Set($DatabasePassword, ""); Set($DatabaseName, ""); Set($WebRemoteUserAuth, 1); Set($WebRemoteUserEnv, "HTTP_REMOTE_USER"); Set($WebRemoteUserContinuous, 1); Set($WebFallbackToRTLogin, 1); Set($WebRemoteUserAutocreate, 0); Set($UserAutocreateDefaultsOnLogin, 0); Set($OwnerEmail , ''); Set($MailCommand , 'sendmail'); Set($SendmailArguments , ''); Set($MaxAttachmentSize , 10000000); Set($RTAddressRegexp , ''); Set($CorrespondAddress , 'RT::CorrespondAddress.not.set'); Set($CommentAddress , 'RT::CommentAddress.not.set'); Set($TrustHTMLAttachments, 1); Set($RecordOutgoingEmail, 0); Set( %FullTextSearch, Enable => 1, Indexed => 1, Column => 'ContentIndex', Table => 'Attachments', ); Set($SearchResultsAutoRedirect, 1); Set($MaxInlineBody, 100000); # You must install Plugins on your own, this is only an example # of the correct syntax to use when activating them. # Plugin( "RT::Extension::QuickDelete" ); # Plugin( "RT::Extension::CommandByMail" ); Plugin('RT::Extension::JSGantt'); Set( %JSGanttOptions, DefaultFormat => 'day', # or week or month or quarter ShowOwner => 1, ShowProgress => 1, ShowDuration => 1, # Configurable JSGantt options # https://code.google.com/p/jsgantt/wiki/Documentation#4._Instantiate_JSGantt_using_() # CaptionType => 'Resource', # ShowStartDate => 1, # ShowEndDate => 1, # DateInputFormat => 'mm/dd/yyyy', # DateDisplayFormat => 'mm/dd/yyyy', # FormatArr => q|'day','week','month','quarter'|, # define your own color scheme: # ColorScheme => ['ff0000', 'ffff00', 'ff00ff', '00ff00', '00ffff', '0000ff'], # we color owners consistently by default, you can disable it via: # ColorSchemeByOwner => 0, # you can specify colors to use, unspecified owners will be # assigned to some color automatically: # ColorSchemeByOwner => { root => 'ff0000', foo => '00ff00' }, # if can't find both start and end dates, use this color NullDatesColor => 333, # to caculate day length WorkingHoursPerDay => 8, # used to set start/end if one exists but the other does not DefaultDays => 7, ); 1; The config variable 'WebRemoteUserEnv' is a modification of ours that simply allows us to use a different variable name than the previously hardcoded 'REMOTE_USER'. I also realize that setting MaxAttachmentSize has currently no effect since neither TruncateLongAttachments nor DropLongAttachments are set. I believe this is simply a remainder of an older config iteration. Has anyone run into the same difficulties? Am I missing something in the configuration? I wonder if this is somehow related to the new uploader component. Any pointers would be greatly appreciated. Thanks in advance. Best Regards Tilo Villwock codematix GmbH Felsbachstr. 5-7 07745 Jena email: tvillwock at codematix.de phone: +49 (0)3641 30 38 58 From ahall at autodist.com Wed Oct 5 08:33:06 2016 From: ahall at autodist.com (Alex Hall) Date: Wed, 5 Oct 2016 08:33:06 -0400 Subject: [rt-users] Making ticket history easier to read In-Reply-To: <20161004221345.GY4498@aart.rice.edu> References: <57F3E328.3020809@xs4all.nl> <20161004172032.GQ4498@aart.rice.edu> <20161004203600.GU4498@aart.rice.edu> <20161004221345.GY4498@aart.rice.edu> Message-ID: Oh right, of course. Still not used to all the commands available, I guess. For anyone who is reading this and needs to locate the folder, I found it at /usr/local/share/request-tracker4/Plugins In there is a folder for this extension, and presumably others I install. In the extension's folder is etc, and in that is the configuration file. All that said, I don't see a difference between the RT with this plugin active and the one without it. Just as much extraneous detail seems to be on both pages. It looks like my only recourse now is to try the basic interface option. On Tue, Oct 4, 2016 at 6:13 PM, Kenneth Marshall wrote: > On Tue, Oct 04, 2016 at 05:10:57PM -0400, Alex Hall wrote: > > Do you happen to know where that is on Debian? I can't locate a plugins > > directory anywhere I've tried, and putting it in > /usr/request-tracker4/etc > > didn't seem to work correctly. Thanks. > > > > Hi Alex, > > Try doing a find for a '*HistoryFilter*' directory. Unfortunately, I am > unfamiliar with Debian. > > Regards, > Ken > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Wed Oct 5 08:52:51 2016 From: ahall at autodist.com (Alex Hall) Date: Wed, 5 Oct 2016 08:52:51 -0400 Subject: [rt-users] Path to upgrade 4.2.8 Debian package to 4.4.1 source install? Message-ID: After thinking about it, I've come to realize that upgrading my test instance is the best way to go. I can practice upgrading, see if the new features will be useful on the active instance, and not have to worry about messing up a source code patch. I'm on 4.2.8, as that's what you get on Debian if you apt-get install request-tracker4. The latest release, though, is 4.4.1 I believe. What are the upgrade steps to upgrade, or am I better off removing RT and starting with 4.4.1? Either way, how do I keep my existing RT database (MySQL)? I believe there are db migration commands, but I don't know how they work. I've googled this, and have come up with only a couple hits, neither of which was a guide. I could have missed the article(s) people usually use for this process, of course. How do I upgrade, and/or is there already a resource people use to do this? Thanks! -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.schmidt at univie.ac.at Wed Oct 5 08:58:43 2016 From: david.schmidt at univie.ac.at (David Schmidt) Date: Wed, 05 Oct 2016 14:58:43 +0200 Subject: [rt-users] "On Reply" set ticket status to "resolved" In-Reply-To: References: <603189b7188173d9e6042a34a603e91c@webmail2016.univie.ac.at> Message-ID: <7230ee02eb2d599bcef7af6c326ea062@webmail2016.univie.ac.at> Hello Nilesh and thank you for your reply. Your advice would have been helpful if I hadnt looked for documentation before. Which I did. I am wildly searching for information using random search parameters instead of following a tutorial of some sort. Is there any? Luckily I found what I needed in another rt-users email. Here is my solution: =================================== Admin > Scrips > Create Description: OnCorrespondSetResolved Condition: On Correspond Action: User Defined Template: Blank Custom Condition: #leave empty Custom action preparation code: return 1; Custom action commit code: my ($status, $msg) = $self->TicketObj->SetStatus("resolved"); unless ( $status ) { $RT::Logger->error("Couldn't change status: $msg"); return 0; } return 1; ====================================== On 05.10.2016 03:13, Nilesh wrote: > You can write a simple scrip with a pre commit action to change the > TicketObj status. See the api docs. > > -- > Nilesh > > On 04-Oct-2016 5:22 PM, "David Schmidt" > wrote: > >> Hello list, >> >> I would like to set a tickets status to "resolved" on reply. The wiki >> mentions a "On Reply" action that I cannot find in my rt instance. >> >> https://rt-wiki.bestpractical.com/wiki/ManualScrips >> >> cheers >> david >> --------- >> RT 4.4 and RTIR training sessions, and a new workshop day! >> https://bestpractical.com/training >> * Boston - October 24-26 >> * Los Angeles - Q1 2017 >> From me at nileshgr.com Wed Oct 5 09:01:54 2016 From: me at nileshgr.com (Nilesh) Date: Wed, 5 Oct 2016 18:31:54 +0530 Subject: [rt-users] "On Reply" set ticket status to "resolved" In-Reply-To: <7230ee02eb2d599bcef7af6c326ea062@webmail2016.univie.ac.at> References: <603189b7188173d9e6042a34a603e91c@webmail2016.univie.ac.at> <7230ee02eb2d599bcef7af6c326ea062@webmail2016.univie.ac.at> Message-ID: This will change the status of the ticket, but it will set it resolved for every correspondence which you probably don't want. You can add the custom condition to check some pattern... I'm typing this on mobile can't type code. RT api is relatively easy to understand, sometimes you need to get into the code to see what's going on. -- Nilesh On 05-Oct-2016 6:28 PM, "David Schmidt" wrote: > Hello Nilesh and thank you for your reply. > > Your advice would have been helpful if I hadnt looked for documentation > before. Which I did. > I am wildly searching for information using random search parameters > instead of following a tutorial of some sort. Is there any? > > Luckily I found what I needed in another rt-users email. > > Here is my solution: > > =================================== > Admin > Scrips > Create > > > Description: OnCorrespondSetResolved > > Condition: On Correspond > > Action: User Defined > > Template: Blank > > Custom Condition: #leave empty > > Custom action preparation code: > return 1; > > Custom action commit code: > my ($status, $msg) = $self->TicketObj->SetStatus("resolved"); > unless ( $status ) { > $RT::Logger->error("Couldn't change status: $msg"); > return 0; > } > return 1; > ====================================== > > > On 05.10.2016 03:13, Nilesh wrote: > >> You can write a simple scrip with a pre commit action to change the >> TicketObj status. See the api docs. >> >> -- >> Nilesh >> >> On 04-Oct-2016 5:22 PM, "David Schmidt" >> wrote: >> >> Hello list, >>> >>> I would like to set a tickets status to "resolved" on reply. The wiki >>> mentions a "On Reply" action that I cannot find in my rt instance. >>> >>> https://rt-wiki.bestpractical.com/wiki/ManualScrips >>> >>> cheers >>> david >>> --------- >>> RT 4.4 and RTIR training sessions, and a new workshop day! >>> https://bestpractical.com/training >>> * Boston - October 24-26 >>> * Los Angeles - Q1 2017 >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel.bergmark at t3.se Wed Oct 5 09:24:55 2016 From: joel.bergmark at t3.se (Joel Bergmark) Date: Wed, 5 Oct 2016 13:24:55 +0000 Subject: [rt-users] Match isWatcher and part of subjectline Message-ID: Anyone has some cool code to match something like this: If iswatcher is then check if subject contains return 1; else return 0; I cant get this simple stuff to work, perl isn't my thing :-) Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.schmidt at univie.ac.at Wed Oct 5 10:12:31 2016 From: david.schmidt at univie.ac.at (David Schmidt) Date: Wed, 05 Oct 2016 16:12:31 +0200 Subject: [rt-users] show msg to user in scrip Message-ID: <2b78bde25e7716bc44adfb60ebbc0a69@webmail2016.univie.ac.at> Hello list I want to write a scrip that aborts the action the user is trying to commit and redisplay the current page with an added info message. How can i display an info message to the user? regards david From elacour at easter-eggs.com Wed Oct 5 10:15:08 2016 From: elacour at easter-eggs.com (Emmanuel Lacour) Date: Wed, 5 Oct 2016 16:15:08 +0200 Subject: [rt-users] show msg to user in scrip In-Reply-To: <2b78bde25e7716bc44adfb60ebbc0a69@webmail2016.univie.ac.at> References: <2b78bde25e7716bc44adfb60ebbc0a69@webmail2016.univie.ac.at> Message-ID: Le 05/10/2016 ? 16:12, David Schmidt a ?crit : > Hello list > > I want to write a scrip that aborts the action the user is trying to > commit and redisplay the current page with an added info message. How > can i display an info message to the user? > you cannot do this within a scrip (unless playing with some customfield to store the msg :(). the best here is probably to use a callback in the target page rather than a scrip. -- Easter-eggs Sp?cialiste GNU/Linux 44-46 rue de l'Ouest - 75014 Paris - France - M?tro Gait? Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76 mailto:elacour at easter-eggs.com - http://www.easter-eggs.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel.bergmark at t3.se Wed Oct 5 05:45:31 2016 From: joel.bergmark at t3.se (Joel Bergmark) Date: Wed, 5 Oct 2016 09:45:31 +0000 Subject: [rt-users] Postgresql 4.4.1 slow queries? In-Reply-To: References: Message-ID: Just want to update this, It seems that the issue at hand depends on if user is admin or has more dashboards available, hence most users now will only be users and have few dashboards available, the results of this is very fast performance (no lag or slow queries). Regards, Joel Fr?n: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] F?r Joel Bergmark Skickat: den 28 september 2016 16:58 Till: rt-users at lists.bestpractical.com ?mne: Re: [rt-users] Postgresql 4.4.1 slow queries? Hahaha, i used mysql syntax first "use rt4;" of course that messed it up :) Below is the output of EXPLAIN ANALYSE, but I need some help to interpret the relevant information in this :) QUERY PLAN --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Unique (cost=311.85..311.93 rows=1 width=411) (actual time=371.738..371.809 rows=49 loops=1) -> Sort (cost=311.85..311.86 rows=1 width=411) (actual time=371.736..371.739 rows=94 loops=1) Sort Key: main.name, main.id, main.password, main.authtoken, main.comments, main.signature, main.emailaddress, main.freeformcontactinfo, main.organization, main.realname, main.nickname, main.lang, main.gecos, main.homephone, main.workphone, main.mobilephone, main.pagerphone, main.address1, main.address2, main.city, main.state, main.zip, main.country, main.timezone, main.smimecertificate, main.creator, main.created, main.lastupdatedby, main.lastupdated Sort Method: quicksort Memory: 59kB -> Nested Loop (cost=1.82..311.84 rows=1 width=411) (actual time=0.321..370.336 rows=94 loops=1) -> Nested Loop (cost=1.55..309.32 rows=2 width=415) (actual time=0.076..22.220 rows=21011 loops=1) Join Filter: (principals_1.id = cachedgroupmembers_4.memberid) -> Nested Loop (cost=1.12..306.10 rows=1 width=419) (actual time=0.067..0.937 rows=57 loops=1) -> Nested Loop (cost=0.70..299.02 rows=4 width=415) (actual time=0.060..0.554 rows=57 loops=1) -> Index Only Scan using disgroumem on cachedgroupmembers cachedgroupmembers_2 (cost=0.42..80.08 rows=35 width=4) (actual time=0.052..0.122 rows=58 loops=1) Index Cond: ((groupid = 4) AND (disabled = 0)) Heap Fetches: 57 -> Index Scan using users_pkey on users main (cost=0.28..6.25 rows=1 width=411) (actual time=0.005..0.006 rows=1 loops=58) Index Cond: (id = cachedgroupmembers_2.memberid) -> Index Scan using principals_pkey on principals principals_1 (cost=0.42..1.76 rows=1 width=4) (actual time=0.005..0.006 rows=1 loops=57) Index Cond: (id = main.id) Filter: ((id <> 1) AND (disabled = 0) AND ((principaltype)::text = 'User'::text)) -> Index Scan using cachedgroupmembers3 on cachedgroupmembers cachedgroupmembers_4 (cost=0.42..3.15 rows=6 width=8) (actual time=0.006..0.291 rows=369 loops=57) Index Cond: (memberid = main.id) Filter: (disabled = 0) Rows Removed by Filter: 0 -> Index Only Scan using acl1 on acl acl_3 (cost=0.28..1.25 rows=1 width=4) (actual time=0.016..0.016 rows=0 loops=21011) Index Cond: ((rightname = 'OwnTicket'::text) AND (principaltype = 'Group'::text) AND (principalid = cachedgroupmembers_4.groupid)) Filter: ((((objecttype)::text = 'RT::Queue'::text) AND (objectid = 56)) OR (((objecttype)::text = 'RT::System'::text) AND (objectid = 1))) Rows Removed by Filter: 0 Heap Fetches: 1615 Total runtime: 371.982 ms (27 rows) Regards, Joel Fr?n: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] F?r Joel Bergmark Skickat: den 27 september 2016 09:53 Till: rt-users at lists.bestpractical.com ?mne: [rt-users] Postgresql 4.4.1 slow queries? Hi, After upgrading to version 4.4.1 i have noticed that the SQL-queries takes significant longer time to produce a result, on average on my system, running Ubuntu 14.04 LTS, Postgres 9.3, Apache with perlmod. 8 gigram and plenty of CPU in a vmware cluster on SSD:s (likely not a hardware issue). We did not experience RT to have been this slow on 4.4.0. Each query takes about 350ms to give a result, occasionally up to 4000ms have been seen, not a big problem but somethings that needs to be fixed. Postgres have access to shared buffers = 2048 and effective_cache_size = 4096MB that was modified yesterday but queries still are same speed. I have read plenty on postgres optimizing but not much seem to make a difference, and the https://rt-wiki.bestpractical.com/wiki/PerformanceTuning seems a bit out of date. Example of problem: 192.168.2.65 - - [27/Sep/2016:09:06:49 +0200] "GET /Search/Build.html?NewQuery=1 HTTP/1.1" 200 12072 Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.101 Safari/537.36" 09:06:52 CEST LOG: duration: 3362.432 ms execute dbdpg_p2242_1745: SELECT DISTINCT main.* FROM Users main CROSS JOIN ACL ACL_3 JOIN Principals Principals_1 ON ( Principals_1.id = main.id ) JOIN CachedGroupMembers CachedGroupMembers_2 ON ( CachedGroupMembers_2.MemberId = Principals_1.id ) JOIN CachedGroupMembers CachedGroupMembers_4 ON ( CachedGroupMembers_4.MemberId = Principals_1.id ) WHERE ((ACL_3.ObjectType = 'RT::Queue') OR (ACL_3.ObjectType = 'RT::System' AND ACL_3.ObjectId = 1)) AND (ACL_3.PrincipalId = CachedGroupMembers_4.GroupId) AND (ACL_3.PrincipalType = 'Group') AND (ACL_3.RightName = 'OwnTicket' OR ACL_3.RightName = 'SuperUser') AND (CachedGroupMembers_2.Disabled = '0') AND (CachedGroupMembers_2.GroupId = '4') AND (CachedGroupMembers_4.Disabled = '0') AND (Principals_1.Disabled = '0') AND (Principals_1.PrincipalType = 'User') AND (Principals_1.id != '1') ORDER BY main.Name ASC I'm looking for any suggestions about this, and I'm not an expert on postgresql, but guess that this could have something to do with RT:s "($UseSQLForACLChecks, 1);" or modperl via Apache or simply some index in postgres? Appreciate any feedback :-) Regards, Joel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvdwege at xs4all.nl Wed Oct 5 15:20:06 2016 From: jvdwege at xs4all.nl (Joop) Date: Wed, 5 Oct 2016 21:20:06 +0200 Subject: [rt-users] Making ticket history easier to read In-Reply-To: References: <57F3E328.3020809@xs4all.nl> <20161004172032.GQ4498@aart.rice.edu> <20161004203600.GU4498@aart.rice.edu> <20161004221345.GY4498@aart.rice.edu> Message-ID: <57F55266.7080509@xs4all.nl> On 5-10-2016 14:33, Alex Hall wrote: > Oh right, of course. Still not used to all the commands available, I > guess. For anyone who is reading this and needs to locate the folder, > I found it at > /usr/local/share/request-tracker4/Plugins > In there is a folder for this extension, and presumably others I > install. In the extension's folder is etc, and in that is the > configuration file. > > All that said, I don't see a difference between the RT with this > plugin active and the one without it. Just as much extraneous detail > seems to be on both pages. It looks like my only recourse now is to > try the basic interface option. > Hmm, thats strange as I seem to remember that the only things being shown is Create/Correspond/Comment. There is a user preference which can add back all the transaction types available. Its in the Ticket Display box at the end and that can be reached using the righthand menu Settings/Preferences. I'm thinking that the extension is not enabled. (See the menu Admin/Tools/SystemConfiguration). I'm on RT-4.4.0 Regards, Joop From ktm at rice.edu Wed Oct 5 15:29:24 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Wed, 5 Oct 2016 14:29:24 -0500 Subject: [rt-users] Making ticket history easier to read In-Reply-To: <57F55266.7080509@xs4all.nl> References: <57F3E328.3020809@xs4all.nl> <20161004172032.GQ4498@aart.rice.edu> <20161004203600.GU4498@aart.rice.edu> <20161004221345.GY4498@aart.rice.edu> <57F55266.7080509@xs4all.nl> Message-ID: <20161005192924.GJ4498@aart.rice.edu> On Wed, Oct 05, 2016 at 09:20:06PM +0200, Joop wrote: > On 5-10-2016 14:33, Alex Hall wrote: > > Oh right, of course. Still not used to all the commands available, I > > guess. For anyone who is reading this and needs to locate the folder, > > I found it at > > /usr/local/share/request-tracker4/Plugins > > In there is a folder for this extension, and presumably others I > > install. In the extension's folder is etc, and in that is the > > configuration file. > > > > All that said, I don't see a difference between the RT with this > > plugin active and the one without it. Just as much extraneous detail > > seems to be on both pages. It looks like my only recourse now is to > > try the basic interface option. > > > Hmm, thats strange as I seem to remember that the only things being > shown is Create/Correspond/Comment. There is a user preference which can > add back all the transaction types available. Its in the Ticket Display > box at the end and that can be reached using the righthand menu > Settings/Preferences. > I'm thinking that the extension is not enabled. (See the menu > Admin/Tools/SystemConfiguration). I'm on RT-4.4.0 > > Regards, > > Joop > Hi Joop, Alex is referring to the things like 'Brief headers -- Full headers' and 'Download (untitled) / with headers' links that adorn the updates. Regards, Ken From ahall at autodist.com Wed Oct 5 15:56:07 2016 From: ahall at autodist.com (Alex Hall) Date: Wed, 5 Oct 2016 15:56:07 -0400 Subject: [rt-users] Making ticket history easier to read In-Reply-To: <20161005192924.GJ4498@aart.rice.edu> References: <57F3E328.3020809@xs4all.nl> <20161004172032.GQ4498@aart.rice.edu> <20161004203600.GU4498@aart.rice.edu> <20161004221345.GY4498@aart.rice.edu> <57F55266.7080509@xs4all.nl> <20161005192924.GJ4498@aart.rice.edu> Message-ID: The plugin seems to be enabled. I see it in the plugin variable, in the html path list, the loaded configuration files, and so on. I think it's doing its job, but what I'm hoping for isn't the problem it aims to solve. Hopefully the basic interface preference in 4.4.x is closer to what I'm being asked to provide, or it'll be source code time and I don't know Perl or the template language used in RT at all. Should be a good time. :) At least I now know where to customize the transaction types visible, and was reminded that system configuration is a great place to see everything. I updated the root in my web server after seeing that RT goes to /usr/local/share/request-tracker4/html first, and I know where to check on plugin files being loaded. On Wed, Oct 5, 2016 at 3:29 PM, Kenneth Marshall wrote: > On Wed, Oct 05, 2016 at 09:20:06PM +0200, Joop wrote: > > On 5-10-2016 14:33, Alex Hall wrote: > > > Oh right, of course. Still not used to all the commands available, I > > > guess. For anyone who is reading this and needs to locate the folder, > > > I found it at > > > /usr/local/share/request-tracker4/Plugins > > > In there is a folder for this extension, and presumably others I > > > install. In the extension's folder is etc, and in that is the > > > configuration file. > > > > > > All that said, I don't see a difference between the RT with this > > > plugin active and the one without it. Just as much extraneous detail > > > seems to be on both pages. It looks like my only recourse now is to > > > try the basic interface option. > > > > > Hmm, thats strange as I seem to remember that the only things being > > shown is Create/Correspond/Comment. There is a user preference which can > > add back all the transaction types available. Its in the Ticket Display > > box at the end and that can be reached using the righthand menu > > Settings/Preferences. > > I'm thinking that the extension is not enabled. (See the menu > > Admin/Tools/SystemConfiguration). I'm on RT-4.4.0 > > > > Regards, > > > > Joop > > > > Hi Joop, > > Alex is referring to the things like 'Brief headers -- Full headers' and > 'Download (untitled) / with headers' links that adorn the updates. > > Regards, > Ken > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Wed Oct 5 20:49:48 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Wed, 5 Oct 2016 19:49:48 -0500 Subject: [rt-users] Path to upgrade 4.2.8 Debian package to 4.4.1 source install? In-Reply-To: References: Message-ID: Hi Alex, You don't need a guide. You can follow the install instructions that come with the RT source code. You can use the same database - just be sure to apply the upgrade steps. -m On Wed, Oct 5, 2016 at 7:52 AM, Alex Hall wrote: > After thinking about it, I've come to realize that upgrading my test > instance is the best way to go. I can practice upgrading, see if the new > features will be useful on the active instance, and not have to worry about > messing up a source code patch. > > I'm on 4.2.8, as that's what you get on Debian if you apt-get install > request-tracker4. The latest release, though, is 4.4.1 I believe. What are > the upgrade steps to upgrade, or am I better off removing RT and starting > with 4.4.1? Either way, how do I keep my existing RT database (MySQL)? I > believe there are db migration commands, but I don't know how they work. > I've googled this, and have come up with only a couple hits, neither of > which was a guide. I could have missed the article(s) people usually use for > this process, of course. How do I upgrade, and/or is there already a > resource people use to do this? Thanks! > > -- > Alex Hall > Automatic Distributors, IT department > ahall at 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 From andrew at etc.gen.nz Wed Oct 5 22:22:59 2016 From: andrew at etc.gen.nz (Andrew Ruthven) Date: Thu, 06 Oct 2016 15:22:59 +1300 Subject: [rt-users] Create ticket via API ignores Requestors field on notify requestors? Message-ID: <1475720579.18299.15.camel@etc.gen.nz> Hey, We're running RT 4.2.8 and using the API to create some tickets. But, no notification is sent out to the requestor we're setting.??We are using a privileged account to connect to the API. I can see the requestor set on the ticket when I check the website, but no recipients are considered when the scrip runs: Oct??6 14:21:09 cat-prod-rt RT: [1145] Working on mailfield To; recipients are??(/usr/share/request- tracker4/lib/RT/Action/SendEmail.pm:639) ... Oct??6 14:21:09 cat-prod-rt RT: [1145] No recipients found for deferred delivery on transaction #213681 (/usr/share/request-tracker4/lib/RT/ Action/SendEmail.pm:691) Oct??6 14:21:09 cat-prod-rt RT: [1145] #25796/213681 - Scrip 22 On Create Notify Requestor Is there anything we can do to make this work? Cheers, Andrew --? Andrew Ruthven, Wellington, New Zealand andrew at etc.gen.nz?????????????| linux.conf.au 2017, Hobart, AU ? New Zealand's only Cloud:???| ? The Future of Open Source https://catalyst.net.nz/cloud | ? ? http://linux.conf.au From kenn.crocker at gmail.com Wed Oct 5 22:37:06 2016 From: kenn.crocker at gmail.com (Kenneth Crocker) Date: Wed, 5 Oct 2016 19:37:06 -0700 Subject: [rt-users] Create ticket via API ignores Requestors field on notify requestors? In-Reply-To: <1475720579.18299.15.camel@etc.gen.nz> References: <1475720579.18299.15.camel@etc.gen.nz> Message-ID: Andrew, If RT believes the Requester is also the actor requesting the ticket, it doesn't usually (depends on default settings for "Notify Actor") send a notification to the person making the request. It's considered redundant. Read about the setting and change the setting. Good Luck. Casey On Oct 5, 2016 7:30 PM, "Andrew Ruthven" wrote: > Hey, > > We're running RT 4.2.8 and using the API to create some tickets. But, > no notification is sent out to the requestor we're setting. We are > using a privileged account to connect to the API. > > I can see the requestor set on the ticket when I check the website, but > no recipients are considered when the scrip runs: > > Oct 6 14:21:09 cat-prod-rt RT: [1145] Working on mailfield To; > recipients are (/usr/share/request- > tracker4/lib/RT/Action/SendEmail.pm:639) > ... > Oct 6 14:21:09 cat-prod-rt RT: [1145] No recipients found for deferred > delivery on transaction #213681 (/usr/share/request-tracker4/lib/RT/ > Action/SendEmail.pm:691) > Oct 6 14:21:09 cat-prod-rt RT: [1145] 5796-22-0 at rt.catalyst.net.nz> #25796/213681 - Scrip 22 On Create Notify > Requestor > > Is there anything we can do to make this work? > > Cheers, > Andrew > > -- > Andrew Ruthven, Wellington, New Zealand > andrew at etc.gen.nz | linux.conf.au 2017, Hobart, AU > New Zealand's only Cloud: | The Future of Open Source > https://catalyst.net.nz/cloud | http://linux.conf.au > > > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at etc.gen.nz Wed Oct 5 23:08:25 2016 From: andrew at etc.gen.nz (Andrew Ruthven) Date: Thu, 06 Oct 2016 16:08:25 +1300 Subject: [rt-users] Create ticket via API ignores Requestors field on notify requestors? In-Reply-To: References: <1475720579.18299.15.camel@etc.gen.nz> Message-ID: <1475723305.18299.17.camel@etc.gen.nz> Hi Casey, Thanks for that, the requestor is a different email address from what is being used for the actor making the API call but the name is the same. I've just changed the name and we've retested. I can see NotifyActor correctly decide not to hassle the person who created the ticket. Cheers, Andrew On Wed, 2016-10-05 at 19:37 -0700, Kenneth Crocker wrote: > Andrew, > If RT believes the Requester is also the actor requesting the ticket, > it doesn't usually (depends on default settings for "Notify Actor") > send a notification to the person making the request. It's considered > redundant. Read about the setting and change the setting. > Good Luck. > Casey > > On Oct 5, 2016 7:30 PM, "Andrew Ruthven" wrote: > > Hey, > > > > We're running RT 4.2.8 and using the API to create some tickets. > > But, > > no notification is sent out to the requestor we're setting.??We are > > using a privileged account to connect to the API. > > > > I can see the requestor set on the ticket when I check the website, > > but > > no recipients are considered when the scrip runs: > > > > Oct??6 14:21:09 cat-prod-rt RT: [1145] Working on mailfield To; > > recipients are??(/usr/share/request- > > tracker4/lib/RT/Action/SendEmail.pm:639) > > ... > > Oct??6 14:21:09 cat-prod-rt RT: [1145] No recipients found for > > deferred > > delivery on transaction #213681 (/usr/share/request- > > tracker4/lib/RT/ > > Action/SendEmail.pm:691) > > Oct??6 14:21:09 cat-prod-rt RT: [1145] > 1698.2 > > 5796-22-0 at rt.catalyst.net.nz> #25796/213681 - Scrip 22 On Create > > Notify > > Requestor > > > > Is there anything we can do to make this work? > > > > Cheers, > > Andrew > > > > --? > > Andrew Ruthven, Wellington, New Zealand > > andrew at etc.gen.nz?????????????| linux.conf.au 2017, Hobart, AU > > ? New Zealand's only Cloud:???| ? The Future of Open Source > > https://catalyst.net.nz/cloud | ? ? http://linux.conf.au > > > > > > > > --------- > > RT 4.4 and RTIR training sessions, and a new workshop day! https:// > > bestpractical.com/training > > * Boston - October 24-26 > > * Los Angeles - Q1 2017 -- Andrew Ruthven, Wellington, New Zealand andrew at etc.gen.nz?????????????| linux.conf.au 2017, Hobart, AU ? New Zealand's only Cloud:???| ? The Future of Open Source https://catalyst.net.nz/cloud | ? ? http://linux.conf.au From david.schmidt at univie.ac.at Thu Oct 6 07:53:19 2016 From: david.schmidt at univie.ac.at (David Schmidt) Date: Thu, 06 Oct 2016 13:53:19 +0200 Subject: [rt-users] Adding an Action link to Ticket/Display.html/BeforeActionList Message-ID: <82b05b31ff8f6663a3258845b6cf0785@webmail2016.univie.ac.at> When/Where are the actions added to @Actions? 1) for some reason the \@Actions ArrayRef is empty when I access it in the callback. Where do the Actions come from? I am talking about the links "Reply", "Comment", "Forward", "Stall", ... 2) If I push a simple string to \@Actions they end up in a yellow "Results" Widget. see attached screenshot #local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList <%init> use Data::Dumper; $RT::Logger->debug("\n\n###\n".Dumper($Actions)."\n\n###\n"); push @$Actions, "foo"; <%args> $Actions => undef $TicketObj => undef Output: ### $VAR1 = []; ### (/opt/rt4/local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList:3) -------------- next part -------------- A non-text attachment was scrubbed... Name: Actions.png Type: image/png Size: 19801 bytes Desc: not available URL: From david.schmidt at univie.ac.at Thu Oct 6 08:40:48 2016 From: david.schmidt at univie.ac.at (David Schmidt) Date: Thu, 06 Oct 2016 14:40:48 +0200 Subject: [rt-users] Adding an Action link to Ticket/Display.html/BeforeActionList In-Reply-To: <82b05b31ff8f6663a3258845b6cf0785@webmail2016.univie.ac.at> References: <82b05b31ff8f6663a3258845b6cf0785@webmail2016.univie.ac.at> Message-ID: <89d98907bf3a7d617c5940ad8dea19ce@webmail2016.univie.ac.at> I'll answer myself: if an action is not a ref it is rendered in the result box. bit unexpected but im sure there is a reason. (code in share/html/Elements/ListActions) https://github.com/bestpractical/rt/blob/stable/share/html/Elements/ListActions#L49 On 06.10.2016 13:53, David Schmidt wrote: > When/Where are the actions added to @Actions? > > 1) for some reason the \@Actions ArrayRef is empty when I access it in > the callback. Where do the Actions come from? I am talking about the > links "Reply", "Comment", "Forward", "Stall", ... > > 2) If I push a simple string to \@Actions they end up in a yellow > "Results" Widget. see attached screenshot > > > #local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList > <%init> > use Data::Dumper; > $RT::Logger->debug("\n\n###\n".Dumper($Actions)."\n\n###\n"); > push @$Actions, "foo"; > > > <%args> > $Actions => undef > $TicketObj => undef > > > > Output: > ### > $VAR1 = []; > > > ### > (/opt/rt4/local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList:3) > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From joel.bergmark at t3.se Thu Oct 6 10:14:04 2016 From: joel.bergmark at t3.se (Joel Bergmark) Date: Thu, 6 Oct 2016 14:14:04 +0000 Subject: [rt-users] Match isWatcher and part of subjectline In-Reply-To: References: Message-ID: Could anyone assist with this scrip? This matches $match2 at every time, regardless if both $match1 and $match2 is present in the subject-line. Hence the If(index part is not working, any good perl-people that can correct it? Both matches must be present to not return 0; my $match1 = "InformationX"; my $match2 = "[Y]"; my $subject = $self->TicketObj->Subject; if (index(lc($subject), ($match1 && $match2)) eq -1) { return 0; } else { return 1 if $self->TicketObj->IsWatcher( Type => 'Requestor', Email => 'email-adress at se.se' ); return 0; } Regards, Fr?n: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] F?r Joel Bergmark Skickat: den 5 oktober 2016 15:25 Till: rt-users at lists.bestpractical.com ?mne: [rt-users] Match isWatcher and part of subjectline Anyone has some cool code to match something like this: If iswatcher is then check if subject contains return 1; else return 0; I cant get this simple stuff to work, perl isn't my thing :-) Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffrey.pilant at bayer.com Thu Oct 6 15:50:26 2016 From: jeffrey.pilant at bayer.com (Jeffrey Pilant) Date: Thu, 6 Oct 2016 19:50:26 +0000 Subject: [rt-users] Match isWatcher and part of subjectline Message-ID: <7fbfcec47c864b0399f3036ca4b67fe4@MOXDEA.na.bayer.cnb> Joel Bergmark Writes: >Could anyone assist with this scrip? > >This matches $match2 at every time, regardless if both $match1 and $match2 is >present in the subject-line. Hence the If(index part is not working, any good >perl-people that can correct it? Both matches must be present to not return 0; > >my $match1 = "InformationX"; >my $match2 = "[Y]"; >my $subject = $self->TicketObj->Subject; >if (index(lc($subject), ($match1 && $match2)) eq -1) The "&&" operator is a logical short-circuit AND. If the first op ($match1) is false it returns false without evaluating the second op ($match2). Neither $match1 nor $match2 is a logical, so it makes no sense. Try this instead: if ((index(lc($subject), $match1) >= 0) && (index(lc($subject), $match2) >= 0)) reference: http://perldoc.perl.org/perlop.html#C-style-Logical-And http://perldoc.perl.org/functions/index.html Another consideration: you are testing against a lower case version of the subject, yet both strings have upper case characters. You will never find either string. You need to AND the result of both index functions, to verify both are found. /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. ________________________________________________________________________ From nbojkic at kbsplit.hr Fri Oct 7 03:09:44 2016 From: nbojkic at kbsplit.hr (nikola84) Date: Fri, 7 Oct 2016 00:09:44 -0700 (MST) Subject: [rt-users] Restrict ticket access by Requestor Organization Message-ID: <1475824184676-62697.post@n7.nabble.com> 1. I would like to restrict certain user to only view in Search field( in upper right corner) but at the same time to not have ability to administrate(not having Admincc role) tickets which are defined by it's organization(department) name ? Such department name Requestor enters in Mandatory Custom field when filing for problem 2. Can I as root restrict in Search Criteria in Query Builder same Criteria for some user so that when user uses it's query Builder that some of criteria is disabled to include in query? Any help is much appreciated Nikola -- View this message in context: http://requesttracker.8502.n7.nabble.com/Restrict-ticket-access-by-Requestor-Organization-tp62697.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From ahall at autodist.com Fri Oct 7 11:24:06 2016 From: ahall at autodist.com (Alex Hall) Date: Fri, 7 Oct 2016 11:24:06 -0400 Subject: [rt-users] Queue template not available for queue scripts Message-ID: Hello all, I'm kind of jumping around, both trying to update the test RT instance and do more with our production instance between other projects, so sorry for seeming to be all over the place with questions. I've been asked to disallow email replies (easily done) but to offer a link in the body of email notifications for users to click that will open a new email. Essentially, the whole quoted text thing is making everyone so mad they want to force responses to always come from a new message. I made my first attempt at a template for this, but can't seem to assign it to the queue's script. I went to queues > Technology (where I'll be testing this) and created a new template. I saved it, and I see it in the list of queue templates. I then went to Scripts from the same queue, chose a script, and tried to pull up my newly made custom template. It is nowhere in the list of templates, though. I see all the stock ones, but the one I just made and which appears in the queue templates list fails to appear in the list of templates for scripts. Did I do something wrong, or miss a step? I don't want this to apply to all queues until I know it works, so I need to limit it to just one queue. Do I have to make my template the same name as a global one, or can I customize a script to use my custom template? Thanks. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ktm at rice.edu Fri Oct 7 11:34:04 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Fri, 7 Oct 2016 10:34:04 -0500 Subject: [rt-users] Queue template not available for queue scripts In-Reply-To: References: Message-ID: <20161007153404.GR4498@aart.rice.edu> On Fri, Oct 07, 2016 at 11:24:06AM -0400, Alex Hall wrote: > Hello all, > I'm kind of jumping around, both trying to update the test RT instance and > do more with our production instance between other projects, so sorry for > seeming to be all over the place with questions. > > I've been asked to disallow email replies (easily done) but to offer a link > in the body of email notifications for users to click that will open a new > email. Essentially, the whole quoted text thing is making everyone so mad > they want to force responses to always come from a new message. I made my > first attempt at a template for this, but can't seem to assign it to the > queue's script. > > I went to queues > Technology (where I'll be testing this) and created a > new template. I saved it, and I see it in the list of queue templates. I > then went to Scripts from the same queue, chose a script, and tried to pull > up my newly made custom template. It is nowhere in the list of templates, > though. I see all the stock ones, but the one I just made and which appears > in the queue templates list fails to appear in the list of templates for > scripts. > > Did I do something wrong, or miss a step? I don't want this to apply to all > queues until I know it works, so I need to limit it to just one queue. Do I > have to make my template the same name as a global one, or can I customize > a script to use my custom template? Thanks. > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com Hi Alex, It sounds like you may want to have something in your Email template that you send that will set-off the reply in a way that you can filter it on the inbound side: ---REPLY BELOW THIS LINE--- ---REPLY ABOVE THIS LINE--- Then clip the message on the receiving side. That is pretty much what all of the systems that I have seen do. It is not my personal preference because you lose the ability to reference items from a previous update in-line. Regards, Ken From ahall at autodist.com Fri Oct 7 11:36:13 2016 From: ahall at autodist.com (Alex Hall) Date: Fri, 7 Oct 2016 11:36:13 -0400 Subject: [rt-users] Queue template not available for queue scripts In-Reply-To: <20161007153404.GR4498@aart.rice.edu> References: <20161007153404.GR4498@aart.rice.edu> Message-ID: Yes, that would be the ideal solution, and I would dearly love to have that. From what I've seen so far, and from what people have said on this list, it doesn't seem like RT can do that. If there's a way, I think everyone who works at this company would greatly appreciate that knowledge. I'm not good enough with Perl to delve into a custom email parser or anything, but do you know of a way or extension that offers this functionality? Thanks. On Fri, Oct 7, 2016 at 11:34 AM, Kenneth Marshall wrote: > On Fri, Oct 07, 2016 at 11:24:06AM -0400, Alex Hall wrote: > > Hello all, > > I'm kind of jumping around, both trying to update the test RT instance > and > > do more with our production instance between other projects, so sorry for > > seeming to be all over the place with questions. > > > > I've been asked to disallow email replies (easily done) but to offer a > link > > in the body of email notifications for users to click that will open a > new > > email. Essentially, the whole quoted text thing is making everyone so mad > > they want to force responses to always come from a new message. I made my > > first attempt at a template for this, but can't seem to assign it to the > > queue's script. > > > > I went to queues > Technology (where I'll be testing this) and created a > > new template. I saved it, and I see it in the list of queue templates. I > > then went to Scripts from the same queue, chose a script, and tried to > pull > > up my newly made custom template. It is nowhere in the list of templates, > > though. I see all the stock ones, but the one I just made and which > appears > > in the queue templates list fails to appear in the list of templates for > > scripts. > > > > Did I do something wrong, or miss a step? I don't want this to apply to > all > > queues until I know it works, so I need to limit it to just one queue. > Do I > > have to make my template the same name as a global one, or can I > customize > > a script to use my custom template? Thanks. > > > > -- > > Alex Hall > > Automatic Distributors, IT department > > ahall at autodist.com > > > Hi Alex, > > It sounds like you may want to have something in your Email template that > you send that will set-off the reply in a way that you can filter it on the > inbound side: > > ---REPLY BELOW THIS LINE--- > > ---REPLY ABOVE THIS LINE--- > > Then clip the message on the receiving side. That is pretty much what all > of the systems that I have seen do. It is not my personal preference > because > you lose the ability to reference items from a previous update in-line. > > Regards, > Ken > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ktm at rice.edu Fri Oct 7 11:41:26 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Fri, 7 Oct 2016 10:41:26 -0500 Subject: [rt-users] Queue template not available for queue scripts In-Reply-To: References: <20161007153404.GR4498@aart.rice.edu> Message-ID: <20161007154126.GS4498@aart.rice.edu> On Fri, Oct 07, 2016 at 11:36:13AM -0400, Alex Hall wrote: > Yes, that would be the ideal solution, and I would dearly love to have > that. From what I've seen so far, and from what people have said on this > list, it doesn't seem like RT can do that. If there's a way, I think > everyone who works at this company would greatly appreciate that knowledge. > I'm not good enough with Perl to delve into a custom email parser or > anything, but do you know of a way or extension that offers this > functionality? Thanks. > Hi Alex, You should be able to do a filter with something like procmail that handles that process before the message ever gets into RT. Setting up the Email template for the message is, of course, easy. No need to know anything about RT code at all. Regards, Ken From ahall at autodist.com Fri Oct 7 15:53:05 2016 From: ahall at autodist.com (Alex Hall) Date: Fri, 7 Oct 2016 15:53:05 -0400 Subject: [rt-users] Modifying global RT homepage for all users? Message-ID: Hello list, yet again, We're trying to add a saved search, to let the user view owned and CC-ed tickets. I have the search made, and stored as a system-wide item. I have a dashboard with the search on it. All users can select that dashboard if they want to. The problem is that no one is going to select the secondary dashboard all the time, and they get their default one each time they go to the homepage from anywhere else in RT or log out and back in. Is there a way to have admins edit the system-wide homepage, to add this saved search to everyone's at once? We'd also like to remove another portlet that is no longer required due to what the search offers. Put simply, how can we modify the homepage for all users at once? Thanks, as always, for any help. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ktm at rice.edu Fri Oct 7 15:57:04 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Fri, 7 Oct 2016 14:57:04 -0500 Subject: [rt-users] Modifying global RT homepage for all users? In-Reply-To: References: Message-ID: <20161007195704.GW4498@aart.rice.edu> On Fri, Oct 07, 2016 at 03:53:05PM -0400, Alex Hall wrote: > Hello list, yet again, > We're trying to add a saved search, to let the user view owned and CC-ed > tickets. I have the search made, and stored as a system-wide item. I have a > dashboard with the search on it. All users can select that dashboard if > they want to. The problem is that no one is going to select the secondary > dashboard all the time, and they get their default one each time they go to > the homepage from anywhere else in RT or log out and back in. Is there a > way to have admins edit the system-wide homepage, to add this saved search > to everyone's at once? We'd also like to remove another portlet that is no > longer required due to what the search offers. > > Put simply, how can we modify the homepage for all users at once? Thanks, > as always, for any help. > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com Hi Alex, You should be able to use rt-attributes-modify to script the needed changes. Regards, Ken From ahall at autodist.com Fri Oct 7 17:25:04 2016 From: ahall at autodist.com (Alex Hall) Date: Fri, 7 Oct 2016 17:25:04 -0400 Subject: [rt-users] Modifying global RT homepage for all users? In-Reply-To: <20161007195704.GW4498@aart.rice.edu> References: <20161007195704.GW4498@aart.rice.edu> Message-ID: Thanks for the tip, that looks like it could be useful. I found the problem, though: all our users had to revert their homepages to default, even if they had never modified anything. As soon as they did, they all got our newly modified homepage and could re-add the saved searches they still wanted. I love when the answer is simple. :) On Fri, Oct 7, 2016 at 3:57 PM, Kenneth Marshall wrote: > On Fri, Oct 07, 2016 at 03:53:05PM -0400, Alex Hall wrote: > > Hello list, yet again, > > We're trying to add a saved search, to let the user view owned and CC-ed > > tickets. I have the search made, and stored as a system-wide item. I > have a > > dashboard with the search on it. All users can select that dashboard if > > they want to. The problem is that no one is going to select the secondary > > dashboard all the time, and they get their default one each time they go > to > > the homepage from anywhere else in RT or log out and back in. Is there a > > way to have admins edit the system-wide homepage, to add this saved > search > > to everyone's at once? We'd also like to remove another portlet that is > no > > longer required due to what the search offers. > > > > Put simply, how can we modify the homepage for all users at once? Thanks, > > as always, for any help. > > > > -- > > Alex Hall > > Automatic Distributors, IT department > > ahall at autodist.com > > > Hi Alex, > > You should be able to use rt-attributes-modify to script the needed > changes. > > Regards, > Ken > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaniadimitris at yahoo.gr Mon Oct 10 08:36:47 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Mon, 10 Oct 2016 12:36:47 +0000 (UTC) Subject: Create linked ticket to asset References: <2052414053.1240989.1476103007500.ref@mail.yahoo.com> Message-ID: <2052414053.1240989.1476103007500@mail.yahoo.com> Dear all, I have installed RT 4.4.1rc1 and need some help on the Assets part. In the SelfService (unprivileged user) a user can choose an asset and then "Create linked ticket" from "Actions". This gives the options to set as ticket Requestor either the asset Owner (if set) or the asset Held By (if set) or the asset Contact (if set). This means the user can create a linked ticket as somebody else. Then the user is taken to a partially prefilled ticket creation form. My question is: Is there any way to limit the user to choosing only form its own roles? In particular, I do not want the user to create a ticket and put as Requestor somebody else. I would like each user to have limited options for who to put as Requestor, i.e. put only his account and just choose among its own roles if having more than one (owner, held by, contact). Thank you, Dimitris -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaniadimitris at yahoo.gr Mon Oct 10 08:52:45 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Mon, 10 Oct 2016 12:52:45 +0000 (UTC) Subject: List of assets in SelfService References: <1644982171.1189408.1476103965772.ref@mail.yahoo.com> Message-ID: <1644982171.1189408.1476103965772@mail.yahoo.com> Hello everyone, I have RT 4.4.1rc1 installed and need your help on the appearance of Assets in SelfService. Thus far, I have selected that a user in SelfService can see the Assets menu and can also see the listing of Assets he/she is: a.Owner b.Held By c.Contact. There appears the Name and the Description of each asset. If he/she selects any of these assets, then the details appear, for example Custom fields (manufacturer, serial number, etc) and People (owner, held by, contact). However, I would like to have the information about People (owner, held by, contact) in the main listing, along with the Name and Description. Thus, I need to have five columns in the list of assets: Name, Description, Owner, Held By, Contact. How could this be done? What files should I modify and how? Thank you in advance, Dimitris From ahall at autodist.com Mon Oct 10 11:15:16 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 10 Oct 2016 11:15:16 -0400 Subject: [rt-users] Connecting RT to IBM iSeries and/or MSSQL databases? Message-ID: Hello list, Another day, another proposed RT modification for me to investigate. Our company has six remote representatives who each have a few hundred customers they visit in person. The customer support team works locally, and is the group who actually enters all the tickets. We want reps to be able to look at tickets related to their customers, but we want to do that in a dashboard and not as a CC. Since each rep has hundreds of customers, and since the customer base for a rep can change a lot, saved searches aren't an ideal solution. It is also too error-prone and time-consuming to have staff enter a customer rep ID for every ticket, as they already have to enter an order number and other custom information. The good news is that, in databases we already have, the order number can lead from the order, to the customer, to the representative. My thought is to have a cron job or a custom script that can take the order number, look up the rep on our iSeries or MSSQL databases, and fill in a custom field with the username of the relevant representative. I like the idea of a script, so that users can see the change immediately, but a cron job would probably be okay too. This would then let us use a saved search that just finds tickets where the rep name equals the name of the user whose dashboard it is, instead of having hundreds of 'or' statements trying to find all possible customer numbers. * Can Perl code in scripts talk to an external database as I've described? * Can the RT cron tool do this job? If so, what might the workflow look like? I haven't yet looked very deeply into this tool's abilities or syntax. Thanks for any thoughts. Debian 8.6, RT4.2.8 (hopefully going to be 4.4 sometime soon), MySQL database for RT. No, the server doesn't yet have the drivers for these databases, but my question is about integrating the information into RT and not about how Debian talks to DB2 or Server. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.wheldon at greenhills-it.co.uk Mon Oct 10 11:30:49 2016 From: martin.wheldon at greenhills-it.co.uk (Martin Wheldon) Date: Mon, 10 Oct 2016 15:30:49 +0000 Subject: [rt-users] Connecting RT to IBM iSeries and/or MSSQL databases? In-Reply-To: References: Message-ID: <4824895406e0a94fe9c1368ef3008926@mail.greenhills-it.co.uk> Hi Alex, Sounds like you may be looking for the external custom fields functionality, please see the link below for details: https://docs.bestpractical.com/rt/4.4.1/extending/external_custom_fields.html Best Regards Martin On 2016-10-10 15:15, Alex Hall wrote: > Hello list, > Another day, another proposed RT modification for me to investigate. > Our company has six remote representatives who each have a few hundred > customers they visit in person. The customer support team works > locally, and is the group who actually enters all the tickets. We want > reps to be able to look at tickets related to their customers, but we > want to do that in a dashboard and not as a CC. Since each rep has > hundreds of customers, and since the customer base for a rep can > change a lot, saved searches aren't an ideal solution. It is also too > error-prone and time-consuming to have staff enter a customer rep ID > for every ticket, as they already have to enter an order number and > other custom information. The good news is that, in databases we > already have, the order number can lead from the order, to the > customer, to the representative. > > My thought is to have a cron job or a custom script that can take the > order number, look up the rep on our iSeries or MSSQL databases, and > fill in a custom field with the username of the relevant > representative. I like the idea of a script, so that users can see the > change immediately, but a cron job would probably be okay too. This > would then let us use a saved search that just finds tickets where the > rep name equals the name of the user whose dashboard it is, instead of > having hundreds of 'or' statements trying to find all possible > customer numbers. > > * Can Perl code in scripts talk to an external database as I've > described? > > * Can the RT cron tool do this job? If so, what might the workflow > look like? I haven't yet looked very deeply into this tool's abilities > or syntax. > > Thanks for any thoughts. Debian 8.6, RT4.2.8 (hopefully going to be > 4.4 sometime soon), MySQL database for RT. No, the server doesn't yet > have the drivers for these databases, but my question is about > integrating the information into RT and not about how Debian talks to > DB2 or Server. > > -- > > Alex Hall > Automatic Distributors, IT department > ahall at 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 From elacour at easter-eggs.com Mon Oct 10 11:33:35 2016 From: elacour at easter-eggs.com (Emmanuel Lacour) Date: Mon, 10 Oct 2016 17:33:35 +0200 Subject: [rt-users] Connecting RT to IBM iSeries and/or MSSQL databases? In-Reply-To: References: Message-ID: <1a3fd396-49a6-3170-6a00-6310d8397393@easter-eggs.com> Le 10/10/2016 ? 17:15, Alex Hall a ?crit : > > > * Can Perl code in scripts talk to an external database as I've described? > yes, scrips run any kind of perl code, you can include needed modules. There is perl libs to talk to almost any kind of databases, even proprietary ones ;) A quick internet search on perl + MSSQL will give you examples of code. we have here scrips that get and write informations to third party softwares using DB access, ldap, soap, xmlrpc, depending on the needs. > * Can the RT cron tool do this job? If so, what might the workflow > look like? I haven't yet looked very deeply into this tool's abilities > or syntax. > it can if the Action used is one that you self create for your needs (in rt/local/lib/RT/Actions) From lwelch at holycross.com Mon Oct 10 13:41:41 2016 From: lwelch at holycross.com (Lori Welch) Date: Mon, 10 Oct 2016 17:41:41 +0000 Subject: [rt-users] Having an issue trying to grant rights to back to root Message-ID: Ran into an issue, where I was trying to modify permissions on a user, and it changed root. Now my root is not a super user. I ran this command: perl -I /opt/rt4/lib -MRT -e' RT::LoadConfig(); RT::Init(); my $u = RT::User->new($RT::Systemuser); $u->Load("root"); print $u->PrincipalObj->GrantRight(Object => $RT::System, Right => "SuperUser");' And I got this response: [3228] [Mon Oct 10 17:16:18 2016] [debug]: Using internal Perl HTML -> text conversion (/opt/rt4/lib/RT/Interface/Email.pm:1454) [3228] [Mon Oct 10 17:16:18 2016] [debug]: The RTAddressRegexp option is not set in the config. Not setting this option results in additional SQL queries to check whether each address belongs to RT or not. It is especially important to set this option if RT receives emails on addresses that are not in the database or config. (/opt/rt4/lib/RT/Config.pm:531) [3228] [Mon Oct 10 17:16:18 2016] [critical]: Can't call method "HasRight" on an undefined value at /opt/rt4/lib/RT/ACE.pm line 237, line 747. (/opt/rt4/lib/RT.pm:390) Can't call method "HasRight" on an undefined value at /opt/rt4/lib/RT/ACE.pm line 237, line 747. Root still does not have super user rights. I tried to change a user that does not have super user rights and never has and I got this response instead: perl -I /opt/rt4/lib -MRT -e' RT::LoadConfig(); RT::Init(); my $u = RT::User->new($RT::Systemuser); $u->Load("user at domain.com"); print $u->PrincipalObj->GrantRight(Object => $RT::System, Right => "SuperUser");' [3231] [Mon Oct 10 17:17:01 2016] [debug]: Using internal Perl HTML -> text conversion (/opt/rt4/lib/RT/Interface/Email.pm:1454) [3231] [Mon Oct 10 17:17:01 2016] [debug]: The RTAddressRegexp option is not set in the config. Not setting this option results in additional SQL queries to check whether each address belongs to RT or not. It is especially important to set this option if RT receives emails on addresses that are not in the database or config. (/opt/rt4/lib/RT/Config.pm:531) [3231] [Mon Oct 10 17:17:01 2016] [error]: Couldn't get principal for an empty user (/opt/rt4/lib/RT/User.pm:1282) [3231] [Mon Oct 10 17:17:01 2016] [critical]: Can't call method "GrantRight" on an undefined value at -e line 1, line 747. (/opt/rt4/lib/RT.pm:390) Can't call method "GrantRight" on an undefined value at -e line 1, line 747. I got this script from RT Esentials, which was written for RT3, any chance someone can help me with an RT4 version? Thanks Lori -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 10 17:07:58 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 10 Oct 2016 17:07:58 -0400 Subject: [rt-users] Unable to connect to MySQL during RT upgrade Message-ID: Hello list, I'm upgrading from the Debian RT 4.2.8 package to the source 4.4.1, and am stuck at the 'make upgrade-database' step. When I enter the root password, my version, and 'y' to have it begin, it immediately says it can't connect and exits with code 255. Here's what I've tried thus far, in no particular order: * restore my backup of the 4.2.8 database to the rt441 database * change the username for the RT MySQL account from rtuser (which 4.2.8 used) to rt_user, since that's what the RT_Config.pm file has * change rt_user's password to match what's in the config file (that is, PASSWORD('pwd')) * moved 4.2.8's configuration files to /opt/rt4/etc/RT_SiteConfig.d, but I can't figure out how to apply them * checked that no one else is connected to MySQL (they're not) * restarted and then stopped request-tracker4, stopped the FCGI server for 4.2.8, and restarted Nginx * granted full privileges on rt441 to rt_user, then flushed privileges I'm out of ideas. Can anyone suggest why the upgrade can't log in? I know the account works, because I can use rt_user to log into MySQL directly, using the same password as in the config file. What have I missed? -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From burian at vsup.cz Mon Oct 10 16:26:51 2016 From: burian at vsup.cz (Jan Burian) Date: Mon, 10 Oct 2016 22:26:51 +0200 Subject: [rt-users] Bad characters in names loaded from LDAP (AD) Message-ID: Hi all, we have RT 4.4.0 on CentOS 7 and Perl v5.22.1. And we are starting to use RT in production. We configured RT to authenticate users via LDAP (RT::Authen::ExternalAuth::LDAP). Our LDAP server is MS AD (Win 2008 R2). Our config of LDAP ExternalAuth in RT: Set($ExternalSettings, { 'My_LDAP' => { 'type' => 'ldap', 'server' => 'ldaps://ADserver:636', 'user' => 'ldap-user', 'pass' => 'password', 'base' => 'dc=domain,dc=com', 'filter' => '(objectClass=person)', 'd_filter' => '(userAccountControl:1.2.840.113556.1.4.803:=2)', 'tls' => { verify => "require", capath => "/etc/openldap/certs/cacert.pem" }, 'net_ldap_args' => [ version => 3, debug => 8 ], 'attr_match_list' => [ 'Name', 'EmailAddress', ], 'attr_map' => { 'Name' => 'sAMAccountName', 'EmailAddress' => 'mail', 'RealName' => 'displayName', 'WorkPhone' => 'telephoneNumber', }, }, } ); Authentication is working fine. Users can log in, if the user doesn't exist in RT the account is autocreated. All the configured attributes are transferred. But we have problem with encoding of RealName which is mapped from displayName attribute in MS AD. For Example: displayName in MS AD: Matou? Nov?k is loaded and saved in RT Real Name as: RealName: Matou?? Nov??k Log file: [6937] [Tue Sep 27 15:59:25 2016] [info]: RT::User::CanonicalizeUserInfoFromExternalAuth returning Disabled: , EmailAddress: novak at domain.com, Gecos: novak, Name: novak, Privileged: 1, RealName: Matou?? Nov??k, WorkPhone: (/opt/rt4/sbin/../lib/RT/User.pm:811) We had similar problem with Moodle. When we configured Moodle against Active Directory and set cp1250 encoding, then it was doing exactly same thing. After we changed encoding for LDAP connector to utf-8 then the names was corrected. If you know how we can specify encoding in LDAP configuration that will be great. I didn't find any description about encoding option in LDAP configuration in RT. I was searching in: - RT documentatiton - RT comunity wiki - RT mailing lists archives - google I found only this question in mailing list but without answer: http://www.gossamer-threads.com/lists/rt/users/128318?search_string=encoding;#128318 Also I red thath MS AD in LDAP protocol version 3 returns any string to LDAP client in utf-8 encoding. I really don't know where could be a problem. Any help will be appreciated. Thanks in advance for any hint. Best regards Jan Burian -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3136 bytes Desc: S/MIME Cryptographic Signature URL: From ahall at autodist.com Mon Oct 10 18:07:46 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 10 Oct 2016 18:07:46 -0400 Subject: [rt-users] Unable to connect to MySQL during RT upgrade In-Reply-To: References: Message-ID: After a few more repeats of some of the below steps, suddenly things worked. I'm embarrassed to say I may have forgotten to specify rt441.* when granting privileges, instead only entering rt441. In any case, the upgrade finally ran, and I appear to be okay, save one thing: those RT_SiteConfig.d files. They're there, but I can't figure out how to make them apply. The 'update-rt-siteconfig' command still seems to be working on the 4.2.8 install, not the new 4.4.1. I'm not sure how to get it to work on the new install. On Mon, Oct 10, 2016 at 5:07 PM, Alex Hall wrote: > Hello list, > I'm upgrading from the Debian RT 4.2.8 package to the source 4.4.1, and am > stuck at the 'make upgrade-database' step. When I enter the root password, > my version, and 'y' to have it begin, it immediately says it can't connect > and exits with code 255. Here's what I've tried thus far, in no particular > order: > > * restore my backup of the 4.2.8 database to the rt441 database > * change the username for the RT MySQL account from rtuser (which 4.2.8 > used) to rt_user, since that's what the RT_Config.pm file has > * change rt_user's password to match what's in the config file (that is, > PASSWORD('pwd')) > * moved 4.2.8's configuration files to /opt/rt4/etc/RT_SiteConfig.d, but I > can't figure out how to apply them > * checked that no one else is connected to MySQL (they're not) > * restarted and then stopped request-tracker4, stopped the FCGI server for > 4.2.8, and restarted Nginx > * granted full privileges on rt441 to rt_user, then flushed privileges > > I'm out of ideas. Can anyone suggest why the upgrade can't log in? I know > the account works, because I can use rt_user to log into MySQL directly, > using the same password as in the config file. What have I missed? > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kae at midnighthax.com Mon Oct 10 18:18:52 2016 From: kae at midnighthax.com (Keith Edmunds) Date: Mon, 10 Oct 2016 23:18:52 +0100 Subject: [rt-users] Unable to connect to MySQL during RT upgrade In-Reply-To: References: Message-ID: <20161010231852.45bd7062@ws.midnighthax.com> > The 'update-rt-siteconfig' command still seems to be working on the 4.2.8 > install, not the new 4.4.1. update-alternatives(8) Or, use the full command name. Try this: # update-rt-siteconfig -- "Soccer is one of those things that the rest of world cares about more than Americans do - you know, like healthcare, education and gun control" - David Letterman From bbaker at copesan.com Mon Oct 10 17:16:33 2016 From: bbaker at copesan.com (Bryon Baker) Date: Mon, 10 Oct 2016 21:16:33 +0000 Subject: [rt-users] create transaction record Message-ID: Hello List I have created a custom scrip the will respond to an email via a web service call. I would like to create a transaction with the return message. Can someone give me a little code snippet or some direction on how to create the transaction? With our creating or updating a custom field. I have read about the _RecoredTransaction but I think this may be the wrong route and I have not found any example code to help me out. Thanks in advance for the help. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 Ext. 2296 * 262-783-6261 Ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 10 19:56:25 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 10 Oct 2016 19:56:25 -0400 Subject: [rt-users] Unable to connect to MySQL during RT upgrade In-Reply-To: <20161010231852.45bd7062@ws.midnighthax.com> References: <20161010231852.45bd7062@ws.midnighthax.com> Message-ID: <85954AF3-3D55-44B7-A0A0-0ADEE70FA89E@autodist.com> > On Oct 10, 2016, at 18:18, Keith Edmunds wrote: > >> The 'update-rt-siteconfig' command still seems to be working on the 4.2.8 >> install, not the new 4.4.1. > > update-alternatives(8) Typing the (8) exactly as shown gives me a syntax error, while leaving it off offers options that don't appear to be what I'm after. > > Or, use the full command name. Try this: > > # update-rt-siteconfig Unfortunately, no luck here either. The only alternative I can get is update-rt-siteconfig-4, which still applies to the 4.2.8 install. Thanks for the response, but I still seem to be missing the right command. Or is the set of update-* commands stored somewhere, waiting for me to remove the old ones and add the new? Again, I'm pretty new to Linux, so I hope that isn't a stupid question. > -- > "Soccer is one of those things that the rest of world cares about more > than Americans do - you know, like healthcare, education and gun > control" - David Letterman > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From rtusers-20090205 at billmail.scconsult.com Mon Oct 10 23:41:00 2016 From: rtusers-20090205 at billmail.scconsult.com (Bill Cole) Date: Mon, 10 Oct 2016 23:41:00 -0400 Subject: [rt-users] Bad characters in names loaded from LDAP (AD) In-Reply-To: References: Message-ID: <9902590C-3265-4E60-B1FC-54957DB03129@billmail.scconsult.com> On 10 Oct 2016, at 16:26, Jan Burian wrote: > Hi all, > > we have RT 4.4.0 on CentOS 7 and Perl v5.22.1. And we are starting to > use RT in production. > > We configured RT to authenticate users via LDAP > (RT::Authen::ExternalAuth::LDAP). Our LDAP server is MS AD (Win 2008 > R2). [...] > Authentication is working fine. Users can log in, if the user doesn't > exist in RT the account is autocreated. All the configured attributes > are transferred. This is a strong sign that the LDAP part is working correctly. If the LDAP server (AD) and client (Perl's Net::LDAP module) are using mismatched encodings, it is likely to show up in authentication failures due to incompatible encodings of the same (logical) characters that 8-bit encodings assign to byte values 0x80-0xff. Fortunately, it is somewhere between arcane and impossible to make Net::LDAP use anything other than UTF-8. There's *probably* some way to make it do T.61 for ancient-history compatibility, but that's mostly pointless. [...] > We had similar problem with Moodle. When we configured Moodle against > Active Directory and set cp1250 encoding, then it was doing exactly > same > thing. After we changed encoding for LDAP connector to utf-8 then the > names was > corrected. Which makes sense: LDAP v3 by default uses UTF-8 and you have a modern system with a mature LDAP client. I know of no way to configure a CentOS 7/Perl 5.22 system such that the LDAP interaction with an AD LDAP server talking UTF-8 would be the source of this sort of encoding conflict. I'm mildly surprised that anything talking LDAPv3 can be made to use cp1250 encoding, but I suppose Microsoft makes their own rules to go along with their own unique code pages. [...] > Also I red thath MS AD in LDAP protocol version 3 returns any string > to > LDAP client in utf-8 encoding. > I really don't know where could be a problem. The most likely place is in your database. I'm guessing that you are using MySQL, which defaults to latin1 encoding. When you store a UTF-8 string into a latin1 table, it breaks any multi-byte characters into 2 or 3 characters, but the right bits are still there. This issue has come up a few times on this list over the past decade and I think Best Practical has documented how to safely convert a RT database with that sort of problem from latin1 to utf8. It is probably worth looking through their docs (possibly one of the UPGRADING* files?) and the RT Wiki for a solution. I expect it could be done with a binary dump of the database, altering of any latin1 tables to use utf8, and a re-import of the binary dump. I'm not enough of a MySQL expert to detail that process (I generally use Postgres where possible.) From rtusers-20090205 at billmail.scconsult.com Tue Oct 11 00:00:36 2016 From: rtusers-20090205 at billmail.scconsult.com (Bill Cole) Date: Tue, 11 Oct 2016 00:00:36 -0400 Subject: [rt-users] Unable to connect to MySQL during RT upgrade In-Reply-To: <85954AF3-3D55-44B7-A0A0-0ADEE70FA89E@autodist.com> References: <20161010231852.45bd7062@ws.midnighthax.com> <85954AF3-3D55-44B7-A0A0-0ADEE70FA89E@autodist.com> Message-ID: <763196BC-5BD2-465E-8A24-FAEE1DB74F39@billmail.scconsult.com> On 10 Oct 2016, at 19:56, Alex Hall wrote: > >> On Oct 10, 2016, at 18:18, Keith Edmunds wrote: >> >>> The 'update-rt-siteconfig' command still seems to be working on the >>> 4.2.8 >>> install, not the new 4.4.1. >> >> update-alternatives(8) > > Typing the (8) exactly as shown gives me a syntax error, while leaving > it off offers options that don't appear to be what I'm after. I believe that was a suggestion that you consult the documentation for "update-alternatives" in the system manual page collection, section 8. Or in command form: man 8 update-alternatives The "(
)" shorthand as a way to refer to man pages is traditional Unix-ese, derived from the page headers of the V7 Research Unix system manual (a thing made of actual paper.) From TBecker at frankenbach.com Tue Oct 11 01:26:27 2016 From: TBecker at frankenbach.com (TBecker at frankenbach.com) Date: Tue, 11 Oct 2016 07:26:27 +0200 Subject: [rt-users] Asset Search handling/customization Message-ID: Hello All, we run RT Verion 4.4.1 and try to manage our assets with the system. We created custom fields and work with them to track the internal id of an asset. I now run into two problems/questions: 1. If we search for assets we get the standard table of results. Is there a way to change the contents of this table? I would like to have some custom fields listet within this table. 2. Is there a mechanism to prefill some fields while creating a new asset. For example if we create 30 monitors how could we speed up this process for the fields that have the same contents at beginning of the lifetime of the asset. A kind of template or copy mechanism would be interesting. Or do i'm thinking in the wrong direction? Some hints on that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Tue Oct 11 02:17:43 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Tue, 11 Oct 2016 01:17:43 -0500 Subject: [rt-users] Unable to connect to MySQL during RT upgrade In-Reply-To: References: Message-ID: Hi Alex, On Mon, Oct 10, 2016 at 5:07 PM, Alex Hall wrote: > After a few more repeats of some of the below steps, suddenly things worked. > I'm embarrassed to say I may have forgotten to specify rt441.* when granting > privileges, instead only entering rt441. In any case, the upgrade finally > ran, and I appear to be okay, save one thing: those RT_SiteConfig.d files. > They're there, but I can't figure out how to make them apply. The > 'update-rt-siteconfig' command still seems to be working on the 4.2.8 > install, not the new 4.4.1. I'm not sure how to get it to work on the new > install. RT_SiteConfig.d was a Debian-ism until 4.4 - then it became upstream. In RT 4.4.x you no longer need to run the update-rt-siteconfig - that is only applicable to Debian RT 4.2. In RT 4.4.x the config gets dynamically built when the web server is started. -m From burian at vsup.cz Tue Oct 11 05:51:07 2016 From: burian at vsup.cz (Jan Burian) Date: Tue, 11 Oct 2016 11:51:07 +0200 Subject: [rt-users] Bad characters in names loaded from LDAP (AD) In-Reply-To: <9902590C-3265-4E60-B1FC-54957DB03129@billmail.scconsult.com> References: <9902590C-3265-4E60-B1FC-54957DB03129@billmail.scconsult.com> Message-ID: Hi Bill, thank you for your response. Sry not to mention our database. We use PostreSQL. After I wrote first email a also checked encoding in database. The database was with following parameters: Name | Encoding | Collate | Ctype -------------+-------------+-----------------+------------------ rt4 | UTF8 | en_US.UTF-8 | en_US.UTF-8 1) I dump database with UTF-8 encoding parameter. 2) Then I drop the databases. 3) Create new database with following parameters: Name | Encoding | Collate | Ctype -------------+-------------+-----------------+------------------ rt4 | UTF8 | cs_CZ.UTF-8 | cs_CZ.UTF-8 4) And then import database from dump. But after that change names are loading from LDAP still with bad characters :-/. When the user writes first email to queue, then is also autocreated as unprivileged. If he/she was his/her name in From header, then is used as RealName RT attribute. But in this case is his/her name saved correctly. *Example from the log - autocreated from LDAP:* [6937] [Tue Sep 27 15:59:25 2016] [info]: RT::User::CanonicalizeUserInfoFromExternalAuth returning Disabled: , EmailAddress: novak at vsup.cz, Gecos: novak, Name: novak, Privileged: 1, RealName: Matou?? Nov??k, WorkPhone: (/opt/rt4/sbin/../lib/RT/User.pm:811) [6937] [Tue Sep 27 15:59:25 2016] [info]: Autocreated external user novak ( 61 ) (/opt/rt4/sbin/../lib/RT/Authen/ExternalAuth.pm:356) [6937] [Tue Sep 27 15:59:25 2016] [info]: RT::Authen::ExternalAuth::LDAP::GetAuth External Auth OK ( My_LDAP ): novak (/opt/rt4/sbin/../lib/RT/Authen/ExternalAuth/LDAP.pm:348) [6937] [Tue Sep 27 15:59:26 2016] [info]: RT::User::CanonicalizeUserInfoFromExternalAuth returning EmailAddress: novak at vsup.cz, Name: novak, *RealName: Matou?? Nov??k*, WorkPhone: (/opt/rt4/sbin/../lib/RT/User.pm:811) * **Example from the log - autocreated from email:* [6026] [Mon Oct 10 06:26:02 2016] [info]: RT::User::CanonicalizeUserInfoFromExternalAuth returning Comments: Autocreated on ticket submission, Disabled: , EmailAddress: Tereza.Skvarova at seznam.cz, Name: Tereza.Skvarova at seznam.cz, Privileged: , *RealName: Tereza ?kv?rov?* (/opt/rt4/sbin/../lib/RT/User.pm:811) Any other ideas? Best regards Jan Burian On 11.10.2016 05:41, Bill Cole wrote: > On 10 Oct 2016, at 16:26, Jan Burian wrote: > >> Hi all, >> >> we have RT 4.4.0 on CentOS 7 and Perl v5.22.1. And we are starting to >> use RT in production. >> >> We configured RT to authenticate users via LDAP >> (RT::Authen::ExternalAuth::LDAP). Our LDAP server is MS AD (Win 2008 >> R2). > [...] >> Authentication is working fine. Users can log in, if the user doesn't >> exist in RT the account is autocreated. All the configured attributes >> are transferred. > > This is a strong sign that the LDAP part is working correctly. If the > LDAP server (AD) and client (Perl's Net::LDAP module) are using > mismatched encodings, it is likely to show up in authentication > failures due to incompatible encodings of the same (logical) > characters that 8-bit encodings assign to byte values 0x80-0xff. > > Fortunately, it is somewhere between arcane and impossible to make > Net::LDAP use anything other than UTF-8. There's *probably* some way > to make it do T.61 for ancient-history compatibility, but that's > mostly pointless. > > [...] >> We had similar problem with Moodle. When we configured Moodle against >> Active Directory and set cp1250 encoding, then it was doing exactly same >> thing. After we changed encoding for LDAP connector to utf-8 then the >> names was >> corrected. > > Which makes sense: LDAP v3 by default uses UTF-8 and you have a modern > system with a mature LDAP client. I know of no way to configure a > CentOS 7/Perl 5.22 system such that the LDAP interaction with an AD > LDAP server talking UTF-8 would be the source of this sort of encoding > conflict. I'm mildly surprised that anything talking LDAPv3 can be > made to use cp1250 encoding, but I suppose Microsoft makes their own > rules to go along with their own unique code pages. > > [...] >> Also I red thath MS AD in LDAP protocol version 3 returns any string to >> LDAP client in utf-8 encoding. >> I really don't know where could be a problem. > > The most likely place is in your database. I'm guessing that you are > using MySQL, which defaults to latin1 encoding. When you store a UTF-8 > string into a latin1 table, it breaks any multi-byte characters into 2 > or 3 characters, but the right bits are still there. This issue has > come up a few times on this list over the past decade and I think Best > Practical has documented how to safely convert a RT database with that > sort of problem from latin1 to utf8. It is probably worth looking > through their docs (possibly one of the UPGRADING* files?) and the RT > Wiki for a solution. I expect it could be done with a binary dump of > the database, altering of any latin1 tables to use utf8, and a > re-import of the binary dump. I'm not enough of a MySQL expert to > detail that process (I generally use Postgres where possible.) > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3136 bytes Desc: S/MIME Cryptographic Signature URL: From ahall at autodist.com Tue Oct 11 07:13:30 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 11 Oct 2016 07:13:30 -0400 Subject: [rt-users] Unable to connect to MySQL during RT upgrade In-Reply-To: References: Message-ID: <4DAADB3A-6C0A-475A-AC18-6D93B6D39D0D@autodist.com> > On Oct 11, 2016, at 02:17, Matt Zagrabelny wrote: > > Hi Alex, > > On Mon, Oct 10, 2016 at 5:07 PM, Alex Hall wrote: >> After a few more repeats of some of the below steps, suddenly things worked. >> I'm embarrassed to say I may have forgotten to specify rt441.* when granting >> privileges, instead only entering rt441. In any case, the upgrade finally >> ran, and I appear to be okay, save one thing: those RT_SiteConfig.d files. >> They're there, but I can't figure out how to make them apply. The >> 'update-rt-siteconfig' command still seems to be working on the 4.2.8 >> install, not the new 4.4.1. I'm not sure how to get it to work on the new >> install. > > RT_SiteConfig.d was a Debian-ism until 4.4 - then it became upstream. > > In RT 4.4.x you no longer need to run the update-rt-siteconfig - that > is only applicable to Debian RT 4.2. > > In RT 4.4.x the config gets dynamically built when the web server is started. That's great to know, thanks! When you say the server, I'm assuming you mean the FCGI server? I'm running this with Nginx, so use spawn-fcgi to start the server that handles RT for Nginx. > > -m From chaniadimitris at yahoo.gr Tue Oct 11 07:29:06 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Tue, 11 Oct 2016 11:29:06 +0000 (UTC) Subject: Create linked ticket to asset References: <1659931560.1796043.1476185346197.ref@mail.yahoo.com> Message-ID: <1659931560.1796043.1476185346197@mail.yahoo.com> Dear all, Apologies if you received multiple copies of this email :( I have installed RT 4.4.1rc1 and need some help on the Assets part. In the SelfService (unprivileged user) a user can choose an asset and then "Create linked ticket" from "Actions". This gives the options to set as ticket Requestor either the asset Owner (if set) or the asset Held By (if set) or the asset Contact (if set). This means the user can create a linked ticket as somebody else. Then the user is taken to a partially prefilled ticket creation form. My question is: Is there any way to limit the user to choosing only form its own roles? In particular, I do not want the user to create a ticket and put as Requestor somebody else. I would like each user to have limited options for who to put as Requestor, i.e. put only his account and just choose among its own roles if having more than one (owner, held by, contact). Thank you, Dimitris From chaniadimitris at yahoo.gr Tue Oct 11 07:32:47 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Tue, 11 Oct 2016 11:32:47 +0000 (UTC) Subject: List of assets in SelfService References: <1375978011.1808050.1476185567317.ref@mail.yahoo.com> Message-ID: <1375978011.1808050.1476185567317@mail.yahoo.com> Hello everyone, Apologies again if you received multiple copies of this email. I have RT 4.4.1rc1 installed and need your help on the appearance of Assets in SelfService. Thus far, I have selected that a user in SelfService can see the Assets menu and can also see the listing of Assets he/she is: a.Owner b.Held By c.Contact. There appears the Name and the Description of each asset. If he/she selects any of these assets, then the details appear, for example Custom fields (manufacturer, serial number, etc) and People (owner, held by, contact). However, I would like to have the information about People (owner, held by, contact) in the main listing, along with the Name and Description. Thus, I need to have five columns in the list of assets: Name, Description, Owner, Held By, Contact. How could this be done? What files should I modify and how? Thank you in advance, Dimitris From ahall at autodist.com Tue Oct 11 09:05:13 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 11 Oct 2016 09:05:13 -0400 Subject: [rt-users] Using self service interface for privileged users in 4.4.1? Message-ID: Hello list, I have 4.4.1 running. Someone said on this list that it included the option to use the self service interface, even for privileged users? I don't see that option in my user preferences. How do I enable it, and can I have a toggle for users to switch between the two without leaving the ticket they're viewing? Thanks. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Tue Oct 11 09:57:08 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 11 Oct 2016 09:57:08 -0400 Subject: [rt-users] The role of roles in 4.4 Message-ID: In the release notes for RT 4.4.0, the concept of "roles" is brought up. The note says: * RT now has support for custom roles, along the lines of Requestor, Owner, Cc, and AdminCc. These roles can be single-member or multi-member. Privileges can be assigned to members of custom roles, you can search based on custom role membership, you can notify custom role members in scrips, and so on. This may be an obvious question to long-time users of RT, but what do roles offer that groups don't? That is, what is the advantage to setting up a custom role over making a group? In either case you have users assigned rights based on membership, whether to a group or a role. Thanks. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sparada at uc.cl Tue Oct 11 10:24:27 2016 From: sparada at uc.cl (Sebastian Parada) Date: Tue, 11 Oct 2016 11:24:27 -0300 Subject: [rt-users] Slowness engine change after Mysql Message-ID: Hi there, We are experiencing some issues and would like to have your opinion. I have an installation of rt_4.0.10, with mysql 5.1 on a redhat 5 OS. We have upgraded the Mysql to release 5.7 and the OS to Centos release 7, keeping the RT release 4.0.10. Once upgraded, the RT system start to have performance issues, taking about 1 minute to display the starting windows, more or less. We have noted that it depends on how many users are connected. Considering this, i would like to know if someone has noted tha same issue or similar, or if maybe the Mysql and Centos releases currently installed could be generating issues with the RT. We know that we have to upgrade the RT release, but before that, i would like to know the root cause of this performance issue. Thanks in advance. Your opinion or diagnose would be appreciated. Regards. -- Atte Sebastian Parada R?os Ingeniero de Sistemas Subdirecci?n Operaciones y Plataforma Pontificia Universidad Cat?lica de Chile Tel?fono: (56 2) 354 1323 From steve at sbsroc.com Tue Oct 11 10:22:52 2016 From: steve at sbsroc.com (steve at sbsroc.com) Date: Tue, 11 Oct 2016 10:22:52 -0400 Subject: [rt-users] The role of roles in 4.4 References: Message-ID: <4e385482-8804-4da3-af3f-da4773db1d39@sbsroc.com> Alex, On the ticket, you have requestor, owner, cc and admincc as you pointed out. Those were the only options for assigning group rights until 4.4. You could create more groups, but the rights were assigned to the role so all groups in a role have the same rights. Does that make sense so far? With 4.4, you can now create a role called (for instance) supervisor, and then a scrip that assigns a supervisor based on who makes the request. That supervisor could then be assigned rights to see the ticket, etc. Imagine a ticket from an employee to fix a sink drain issue. You could also use a scrip to auto assign a maintenance supervisor to a role for whatever building the requestor is in. That supervisor could then be responsible to oversee the resolution and have different rights than the owner. Lots of possibilities to imagine. Best regards, Stephen H. Switzer? voice:?585.298.9420?[ x7001 ]? cell:?585.202.8312? fax:?585.625.0020? email:?steve at sbsroc.com? Technical Consultant & System Engineer? - VMware VSP? - Microsoft MCP, Desktop/Server? Switzer Business Solutions, LLC? web:?www.SwitzerBusiness.Solutions fb:?www.facebook.com/sbsolutions? - VMware VIP Partner? - HP Authorized Business Development Partner? - Xorcom Certified Dealer ________________________________ From: Alex Hall Sent: Oct 11, 2016 9:55 AM To: rt-users Subject: [rt-users] The role of roles in 4.4 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rt at shadowprojects.org Tue Oct 11 11:55:38 2016 From: rt at shadowprojects.org (Guillaume) Date: Tue, 11 Oct 2016 17:55:38 +0200 Subject: [rt-users] Perl issue after upgrade from 4.0.19 to 4.2.12 Message-ID: Hello, I was running RT 4.0.19 on Ubuntu 14.04 AMD64 with apache, mysql, external auth ldap and fastcgi. Being unable to upgrade to 16.04 due to an Ubuntu issue, i set up a new virtual machine with Ubuntu 16.04 AMD64 and installed request-tracker from the ubuntu package, then imported and upgraded manually my database. I'm now running Apache 2.4.18, MySQL 5.7.15 and RT 4.2.12. Now, everything seems to work fine, except i got a white page with an error message from time to time (refreshing the page usually fixes the issue). Here's my apache log : [1680] [Tue Oct 11 15:43:23 2016] [warning]: Negative repeat count does nothing at /usr/share/perl5/Text/Quoted.pm line 244. (/usr/share/perl5/Text/Quoted.pm:244) [1680] [Tue Oct 11 15:43:23 2016] [warning]: Negative repeat count does nothing at /usr/share/perl5/Text/Quoted.pm line 244. (/usr/share/perl5/Text/Quoted.pm:244) [1680] [Tue Oct 11 15:43:23 2016] [warning]: Negative repeat count does nothing at /usr/share/perl5/Text/Quoted.pm line 244. (/usr/share/perl5/Text/Quoted.pm:244) [1579] [Tue Oct 11 15:43:29 2016] [critical]: HasRights called with no valid object (/usr/share/request-tracker4/lib/RT/Principal.pm:381) [1579] [Tue Oct 11 15:43:29 2016] [error]: Can't call method "id" on unblessed reference at /usr/share/request-tracker4/lib/RT/Principal.pm line 384. Stack: [/usr/share/request-tracker4/lib/RT/Principal.pm:384] [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:661] [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:369] [/usr/share/request-tracker4/html/autohandler:53] (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209) Any idea ? Thanks, -- Guillaume From ahall at autodist.com Tue Oct 11 12:55:13 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 11 Oct 2016 12:55:13 -0400 Subject: [rt-users] possibly OT: RT's FCGI server randomly fails, no log Message-ID: Hello list, This may be off-topic, but I'm serving RT with Nginx and FCGI. Randomly, it seems, the FCGI server is failing. Nginx works, but users see "error 502: bad gateway". I see the same in the logs, with connect() failing. All I have to do is run the spawn-fcgi command to get things back. Why this is happening, with some frequency, is the question. My Nginx, RT, and system logs all show nothing, and to my knowledge, there are no FCGI logs at all. The first error for today in Nginx is when a client failed to connect after the server went down; there's nothing that says what the actual problem was. This happened Saturday, then again today. The server has the latest updates for Debian 8.6, and has 4GB of ram. It's serving a few dozen users at most, so the load can't be the problem. I'm using Nginx 1.6.2 with four workers and 768 threads per worker. Users see nothing unusual before this happens, just a 502 instead of the page they expected. If anyone else is using Nginx and has ever seen this, I'd love some input. As this could be considered off topic, feel free to respond directly to ahall at autodist.com. If I need to provide more details, please let me know. Thank you. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ktm at rice.edu Tue Oct 11 13:59:19 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Tue, 11 Oct 2016 12:59:19 -0500 Subject: [rt-users] possibly OT: RT's FCGI server randomly fails, no log In-Reply-To: References: Message-ID: <20161011175919.GB30570@aart.rice.edu> On Tue, Oct 11, 2016 at 12:55:13PM -0400, Alex Hall wrote: > Hello list, > This may be off-topic, but I'm serving RT with Nginx and FCGI. Randomly, it > seems, the FCGI server is failing. Nginx works, but users see "error 502: > bad gateway". I see the same in the logs, with connect() failing. All I > have to do is run the spawn-fcgi command to get things back. > > Why this is happening, with some frequency, is the question. My Nginx, RT, > and system logs all show nothing, and to my knowledge, there are no FCGI > logs at all. The first error for today in Nginx is when a client failed to > connect after the server went down; there's nothing that says what the > actual problem was. This happened Saturday, then again today. > > The server has the latest updates for Debian 8.6, and has 4GB of ram. It's > serving a few dozen users at most, so the load can't be the problem. I'm > using Nginx 1.6.2 with four workers and 768 threads per worker. Users see > nothing unusual before this happens, just a 502 instead of the page they > expected. > > If anyone else is using Nginx and has ever seen this, I'd love some input. > As this could be considered off topic, feel free to respond directly to > ahall at autodist.com. If I need to provide more details, please let me know. > Thank you. > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com Hi Alex, You will get the 502 error when there are no more RT backends running. I tracked down verious errors in the RT logs that resulted in a backend exits. Most were of the 'cannot believe I did that type' by people setting up the system, i.e. not really fixable with a distributed management environment. We ended up using 'multiwatch' in RHEL6 and systemd in RHEL7 to keep an appropriate number of backends always available. Regards, Ken From mzagrabe at d.umn.edu Tue Oct 11 14:11:08 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Tue, 11 Oct 2016 13:11:08 -0500 Subject: [rt-users] Using self service interface for privileged users in 4.4.1? In-Reply-To: References: Message-ID: On Tue, Oct 11, 2016 at 8:05 AM, Alex Hall wrote: > Hello list, > I have 4.4.1 running. Someone said on this list that it included the option > to use the self service interface, even for privileged users? I don't see > that option in my user preferences. How do I enable it, and can I have a > toggle for users to switch between the two without leaving the ticket > they're viewing? Thanks. Privileged users can always browse to: rt.example.com/SelfService You can probably use a callback to add a link to the self service URL for displaying a ticket. -m From mzagrabe at d.umn.edu Tue Oct 11 14:47:13 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Tue, 11 Oct 2016 13:47:13 -0500 Subject: [rt-users] create transaction record In-Reply-To: References: Message-ID: On Mon, Oct 10, 2016 at 4:16 PM, Bryon Baker wrote: > Hello List > > > > I have created a custom scrip the will respond to an email via a web service > call. I would like to create a transaction with the return message. What do you want the txn to do? Set a custom field, change an owner, etc? > Can someone give me a little code snippet or some direction on how to create > the transaction? With our creating or updating a custom field. Generally you would probably want to have two scrips: 1. On Condition C, reply to (or notify) requestor using template T 2. On Condition C, perform your specific txn using a blank template. But it is hard to give advice without a little more clarity in your question. Thanks, -m From mzagrabe at d.umn.edu Tue Oct 11 15:18:27 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Tue, 11 Oct 2016 14:18:27 -0500 Subject: [rt-users] create transaction record In-Reply-To: References: Message-ID: On Tue, Oct 11, 2016 at 1:54 PM, Bryon Baker wrote: > Matt > Thanks for the reply. > > All I want to do is add an entry in the ticket history that contains the return information from the call to the web service. I have the information logged to the log file, but I also want an entry record in the history of the ticket. So no action something very simple. > > I know when a custom fields are changed or updated this information shows up in the history of the ticket. With the web service call a message is received but a custom field is not needed for the information, just would like an entry in the history of the ticket of the message from web service call. I hear what you are saying. I don't know off the top of my head how to accomplish it. So you have: Email -> RT -> Scrip gets triggered -> Web service call is made -m From bbaker at copesan.com Tue Oct 11 14:54:21 2016 From: bbaker at copesan.com (Bryon Baker) Date: Tue, 11 Oct 2016 18:54:21 +0000 Subject: [rt-users] create transaction record In-Reply-To: References: Message-ID: Matt Thanks for the reply. All I want to do is add an entry in the ticket history that contains the return information from the call to the web service. I have the information logged to the log file, but I also want an entry record in the history of the ticket. So no action something very simple. I know when a custom fields are changed or updated this information shows up in the history of the ticket. With the web service call a message is received but a custom field is not needed for the information, just would like an entry in the history of the ticket of the message from web service call. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 Ext. 2296 ? 262-783-6261 Ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: Matt Zagrabelny [mailto:mzagrabe at d.umn.edu] Sent: Tuesday, October 11, 2016 1:47 PM To: Bryon Baker Cc: rt-users Subject: Re: [rt-users] create transaction record On Mon, Oct 10, 2016 at 4:16 PM, Bryon Baker wrote: > Hello List > > > > I have created a custom scrip the will respond to an email via a web > service call. I would like to create a transaction with the return message. What do you want the txn to do? Set a custom field, change an owner, etc? > Can someone give me a little code snippet or some direction on how to > create the transaction? With our creating or updating a custom field. Generally you would probably want to have two scrips: 1. On Condition C, reply to (or notify) requestor using template T 2. On Condition C, perform your specific txn using a blank template. But it is hard to give advice without a little more clarity in your question. Thanks, -m From bbaker at copesan.com Tue Oct 11 15:25:53 2016 From: bbaker at copesan.com (Bryon Baker) Date: Tue, 11 Oct 2016 19:25:53 +0000 Subject: [rt-users] create transaction record In-Reply-To: References: Message-ID: Yes that is what I am doing I hoping for some kind of call like "$RT::Logger->debug" for logging. But I have not found anything. The web service call is actually being executed from inside custom home built actions. Thanks Matt come up with any ideas it would be greatly appreciated. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 Ext. 2296 ? 262-783-6261 Ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: Matt Zagrabelny [mailto:mzagrabe at d.umn.edu] Sent: Tuesday, October 11, 2016 2:18 PM To: Bryon Baker Cc: rt-users Subject: Re: [rt-users] create transaction record On Tue, Oct 11, 2016 at 1:54 PM, Bryon Baker wrote: > Matt > Thanks for the reply. > > All I want to do is add an entry in the ticket history that contains the return information from the call to the web service. I have the information logged to the log file, but I also want an entry record in the history of the ticket. So no action something very simple. > > I know when a custom fields are changed or updated this information shows up in the history of the ticket. With the web service call a message is received but a custom field is not needed for the information, just would like an entry in the history of the ticket of the message from web service call. I hear what you are saying. I don't know off the top of my head how to accomplish it. So you have: Email -> RT -> Scrip gets triggered -> Web service call is made -m From andrew at etc.gen.nz Tue Oct 11 15:58:48 2016 From: andrew at etc.gen.nz (Andrew Ruthven) Date: Wed, 12 Oct 2016 08:58:48 +1300 Subject: [rt-users] Create ticket via API ignores Requestors field on notify requestors? In-Reply-To: <1475723305.18299.17.camel@etc.gen.nz> References: <1475720579.18299.15.camel@etc.gen.nz> <1475723305.18299.17.camel@etc.gen.nz> Message-ID: <1476215928.18299.51.camel@etc.gen.nz> Hey, Any other suggestions? ?I'm kinda grasping at straws here. Cheers, Andrew On Thu, 2016-10-06 at 16:08 +1300, Andrew Ruthven wrote: > Hi Casey, > > Thanks for that, the requestor is a different email address from what > is being used for the actor making the API call but the name is the > same. I've just changed the name and we've retested. > > I can see NotifyActor correctly decide not to hassle the person who > created the ticket. > > Cheers, > Andrew > > On Wed, 2016-10-05 at 19:37 -0700, Kenneth Crocker wrote: > > Andrew, > > If RT believes the Requester is also the actor requesting the > > ticket, > > it doesn't usually (depends on default settings for "Notify Actor") > > send a notification to the person making the request. It's > > considered > > redundant. Read about the setting and change the setting. > > Good Luck. > > Casey > > > > On Oct 5, 2016 7:30 PM, "Andrew Ruthven" wrote: > > > Hey, > > > > > > We're running RT 4.2.8 and using the API to create some tickets. > > > But, > > > no notification is sent out to the requestor we're setting.??We > > > are > > > using a privileged account to connect to the API. > > > > > > I can see the requestor set on the ticket when I check the > > > website, > > > but > > > no recipients are considered when the scrip runs: > > > > > > Oct??6 14:21:09 cat-prod-rt RT: [1145] Working on mailfield To; > > > recipients are??(/usr/share/request- > > > tracker4/lib/RT/Action/SendEmail.pm:639) > > > ... > > > Oct??6 14:21:09 cat-prod-rt RT: [1145] No recipients found for > > > deferred > > > delivery on transaction #213681 (/usr/share/request- > > > tracker4/lib/RT/ > > > Action/SendEmail.pm:691) > > > Oct??6 14:21:09 cat-prod-rt RT: [1145] > > 1698.2 > > > 5796-22-0 at rt.catalyst.net.nz> #25796/213681 - Scrip 22 On Create > > > Notify > > > Requestor > > > > > > Is there anything we can do to make this work? > > > > > > Cheers, > > > Andrew > > > > > > --? > > > Andrew Ruthven, Wellington, New Zealand > > > andrew at etc.gen.nz?????????????| linux.conf.au 2017, Hobart, AU > > > ? New Zealand's only Cloud:???| ? The Future of Open Source > > > https://catalyst.net.nz/cloud | ? ? http://linux.conf.au > > > > > > > > > > > > --------- > > > RT 4.4 and RTIR training sessions, and a new workshop day! > > > https:// > > > bestpractical.com/training > > > * Boston - October 24-26 > > > * Los Angeles - Q1 2017 -- Andrew Ruthven, Wellington, New Zealand andrew at etc.gen.nz?????????????| linux.conf.au 2017, Hobart, AU ? New Zealand's only Cloud:???| ? The Future of Open Source https://catalyst.net.nz/cloud | ? ? http://linux.conf.au From mzagrabe at d.umn.edu Tue Oct 11 16:09:16 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Tue, 11 Oct 2016 15:09:16 -0500 Subject: [rt-users] create transaction record In-Reply-To: References: Message-ID: On Tue, Oct 11, 2016 at 2:25 PM, Bryon Baker wrote: > Yes that is what I am doing I hoping for some kind of call like "$RT::Logger->debug" for logging. But I have not found anything. The web service call is actually being executed from inside custom home built actions. That would work. Or: RT->Logger->debug('a line of debug'); Regarding creating a txn for the ticket history: I may have at one time created a txn and added it to the history, but I'm not seeing any code examples in my extensions. I don't quite remember how and don't have time to dig into the RT upstream code. You could create a custom field called Web Services and set that CF to whatever value your web services returns. That is pretty easy. -m From ahall at autodist.com Tue Oct 11 16:12:34 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 11 Oct 2016 16:12:34 -0400 Subject: [rt-users] possibly OT: RT's FCGI server randomly fails, no log In-Reply-To: <20161011175919.GB30570@aart.rice.edu> References: <20161011175919.GB30570@aart.rice.edu> Message-ID: Don't ask me why, but /var/log/messages recorded the problem this most recent crash. Does this mean anything to anyone? Oct 11 14:47:24 RTServer RT: [6632] Argument "myork" isn't numeric in numeric ne (!=) at /usr/share/request-tracker4/lib/RT/Interface/Web.pm line 2949. Oct 11 14:47:41 RTServer RT: [6632] Argument "myork" isn't numeric in numeric ne (!=) at /usr/share/request-tracker4/lib/RT/Interface/Web.pm line 2949. I didn't paste that twice, it appeared twice in the log. This is still 4.2.8. On Tue, Oct 11, 2016 at 1:59 PM, Kenneth Marshall wrote: > On Tue, Oct 11, 2016 at 12:55:13PM -0400, Alex Hall wrote: > > Hello list, > > This may be off-topic, but I'm serving RT with Nginx and FCGI. Randomly, > it > > seems, the FCGI server is failing. Nginx works, but users see "error 502: > > bad gateway". I see the same in the logs, with connect() failing. All I > > have to do is run the spawn-fcgi command to get things back. > > > > Why this is happening, with some frequency, is the question. My Nginx, > RT, > > and system logs all show nothing, and to my knowledge, there are no FCGI > > logs at all. The first error for today in Nginx is when a client failed > to > > connect after the server went down; there's nothing that says what the > > actual problem was. This happened Saturday, then again today. > > > > The server has the latest updates for Debian 8.6, and has 4GB of ram. > It's > > serving a few dozen users at most, so the load can't be the problem. I'm > > using Nginx 1.6.2 with four workers and 768 threads per worker. Users see > > nothing unusual before this happens, just a 502 instead of the page they > > expected. > > > > If anyone else is using Nginx and has ever seen this, I'd love some > input. > > As this could be considered off topic, feel free to respond directly to > > ahall at autodist.com. If I need to provide more details, please let me > know. > > Thank you. > > > > -- > > Alex Hall > > Automatic Distributors, IT department > > ahall at autodist.com > > > Hi Alex, > > You will get the 502 error when there are no more RT backends running. I > tracked down verious errors in the RT logs that resulted in a backend > exits. Most were of the 'cannot believe I did that type' by people > setting up the system, i.e. not really fixable with a distributed > management environment. We ended up using 'multiwatch' in RHEL6 > and systemd in RHEL7 to keep an appropriate number of backends always > available. > > Regards, > Ken > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaniadimitris at yahoo.gr Tue Oct 11 16:17:03 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Tue, 11 Oct 2016 20:17:03 +0000 (UTC) Subject: [rt-users] Cannot see changes in UI References: <2105901519.2150459.1476217023017.ref@mail.yahoo.com> Message-ID: <2105901519.2150459.1476217023017@mail.yahoo.com> Hello, I have RT 4.4.1rc1 is installed. I face a strange problem regarding the modification of files in /rt4/share/html/... Particularly, I cannot observe any changes in the UI when I modify the html files or the perl code. My target was to edit the SelfService UI and especially the Assets page. However, not any change in the files in /rt4/share/html/SelfService/Asset ever appears in the UI. (Only deletion of files actually has effects!) I am wondering what am I doing wrong. Thanks, Dimitris From ahall at autodist.com Tue Oct 11 16:27:39 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 11 Oct 2016 16:27:39 -0400 Subject: [rt-users] clarification on callbacks Message-ID: Hello list, I'm considering trying out a callback. Ken suggested it as a way to add a link to pages that will let users toggle between self-service and standard interfaces, and I'm very much hoping I can use it to customize the way history displays on ticket summary pages. >From what I've read so far, it seems like a callback is analogous to a subclass. If I have a 'renderer' class that can make pretty text from raw HTML, I might then subclass it and override the function that parses text to make it work on XML. Yes, it's a very terrible example, but hopefully the idea is correct. Anyway, a callback in RT seems a lot like that. I want the ticket page to display how it already does, but I don't like the history part. Thus, I copy the file to the proper callback directory, then modify it. RT will, when it knows it has to use Display.html, look in callbacks first and use my version. Only if I don't provide one will it use the default one in share/html/Tickets. Do I have this right--copy the existing file to callbacks and modify it? Or do I make a blank file, override only the bits I want to in there, and not copy the whole thing? Am I thinking about callbacks all wrong? -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Tue Oct 11 16:30:00 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 11 Oct 2016 16:30:00 -0400 Subject: [rt-users] Cannot see changes in UI In-Reply-To: References: <2105901519.2150459.1476217023017.ref@mail.yahoo.com> Message-ID: At a guess, I'd say to restart your web server. RT seems to need a restart before changes will be reflected in the web UI. On Tue, Oct 11, 2016 at 4:19 PM, Dimitris Maniadakis via rt-users < rt-users at lists.bestpractical.com> wrote: > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 > > ---------- Forwarded message ---------- > From: Dimitris Maniadakis > To: Rt-users > Cc: > Date: Tue, 11 Oct 2016 20:17:03 +0000 (UTC) > Subject: [rt-users] Cannot see changes in UI > Hello, > > I have RT 4.4.1rc1 is installed. > I face a strange problem regarding the modification of files in > /rt4/share/html/... > Particularly, I cannot observe any changes in the UI when I modify the > html files or the perl code. > > My target was to edit the SelfService UI and especially the Assets page. > However, not any change in the files in > > /rt4/share/html/SelfService/Asset ever appears in the UI. > > (Only deletion of files actually has effects!) > > > I am wondering what am I doing wrong. > > Thanks, > Dimitris > > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Tue Oct 11 16:38:51 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Tue, 11 Oct 2016 15:38:51 -0500 Subject: [rt-users] clarification on callbacks In-Reply-To: References: Message-ID: Hey Alex, On Tue, Oct 11, 2016 at 3:27 PM, Alex Hall wrote: > Hello list, > I'm considering trying out a callback. Ken suggested it as a way to add a > link to pages that will let users toggle between self-service and standard > interfaces, and I'm very much hoping I can use it to customize the way > history displays on ticket summary pages. > > From what I've read so far, it seems like a callback is analogous to a > subclass. If I have a 'renderer' class that can make pretty text from raw > HTML, I might then subclass it and override the function that parses text to > make it work on XML. Yes, it's a very terrible example, but hopefully the > idea is correct. > > Anyway, a callback in RT seems a lot like that. I want the ticket page to > display how it already does, but I don't like the history part. Thus, I copy > the file to the proper callback directory, then modify it. RT will, when it > knows it has to use Display.html, look in callbacks first and use my > version. Only if I don't provide one will it use the default one in > share/html/Tickets. > > Do I have this right--copy the existing file to callbacks and modify it? Or > do I make a blank file, override only the bits I want to in there, and not > copy the whole thing? Am I thinking about callbacks all wrong? You are thinking about Callbacks wrong. :) They are hook points in the HTML (Mason) of RT. Many (most?) RT extension will have some callbacks in them. Here is a nice easy one to get your feet wet: https://github.com/bestpractical/rt-extension-commentoncreate Take a look at the source for this extension and note the html/Callbacks directory. Then look in your RT share/html directory for where those callbacks would appear. In this particular instance, rt-extension-commentoncreate adds a "comment" box just below the "create" content box on the Ticket/Create.html page. So you can see from the source of the extension, it will add something to the AfterMessageBox callback in the Create.html Mason component. I'll let you dig a little bit more with this extension or another one to get more familiar with callbacks. Also, read the documentation: https://docs.bestpractical.com/rt/4.4.1/writing_extensions.html#Callbacks -m From mzagrabe at d.umn.edu Tue Oct 11 17:11:50 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Tue, 11 Oct 2016 16:11:50 -0500 Subject: [rt-users] create transaction record In-Reply-To: References: Message-ID: On Tue, Oct 11, 2016 at 4:09 PM, Bryon Baker wrote: > Yes I thought of the custom field and that would be easy, but I have so many now. I just didn't want to add another. But if I can't find anything else that is what I will do eventually. I'm sure there is a way to add a txn - apparently I've never done it and would have to research (which I have no time for.) -m From bbaker at copesan.com Tue Oct 11 17:09:49 2016 From: bbaker at copesan.com (Bryon Baker) Date: Tue, 11 Oct 2016 21:09:49 +0000 Subject: [rt-users] create transaction record In-Reply-To: References: Message-ID: Yes I thought of the custom field and that would be easy, but I have so many now. I just didn't want to add another. But if I can't find anything else that is what I will do eventually. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 Ext. 2296 ? 262-783-6261 Ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: Matt Zagrabelny [mailto:mzagrabe at d.umn.edu] Sent: Tuesday, October 11, 2016 3:09 PM To: Bryon Baker Cc: rt-users Subject: Re: [rt-users] create transaction record On Tue, Oct 11, 2016 at 2:25 PM, Bryon Baker wrote: > Yes that is what I am doing I hoping for some kind of call like "$RT::Logger->debug" for logging. But I have not found anything. The web service call is actually being executed from inside custom home built actions. That would work. Or: RT->Logger->debug('a line of debug'); Regarding creating a txn for the ticket history: I may have at one time created a txn and added it to the history, but I'm not seeing any code examples in my extensions. I don't quite remember how and don't have time to dig into the RT upstream code. You could create a custom field called Web Services and set that CF to whatever value your web services returns. That is pretty easy. -m From bbaker at copesan.com Tue Oct 11 17:17:31 2016 From: bbaker at copesan.com (Bryon Baker) Date: Tue, 11 Oct 2016 21:17:31 +0000 Subject: [rt-users] create transaction record In-Reply-To: References: Message-ID: Don't sweat it I will continue to research I was hoping that someone had some pointers Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 Ext. 2296 ? 262-783-6261 Ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: Matt Zagrabelny [mailto:mzagrabe at d.umn.edu] Sent: Tuesday, October 11, 2016 4:12 PM To: Bryon Baker Cc: rt-users Subject: Re: [rt-users] create transaction record On Tue, Oct 11, 2016 at 4:09 PM, Bryon Baker wrote: > Yes I thought of the custom field and that would be easy, but I have so many now. I just didn't want to add another. But if I can't find anything else that is what I will do eventually. I'm sure there is a way to add a txn - apparently I've never done it and would have to research (which I have no time for.) -m From burian at vsup.cz Tue Oct 11 18:30:27 2016 From: burian at vsup.cz (Jan Burian) Date: Wed, 12 Oct 2016 00:30:27 +0200 Subject: [rt-users] Bad characters in names loaded from LDAP (AD) In-Reply-To: References: <9902590C-3265-4E60-B1FC-54957DB03129@billmail.scconsult.com> Message-ID: Hi all, I finally resolved the issue with support from RT engineers. So big thanks to them. I'm posting the fix, if someone will be interested (maybe in the future), so it can be found in list archive. Here is answer from RT engineers: /We use Net::LDAP and there is an option called 'raw' that might properly convert the incoming content to utf8. That's the first thing to try since we pass parameters through to Net::LDAP and you can put it right in the config file. //https://metacpan.org/pod/distribution/perl-ldap/lib/Net/LDAP.pod//However, there is likely another bit of code we need to add to RT to be explicit about the incoming text and treat it as utf8 when told to do so. We can file it as a bug, or provide some commercial assistance if you are interested. / So I add raw => qr/(?i:^jpegPhoto|;binary)/ as net_ldap_args parameter in RT_SiteConfig.pm. Now it is all working fine, the names are imported correctly from LDAP (MS AD, LDAP protocol version 3). I also suggested to add information about raw option with example to RT docs. Best regards Jan Burian On 11.10.2016 11:51, Jan Burian wrote: > Hi Bill, > > thank you for your response. Sry not to mention our database. > We use PostreSQL. > After I wrote first email a also checked encoding in database. > > The database was with following parameters: > Name | Encoding | Collate | Ctype > -------------+-------------+-----------------+------------------ > rt4 | UTF8 | en_US.UTF-8 | en_US.UTF-8 > > 1) I dump database with UTF-8 encoding parameter. > 2) Then I drop the databases. > 3) Create new database with following parameters: > > Name | Encoding | Collate | Ctype > -------------+-------------+-----------------+------------------ > rt4 | UTF8 | cs_CZ.UTF-8 | cs_CZ.UTF-8 > > 4) And then import database from dump. > > But after that change names are loading from LDAP still with bad > characters :-/. > > When the user writes first email to queue, then is also autocreated as > unprivileged. If he/she was his/her name in From header, then is used > as RealName RT attribute. But in this case is his/her name saved > correctly. > > *Example from the log - autocreated from LDAP:* > [6937] [Tue Sep 27 15:59:25 2016] [info]: > RT::User::CanonicalizeUserInfoFromExternalAuth returning Disabled: , > EmailAddress: novak at vsup.cz, Gecos: novak, Name: novak, Privileged: 1, > RealName: Matou?? Nov??k, WorkPhone: > (/opt/rt4/sbin/../lib/RT/User.pm:811) > [6937] [Tue Sep 27 15:59:25 2016] [info]: Autocreated external user > novak ( 61 ) (/opt/rt4/sbin/../lib/RT/Authen/ExternalAuth.pm:356) > [6937] [Tue Sep 27 15:59:25 2016] [info]: > RT::Authen::ExternalAuth::LDAP::GetAuth External Auth OK ( My_LDAP ): > novak (/opt/rt4/sbin/../lib/RT/Authen/ExternalAuth/LDAP.pm:348) > [6937] [Tue Sep 27 15:59:26 2016] [info]: > RT::User::CanonicalizeUserInfoFromExternalAuth returning EmailAddress: > novak at vsup.cz, Name: novak, *RealName: Matou?? Nov??k*, WorkPhone: > (/opt/rt4/sbin/../lib/RT/User.pm:811) > * > **Example from the log - autocreated from email:* > [6026] [Mon Oct 10 06:26:02 2016] [info]: > RT::User::CanonicalizeUserInfoFromExternalAuth returning Comments: > Autocreated on ticket submission, Disabled: , EmailAddress: > Tereza.Skvarova at seznam.cz, Name: Tereza.Skvarova at seznam.cz, > Privileged: , *RealName: Tereza ?kv?rov?* > (/opt/rt4/sbin/../lib/RT/User.pm:811) > > Any other ideas? > > Best regards > Jan Burian > > On 11.10.2016 05:41, Bill Cole wrote: >> On 10 Oct 2016, at 16:26, Jan Burian wrote: >> >>> Hi all, >>> >>> we have RT 4.4.0 on CentOS 7 and Perl v5.22.1. And we are starting to >>> use RT in production. >>> >>> We configured RT to authenticate users via LDAP >>> (RT::Authen::ExternalAuth::LDAP). Our LDAP server is MS AD (Win 2008 >>> R2). >> [...] >>> Authentication is working fine. Users can log in, if the user doesn't >>> exist in RT the account is autocreated. All the configured attributes >>> are transferred. >> >> This is a strong sign that the LDAP part is working correctly. If the >> LDAP server (AD) and client (Perl's Net::LDAP module) are using >> mismatched encodings, it is likely to show up in authentication >> failures due to incompatible encodings of the same (logical) >> characters that 8-bit encodings assign to byte values 0x80-0xff. >> >> Fortunately, it is somewhere between arcane and impossible to make >> Net::LDAP use anything other than UTF-8. There's *probably* some way >> to make it do T.61 for ancient-history compatibility, but that's >> mostly pointless. >> >> [...] >>> We had similar problem with Moodle. When we configured Moodle against >>> Active Directory and set cp1250 encoding, then it was doing exactly >>> same >>> thing. After we changed encoding for LDAP connector to utf-8 then the >>> names was >>> corrected. >> >> Which makes sense: LDAP v3 by default uses UTF-8 and you have a >> modern system with a mature LDAP client. I know of no way to >> configure a CentOS 7/Perl 5.22 system such that the LDAP interaction >> with an AD LDAP server talking UTF-8 would be the source of this sort >> of encoding conflict. I'm mildly surprised that anything talking >> LDAPv3 can be made to use cp1250 encoding, but I suppose Microsoft >> makes their own rules to go along with their own unique code pages. >> >> [...] >>> Also I red thath MS AD in LDAP protocol version 3 returns any string to >>> LDAP client in utf-8 encoding. >>> I really don't know where could be a problem. >> >> The most likely place is in your database. I'm guessing that you are >> using MySQL, which defaults to latin1 encoding. When you store a >> UTF-8 string into a latin1 table, it breaks any multi-byte characters >> into 2 or 3 characters, but the right bits are still there. This >> issue has come up a few times on this list over the past decade and I >> think Best Practical has documented how to safely convert a RT >> database with that sort of problem from latin1 to utf8. It is >> probably worth looking through their docs (possibly one of the >> UPGRADING* files?) and the RT Wiki for a solution. I expect it could >> be done with a binary dump of the database, altering of any latin1 >> tables to use utf8, and a re-import of the binary dump. I'm not >> enough of a MySQL expert to detail that process (I generally use >> Postgres where possible.) >> --------- >> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3136 bytes Desc: S/MIME Cryptographic Signature URL: From chuck.patton at oracle.com Tue Oct 11 16:27:35 2016 From: chuck.patton at oracle.com (Chuck Patton) Date: Tue, 11 Oct 2016 13:27:35 -0700 Subject: [rt-users] Location for RT training class in Boston, Oct 24-26 2016 Message-ID: <23D31A13-7CC3-4B00-A0C7-DE2E5D952CA4@oracle.com> Does anyone out there know where the RT training will be held later this month in Boston? Thanks - - Chuck From rtusers-20090205 at billmail.scconsult.com Tue Oct 11 18:48:05 2016 From: rtusers-20090205 at billmail.scconsult.com (Bill Cole) Date: Tue, 11 Oct 2016 18:48:05 -0400 Subject: [rt-users] Bad characters in names loaded from LDAP (AD) In-Reply-To: References: <9902590C-3265-4E60-B1FC-54957DB03129@billmail.scconsult.com> Message-ID: On 11 Oct 2016, at 5:51, Jan Burian wrote: > Hi Bill, > > thank you for your response. Sry not to mention our database. > We use PostreSQL. > After I wrote first email a also checked encoding in database. > > The database was with following parameters: > Name | Encoding | Collate | Ctype > -------------+-------------+-----------------+------------------ > rt4 | UTF8 | en_US.UTF-8 | en_US.UTF-8 And so my beautiful theory is destroyed by your brutal facts. :) > 1) I dump database with UTF-8 encoding parameter. > 2) Then I drop the databases. > 3) Create new database with following parameters: > > Name | Encoding | Collate | Ctype > -------------+-------------+-----------------+------------------ > rt4 | UTF8 | cs_CZ.UTF-8 | cs_CZ.UTF-8 > > 4) And then import database from dump. > > But after that change names are loading from LDAP still with bad > characters :-/. Indeed: the Collate and Ctype parameters are encoding-specific rulesets for how characters are related to each other, not variations on encoding. > When the user writes first email to queue, then is also autocreated as > unprivileged. If he/she was his/her name in From header, then is used > as > RealName RT attribute. But in this case is his/her name saved > correctly. > > *Example from the log - autocreated from LDAP:* > [6937] [Tue Sep 27 15:59:25 2016] [info]: > RT::User::CanonicalizeUserInfoFromExternalAuth returning Disabled: , > EmailAddress: novak at vsup.cz, Gecos: novak, Name: novak, Privileged: 1, > RealName: Matou?? Nov??k, WorkPhone: > (/opt/rt4/sbin/../lib/RT/User.pm:811) > [6937] [Tue Sep 27 15:59:25 2016] [info]: Autocreated external user > novak ( 61 ) (/opt/rt4/sbin/../lib/RT/Authen/ExternalAuth.pm:356) > [6937] [Tue Sep 27 15:59:25 2016] [info]: > RT::Authen::ExternalAuth::LDAP::GetAuth External Auth OK ( My_LDAP ): > novak (/opt/rt4/sbin/../lib/RT/Authen/ExternalAuth/LDAP.pm:348) > [6937] [Tue Sep 27 15:59:26 2016] [info]: > RT::User::CanonicalizeUserInfoFromExternalAuth returning EmailAddress: > novak at vsup.cz, Name: novak, *RealName: Matou?? Nov??k*, WorkPhone: > (/opt/rt4/sbin/../lib/RT/User.pm:811) > * > **Example from the log - autocreated from email:* > [6026] [Mon Oct 10 06:26:02 2016] [info]: > RT::User::CanonicalizeUserInfoFromExternalAuth returning Comments: > Autocreated on ticket submission, Disabled: , EmailAddress: > Tereza.Skvarova at seznam.cz, Name: Tereza.Skvarova at seznam.cz, > Privileged: > , *RealName: Tereza ?kv?rov?* (/opt/rt4/sbin/../lib/RT/User.pm:811) > > Any other ideas? Yes: At least one of your FCGI handlers (PID 6937) is using an 8-bit encoding and at least one (PID 6026) is using UTF-8. Note that both of those cases are being logged by the RT::User::CanonicalizeUserInfoFromExternalAuth method, which uses LDAP to retrieve the attribute it uses for the "RealName" field in RT. The first was logged by process 6937, the second by process 6026. The *reason* for that is a bit of a mystery. It's clear that the 2 processes were not started near the same time (unless that server is VERY busy spawning processes) so if you can determine what was different about how they were launched (likely a involving a locale environment variable, most likely LANG or LC_ALL) you can probably make sure that the improper launch doesn't happen. From rtusers-20090205 at billmail.scconsult.com Tue Oct 11 23:18:36 2016 From: rtusers-20090205 at billmail.scconsult.com (Bill Cole) Date: Tue, 11 Oct 2016 23:18:36 -0400 Subject: [rt-users] Create ticket via API ignores Requestors field on notify requestors? In-Reply-To: <1476215928.18299.51.camel@etc.gen.nz> References: <1475720579.18299.15.camel@etc.gen.nz> <1475723305.18299.17.camel@etc.gen.nz> <1476215928.18299.51.camel@etc.gen.nz> Message-ID: <8F0FDEB8-8F9F-4383-BB8A-89913F23D073@billmail.scconsult.com> On 11 Oct 2016, at 15:58, Andrew Ruthven wrote: > Any other suggestions? ?I'm kinda grasping at straws here. Perhaps you need to make Scrip 22 runs in the "Batch" scrip stage? From rtusers-20090205 at billmail.scconsult.com Wed Oct 12 00:15:30 2016 From: rtusers-20090205 at billmail.scconsult.com (Bill Cole) Date: Wed, 12 Oct 2016 00:15:30 -0400 Subject: [rt-users] create transaction record In-Reply-To: References: Message-ID: <5B222A94-86F9-4908-A60B-7AC657B95F18@billmail.scconsult.com> On 10 Oct 2016, at 17:16, Bryon Baker wrote: > Hello List > > I have created a custom scrip the will respond to an email via a web > service call. I would like to create a transaction with the return > message. > > Can someone give me a little code snippet or some direction on how to > create the transaction? With our creating or updating a custom field. > > I have read about the _RecoredTransaction but I think this may be the > wrong route and I have not found any example code to help me out. Have you read https://docs.bestpractical.com/rt/4.4.1/RT/Transaction.html#Create ? Probably more useful: https://docs.bestpractical.com/rt/4.4.1/RT/Ticket.html#Comment The simplest way to call it, given a RT::Ticket object named ticket: $ticket->Comment( Content => "I'm A Little Teapot" ); And now you have a new comment transaction. From elacour at easter-eggs.com Wed Oct 12 03:23:53 2016 From: elacour at easter-eggs.com (Emmanuel Lacour) Date: Wed, 12 Oct 2016 09:23:53 +0200 Subject: [rt-users] Using self service interface for privileged users in 4.4.1? In-Reply-To: References: Message-ID: Le 11/10/2016 ? 20:11, Matt Zagrabelny a ?crit : > On Tue, Oct 11, 2016 at 8:05 AM, Alex Hall wrote: >> Hello list, >> I have 4.4.1 running. Someone said on this list that it included the option >> to use the self service interface, even for privileged users? I don't see >> that option in my user preferences. How do I enable it, and can I have a >> toggle for users to switch between the two without leaving the ticket >> they're viewing? Thanks. > Privileged users can always browse to: > > rt.example.com/SelfService > > You can probably use a callback to add a link to the self service URL > for displaying a ticket. link from standard UI to selfservice: rt/local/html/Callbacks/YourOrg/Elements/Tabs/Privileged: <%init> Menu->child( 'simplified-ui' => title => loc("SelfService"), sort_order => 1, path => '/SelfService/', attributes => { style => 'font-style: italic;' }); link back to standard UI from selfservice: rt/local/html/Callbacks/YourOrg/Elements/Tabs/SelfService: <%init> # Add link to full UI if allowed if ( $session{CurrentUser}->Privileged ) { Menu->child( 'full-ui' => title => loc("Full web interface"), sort_order => 1, path => '/index.html', attributes => { style => 'font-style: italic;' }); } ;) From chaniadimitris at yahoo.gr Wed Oct 12 04:17:15 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Wed, 12 Oct 2016 08:17:15 +0000 (UTC) Subject: [rt-users] Cannot see changes in UI In-Reply-To: References: <2105901519.2150459.1476217023017.ref@mail.yahoo.com> Message-ID: <990194146.142847.1476260235945@mail.yahoo.com> Thank you Alex, but I 've already tried that. Not any change appeared! However, the solution is here: https://rt-wiki.bestpractical.com/wiki/CleanMasonCache I had to clear the Mason cache! Dimitris On Tuesday, October 11, 2016 11:35 PM, Alex Hall wrote: At a guess, I'd say to restart your web server. RT seems to need a restart before changes will be reflected in the web UI. From david.schmidt at univie.ac.at Wed Oct 12 06:16:37 2016 From: david.schmidt at univie.ac.at (David Schmidt) Date: Wed, 12 Oct 2016 12:16:37 +0200 Subject: [rt-users] Adding an Action link to Ticket/Display.html/BeforeActionList In-Reply-To: <89d98907bf3a7d617c5940ad8dea19ce@webmail2016.univie.ac.at> References: <82b05b31ff8f6663a3258845b6cf0785@webmail2016.univie.ac.at> <89d98907bf3a7d617c5940ad8dea19ce@webmail2016.univie.ac.at> Message-ID: <2f4ca59fd8a0bd1facb29f7dd9bb39b2@webmail2016.univie.ac.at> How can I access the referer in a callback? I managed to add the link using this callback: file: html/Callbacks/RT-Extension-OneClickClose/Elements/Tabs/Privileged <%ARGS> $Path => undef <%INIT> if ( $Path =~ m!^\/Ticket\/Display\.html! ) { if ( $DECODED_ARGS->{id} && $DECODED_ARGS->{id} =~ m/\d+/ ) { my $ticket_id = $DECODED_ARGS->{id}; my $actions = PageMenu()->child( 'actions' ); $actions->child( 'OneClickClose', title => 'OneClickClose', path => "/Ticket/Update.html?Status=resolved&SubmitTicket=1&id=$ticket_id&AfterSubmitReturn=1", ); } } On 06.10.2016 14:40, David Schmidt wrote: > I'll answer myself: > if an action is not a ref it is rendered in the result box. bit > unexpected but im sure there is a reason. (code in > share/html/Elements/ListActions) > > https://github.com/bestpractical/rt/blob/stable/share/html/Elements/ListActions#L49 > > > On 06.10.2016 13:53, David Schmidt wrote: >> When/Where are the actions added to @Actions? >> >> 1) for some reason the \@Actions ArrayRef is empty when I access it in >> the callback. Where do the Actions come from? I am talking about the >> links "Reply", "Comment", "Forward", "Stall", ... >> >> 2) If I push a simple string to \@Actions they end up in a yellow >> "Results" Widget. see attached screenshot >> >> >> #local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList >> <%init> >> use Data::Dumper; >> $RT::Logger->debug("\n\n###\n".Dumper($Actions)."\n\n###\n"); >> push @$Actions, "foo"; >> >> >> <%args> >> $Actions => undef >> $TicketObj => undef >> >> >> >> Output: >> ### >> $VAR1 = []; >> >> >> ### >> (/opt/rt4/local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList:3) >> >> --------- >> 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 From ahall at autodist.com Wed Oct 12 09:51:02 2016 From: ahall at autodist.com (Alex Hall) Date: Wed, 12 Oct 2016 09:51:02 -0400 Subject: [rt-users] Using self service interface for privileged users in 4.4.1? In-Reply-To: References: Message-ID: The below code is great, thank you. I'm trying now to figure out a way to toggle the interface while staying on the current page, but I'll have to do more reading first. Using callbacks, can I remove items from existing templates? That is, could I remove the 'Assets' menu item in addition to adding my own menu items? Or provide my own implementation of something, like modifying the text of an existing menu item? My ultimate goal is still to simplify the history display on ticket summaries, but the menu seems a safe place to get my feet wet. I did also download and look at the source of that extension. It's making some sense, but I'm still very new to Perl and Mason, so am learning them at the same time as the callback mechanisms. I'll get there. :) On Wed, Oct 12, 2016 at 3:23 AM, Emmanuel Lacour wrote: > Le 11/10/2016 ? 20:11, Matt Zagrabelny a ?crit : > > On Tue, Oct 11, 2016 at 8:05 AM, Alex Hall wrote: > >> Hello list, > >> I have 4.4.1 running. Someone said on this list that it included the > option > >> to use the self service interface, even for privileged users? I don't > see > >> that option in my user preferences. How do I enable it, and can I have a > >> toggle for users to switch between the two without leaving the ticket > >> they're viewing? Thanks. > > Privileged users can always browse to: > > > > rt.example.com/SelfService > > > > You can probably use a callback to add a link to the self service URL > > for displaying a ticket. > > link from standard UI to selfservice: > > rt/local/html/Callbacks/YourOrg/Elements/Tabs/Privileged: > > <%init> > Menu->child( 'simplified-ui' => title => loc("SelfService"), sort_order > => 1, path => '/SelfService/', attributes => { style => 'font-style: > italic;' }); > > > > link back to standard UI from selfservice: > > rt/local/html/Callbacks/YourOrg/Elements/Tabs/SelfService: > <%init> > # Add link to full UI if allowed > if ( $session{CurrentUser}->Privileged ) { > Menu->child( 'full-ui' => title => loc("Full web interface"), sort_order > => 1, path => '/index.html', attributes => { style => 'font-style: > italic;' }); > } > > > > > > ;) > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Wed Oct 12 10:09:51 2016 From: bbaker at copesan.com (Bryon Baker) Date: Wed, 12 Oct 2016 14:09:51 +0000 Subject: [rt-users] create transaction record In-Reply-To: <5B222A94-86F9-4908-A60B-7AC657B95F18@billmail.scconsult.com> References: <5B222A94-86F9-4908-A60B-7AC657B95F18@billmail.scconsult.com> Message-ID: Thanks Bill I should have thought of that, I will pursue one of those options. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 Ext. 2296 * 262-783-6261 Ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bill Cole Sent: Tuesday, October 11, 2016 11:16 PM To: rt-users Subject: Re: [rt-users] create transaction record On 10 Oct 2016, at 17:16, Bryon Baker wrote: > Hello List > > I have created a custom scrip the will respond to an email via a web > service call. I would like to create a transaction with the return > message. > > Can someone give me a little code snippet or some direction on how to > create the transaction? With our creating or updating a custom field. > > I have read about the _RecoredTransaction but I think this may be the > wrong route and I have not found any example code to help me out. Have you read https://docs.bestpractical.com/rt/4.4.1/RT/Transaction.html#Create ? Probably more useful: https://docs.bestpractical.com/rt/4.4.1/RT/Ticket.html#Comment The simplest way to call it, given a RT::Ticket object named ticket: $ticket->Comment( Content => "I'm A Little Teapot" ); And now you have a new comment transaction. --------- RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Boston - October 24-26 * Los Angeles - Q1 2017 From jeffrey.pilant at bayer.com Wed Oct 12 10:22:53 2016 From: jeffrey.pilant at bayer.com (Jeffrey Pilant) Date: Wed, 12 Oct 2016 14:22:53 +0000 Subject: [rt-users] The role of roles in 4.4 Message-ID: <6fa233d7af27403990fde2d8d7b980b5@MOXDEA.na.bayer.cnb> Alex Hall Wrote: >In the release notes for RT 4.4.0, the concept of "roles" is brought up. >The note says: > > * RT now has support for custom roles, along the lines of Requestor, >Owner, > Cc, and AdminCc. These roles can be single-member or multi-member. > Privileges can be assigned to members of custom roles, you can search >based > on custom role membership, you can notify custom role members in > scrips, and so on. > >This may be an obvious question to long-time users of RT, but what do roles >offer that groups don't? That is, what is the advantage to setting up a >custom role over making a group? In either case you have users assigned >rights based on membership, whether to a group or a role. Thanks. A group membership gives permission 100% of the time. A role membership gives permission only some of the time. If you give permission to close a ticket only to Owner, but not to a group, then you can only close tickets you own. If you gave it to a group instead, then you could close any ticket, even ones you don't own. /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. ________________________________________________________________________ From david.schmidt at univie.ac.at Wed Oct 12 10:23:37 2016 From: david.schmidt at univie.ac.at (David Schmidt) Date: Wed, 12 Oct 2016 16:23:37 +0200 Subject: [rt-users] Adding an Action link to Ticket/Display.html/BeforeActionList In-Reply-To: <2f4ca59fd8a0bd1facb29f7dd9bb39b2@webmail2016.univie.ac.at> References: <82b05b31ff8f6663a3258845b6cf0785@webmail2016.univie.ac.at> <89d98907bf3a7d617c5940ad8dea19ce@webmail2016.univie.ac.at> <2f4ca59fd8a0bd1facb29f7dd9bb39b2@webmail2016.univie.ac.at> Message-ID: <577c01cae863f163c5471b17b814acd3@webmail2016.univie.ac.at> well, here is one solution that works for me. my $referer = RT::Interface::Web::RequestENV('HTTP_REFERER'); https://github.com/MarkHofstetter/RT-Extension-OneClickClose On 12.10.2016 12:16, David Schmidt wrote: > How can I access the referer in a callback? > > > I managed to add the link using this callback: > > file: > html/Callbacks/RT-Extension-OneClickClose/Elements/Tabs/Privileged > <%ARGS> > $Path => undef > > > <%INIT> > if ( $Path =~ m!^\/Ticket\/Display\.html! ) { > if ( $DECODED_ARGS->{id} && $DECODED_ARGS->{id} =~ m/\d+/ ) { > my $ticket_id = $DECODED_ARGS->{id}; > my $actions = PageMenu()->child( 'actions' ); > $actions->child( > 'OneClickClose', > title => 'OneClickClose', > path => > "/Ticket/Update.html?Status=resolved&SubmitTicket=1&id=$ticket_id&AfterSubmitReturn=1", > ); > } > } > > > > > On 06.10.2016 14:40, David Schmidt wrote: >> I'll answer myself: >> if an action is not a ref it is rendered in the result box. bit >> unexpected but im sure there is a reason. (code in >> share/html/Elements/ListActions) >> >> https://github.com/bestpractical/rt/blob/stable/share/html/Elements/ListActions#L49 >> >> >> On 06.10.2016 13:53, David Schmidt wrote: >>> When/Where are the actions added to @Actions? >>> >>> 1) for some reason the \@Actions ArrayRef is empty when I access it >>> in >>> the callback. Where do the Actions come from? I am talking about the >>> links "Reply", "Comment", "Forward", "Stall", ... >>> >>> 2) If I push a simple string to \@Actions they end up in a yellow >>> "Results" Widget. see attached screenshot >>> >>> >>> #local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList >>> <%init> >>> use Data::Dumper; >>> $RT::Logger->debug("\n\n###\n".Dumper($Actions)."\n\n###\n"); >>> push @$Actions, "foo"; >>> >>> >>> <%args> >>> $Actions => undef >>> $TicketObj => undef >>> >>> >>> >>> Output: >>> ### >>> $VAR1 = []; >>> >>> >>> ### >>> (/opt/rt4/local/plugins/RT-Extension-OneClickClose/html/Callbacks/RT-Extension-OneClickClose/Ticket/Display.html/BeforeActionList:3) >>> >>> --------- >>> 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 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From mzagrabe at d.umn.edu Wed Oct 12 10:59:57 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Wed, 12 Oct 2016 09:59:57 -0500 Subject: [rt-users] Using self service interface for privileged users in 4.4.1? In-Reply-To: References: Message-ID: On Wed, Oct 12, 2016 at 8:51 AM, Alex Hall wrote: > The below code is great, thank you. I'm trying now to figure out a way to > toggle the interface while staying on the current page, but I'll have to do > more reading first. > > Using callbacks, can I remove items from existing templates? That is, could > I remove the 'Assets' menu item in addition to adding my own menu items? Yep. We add menu items for our own extensions and also remove/repurpose other menu items. -m From thomas.oddsund at usit.uio.no Wed Oct 12 15:14:41 2016 From: thomas.oddsund at usit.uio.no (Thomas Oddsund) Date: Wed, 12 Oct 2016 19:14:41 +0000 Subject: [rt-users] Downloading attachments via REST Message-ID: <3beba173d0df4873a0ece380697d34b9@mail-ex01.exprod.uio.no> Hello, I am currently in the process of writing a script for simple transferring of tickets from one instance to another. Both instances run 4.2.8, and I'm using Python for the script. Unfortunately, I have met a problem when it comes to attachments. The script uses the requests-library, and rt_get is just a wrapper around the session.get() function. Text files seem fine, but other files(i.e. pdf) aren't stored correctly. >From what I've gathered, even though the Content-Transfer-Encoding says base64, this is not the case, as base64.decoding outputs a 98 byte file. It's not correct to output it as utf-8 encoded either, because that gives a file of 475957 bytes. The original file is 236633 bytes. Also, decoding/encoding the string buffer as Latin-1 throws an error. Have anyone done this before? Is the problem that the pdf file has some other encoding then UTF-8/Latin-1? Will this be different from all files? Are there any ways to just treat the content-response as bits and bytes, and write them directly to a file? A simple example of the code can be seen below, and all kinds of decode/encode attempts have been resultless. #!/usr/bin/env python2 from __future__ import print_function import requests import getpass import re import base64 from rtrequestlib import rt_get, rt_post # Fix Python 2.x. try: input = raw_input except NameError: pass fromSess = requests.Session() fromBase = "https://rt.uio.no/REST/1.0/" username = input("Username: ") password = getpass.getpass() payload = {"user": username, "pass": password} loginS = rt_post(fromSess, fromBase, "", payload) attHead = rt_get(fromSess, fromBase, "ticket/2305592/attachments/26780830/content") # PDF attachment to a ticket # Remove REST-response and last three newlines pdfFile = attHead.text[17:-3] with open("test1.pdf", "wb") as f: f.write(pdfFile.encode("utf-8")) # only 98 bytes with open("test64.pdf", "wb") as f: f.write(base64.decodestring(pdfFile.encode("utf-8"))) with open("test2.pdf", "wb") as f: f.write(pdfFile.encode("iso-8859-1")) # THROWS UnicodeEncodeError Med vennlig hilsen, Thomas Oddsund SDS/USIT From ahall at autodist.com Wed Oct 12 16:53:05 2016 From: ahall at autodist.com (Alex Hall) Date: Wed, 12 Oct 2016 16:53:05 -0400 Subject: [rt-users] clarification on callbacks In-Reply-To: References: Message-ID: Callbacks I get now, at least I'm pretty sure I do. I've been reading the docs for RT objects, and if I can use any of the properties and methods I've found, I can see how plugins are so powerful. My sticking point now is modifying what's already there. I can remove items from a menu with deleteKey, but I haven't found a way to remove items from other areas of RT and replace them with my own. My ultimate goal, as I've said, is to redo the ticket history section on ticket summary and history pages, to make it easier to read and follow. I have an idea of how I'd make the display I want to see, but how do I also get rid of the default one? Callbacks let you insert your own functionality at certain points, but--understandably--they don't seem as willing to let you get at the existing structure. If I wanted to get rid of history and put in my own, or hide the time worked/estimated section entirely, could I do so? If I can, where is a good place to start reading about how? Thanks! On Tue, Oct 11, 2016 at 4:38 PM, Matt Zagrabelny wrote: > Hey Alex, > > On Tue, Oct 11, 2016 at 3:27 PM, Alex Hall wrote: > > Hello list, > > I'm considering trying out a callback. Ken suggested it as a way to add a > > link to pages that will let users toggle between self-service and > standard > > interfaces, and I'm very much hoping I can use it to customize the way > > history displays on ticket summary pages. > > > > From what I've read so far, it seems like a callback is analogous to a > > subclass. If I have a 'renderer' class that can make pretty text from raw > > HTML, I might then subclass it and override the function that parses > text to > > make it work on XML. Yes, it's a very terrible example, but hopefully the > > idea is correct. > > > > Anyway, a callback in RT seems a lot like that. I want the ticket page to > > display how it already does, but I don't like the history part. Thus, I > copy > > the file to the proper callback directory, then modify it. RT will, when > it > > knows it has to use Display.html, look in callbacks first and use my > > version. Only if I don't provide one will it use the default one in > > share/html/Tickets. > > > > Do I have this right--copy the existing file to callbacks and modify it? > Or > > do I make a blank file, override only the bits I want to in there, and > not > > copy the whole thing? Am I thinking about callbacks all wrong? > > You are thinking about Callbacks wrong. :) > > They are hook points in the HTML (Mason) of RT. > > Many (most?) RT extension will have some callbacks in them. Here is a > nice easy one to get your feet wet: > > https://github.com/bestpractical/rt-extension-commentoncreate > > Take a look at the source for this extension and note the > html/Callbacks directory. Then look in your RT share/html directory > for where those callbacks would appear. > > In this particular instance, rt-extension-commentoncreate adds a > "comment" box just below the "create" content box on the > Ticket/Create.html page. > > So you can see from the source of the extension, it will add something > to the AfterMessageBox callback in the Create.html Mason component. > > I'll let you dig a little bit more with this extension or another one > to get more familiar with callbacks. > > Also, read the documentation: > > https://docs.bestpractical.com/rt/4.4.1/writing_extensions.html#Callbacks > > -m > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at etc.gen.nz Wed Oct 12 18:25:13 2016 From: andrew at etc.gen.nz (Andrew Ruthven) Date: Thu, 13 Oct 2016 11:25:13 +1300 Subject: [rt-users] Create ticket via API ignores Requestors field on notify requestors? In-Reply-To: <8F0FDEB8-8F9F-4383-BB8A-89913F23D073@billmail.scconsult.com> References: <1475720579.18299.15.camel@etc.gen.nz> <1475723305.18299.17.camel@etc.gen.nz> <1476215928.18299.51.camel@etc.gen.nz> <8F0FDEB8-8F9F-4383-BB8A-89913F23D073@billmail.scconsult.com> Message-ID: <1476311113.18299.67.camel@etc.gen.nz> On Tue, 2016-10-11 at 23:18 -0400, Bill Cole wrote: > On 11 Oct 2016, at 15:58, Andrew Ruthven wrote: > > > Any other suggestions? ?I'm kinda grasping at straws here. > > Perhaps you need to make Scrip 22 runs in the "Batch" scrip stage? Hi Bill, Yes, that worked perfectly. ?Thanks for the suggestion. Cheers, Andrew --? Andrew Ruthven, Wellington, New Zealand andrew at etc.gen.nz?????????????| linux.conf.au 2017, Hobart, AU ? New Zealand's only Cloud:???| ? The Future of Open Source https://catalyst.net.nz/cloud | ? ? http://linux.conf.au From mzagrabe at d.umn.edu Wed Oct 12 21:37:23 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Wed, 12 Oct 2016 20:37:23 -0500 Subject: [rt-users] [phish?] Re: clarification on callbacks In-Reply-To: References: Message-ID: On Wed, Oct 12, 2016 at 3:53 PM, Alex Hall wrote: > Callbacks I get now, at least I'm pretty sure I do. I've been reading the > docs for RT objects, and if I can use any of the properties and methods I've > found, I can see how plugins are so powerful. > > My sticking point now is modifying what's already there. I can remove items > from a menu with deleteKey, but I haven't found a way to remove items from > other areas of RT and replace them with my own. You would use local versions of the Mason components. RT doesn't (at this point) have that modular or dynamic of an architecture. It'd be great to have flexibility for users to see what they want in the layout - it'd probably be a big-ish undertaking to implement it. My ultimate goal, as I've > said, is to redo the ticket history section on ticket summary and history > pages, to make it easier to read and follow. I have an idea of how I'd make > the display I want to see, but how do I also get rid of the default one? From: https://docs.bestpractical.com/rt/4.4.1/writing_portlets.html "Copy /opt/rt4/html/share/SelfService/index.html to /opt/rt4/local/html/SelfService/index.html" So if you wanted un-callback-able modifications made to your RT, then you'd copy, for instance: /opt/rt4/html/share/Ticket/Display.html to /opt/rt4/html/local/Ticket/Display.html and then hack on the latter. -m From ahall at autodist.com Wed Oct 12 21:44:24 2016 From: ahall at autodist.com (Alex Hall) Date: Wed, 12 Oct 2016 21:44:24 -0400 Subject: [rt-users] [phish?] Re: clarification on callbacks In-Reply-To: References: Message-ID: <8C458C12-A773-4DEF-AEA0-1CE5895A68D0@autodist.com> > On Oct 12, 2016, at 21:37, Matt Zagrabelny wrote: > > On Wed, Oct 12, 2016 at 3:53 PM, Alex Hall wrote: >> Callbacks I get now, at least I'm pretty sure I do. I've been reading the >> docs for RT objects, and if I can use any of the properties and methods I've >> found, I can see how plugins are so powerful. >> >> My sticking point now is modifying what's already there. I can remove items >> from a menu with deleteKey, but I haven't found a way to remove items from >> other areas of RT and replace them with my own. > > You would use local versions of the Mason components. RT doesn't (at > this point) have that modular or dynamic of an architecture. I hoped you weren't going to say that. :) I was looking earlier, to find where exactly the download/with headers links and other extras get assembled and inserted. I couldn't find any of it anywhere. I found ShowHistory and ShowTransaction, but I couldn't find where the text of replies and other transactions gets turned into what you see on the web UI. I must have missed something obvious, but I can't see what. > > It'd be great to have flexibility for users to see what they want in > the layout - it'd probably be a big-ish undertaking to implement it. > > My ultimate goal, as I've >> said, is to redo the ticket history section on ticket summary and history >> pages, to make it easier to read and follow. I have an idea of how I'd make >> the display I want to see, but how do I also get rid of the default one? > > From: > > https://docs.bestpractical.com/rt/4.4.1/writing_portlets.html > > "Copy /opt/rt4/html/share/SelfService/index.html to > /opt/rt4/local/html/SelfService/index.html" > > So if you wanted un-callback-able modifications made to your RT, then > you'd copy, for instance: > > /opt/rt4/html/share/Ticket/Display.html > > to > > /opt/rt4/html/local/Ticket/Display.html > > and then hack on the latter. > > -m From mzagrabe at d.umn.edu Wed Oct 12 21:54:10 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Wed, 12 Oct 2016 20:54:10 -0500 Subject: [rt-users] [phish?] Re: clarification on callbacks In-Reply-To: <8C458C12-A773-4DEF-AEA0-1CE5895A68D0@autodist.com> References: <8C458C12-A773-4DEF-AEA0-1CE5895A68D0@autodist.com> Message-ID: On Wed, Oct 12, 2016 at 8:44 PM, Alex Hall wrote: > >> You would use local versions of the Mason components. RT doesn't (at >> this point) have that modular or dynamic of an architecture. > > I hoped you weren't going to say that. :) I was looking earlier, to find where exactly the download/with headers links and other extras get assembled and inserted. I couldn't find any of it anywhere. I found ShowHistory and ShowTransaction, but I couldn't find where the text of replies and other transactions gets turned into what you see on the web UI. I must have missed something obvious, but I can't see what. You could always get (by paying) BPS to make the modifications to upstream - then you'd get something that is supported for the future and the community would benefit by getting new functionality. -m From aniket.tripathy at gmail.com Thu Oct 13 12:11:08 2016 From: aniket.tripathy at gmail.com (aniket tripathy) Date: Thu, 13 Oct 2016 21:41:08 +0530 Subject: [rt-users] AuthToken Field in the User table Message-ID: Hello, Has anybody ever come across any extension/examples, other than in the ical-extension, for the use of Auth token? Or any idea which scenarios it can be used? Thanks, Aniket -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Zuelow at juneau.org Thu Oct 13 16:32:36 2016 From: James.Zuelow at juneau.org (James Zuelow) Date: Thu, 13 Oct 2016 20:32:36 +0000 Subject: [rt-users] rt-setup-fulltext-index dropped DB connections with MySQL Message-ID: <72f5ab605b3d4de3a9275b40d6424a60@City-Exch-DB1.cbj.local> I'm having trouble setting up the fulltext index on a Debian installation. Admittedly this is a Wheezy installation, not Jessie as we wanted to track a newer version of rt4, so some things may be broken. Hopefully the freeze comes soon though. Package versions at the moment are MySQL 5.6.30, Perl 5.2.22, and request-tracker 4.2.13. There is a Perl 5.4 upgrade available, but that breaks my rt4 installation. Anyway, here's what I see: ########## root at mis-rt-lnx:/usr/sbin# ./rt-setup-fulltext-index --dba rtuser --dba-password secret MySQL 5.6 and above support native full-text indexing; for compatibility with earlier versions of RT, the external Sphinx indexer is still supported. Which indexing solution would you prefer? [mysql]: mysql Enter the name of a new MySQL table that will be used to store the full-text content and indexes: [AttachmentsIndex]: AttachmentsIndex Going to run the following in the DB: CREATE TABLE AttachmentsIndex ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,Content LONGTEXT ) ENGINE=InnoDB CHARACTER SET utf8 Indexing existing data... Going to run the following in the DB: CREATE FULLTEXT INDEX AttachmentsIndex ON AttachmentsIndex(Content) [58876] [Thu Oct 13 02:23:42 2016] [warning]: DBD::mysql::db do failed: Lost connection to MySQL server during query at ./rt-setup-fulltext-index line 736, line 2. (./rt-setup-fulltext-index:736) [58876] [Thu Oct 13 02:23:42 2016] [critical]: DBD::mysql::db do failed: Lost connection to MySQL server during query at ./rt-setup-fulltext-index line 736, line 2. (/usr/share/request-tracker4/lib/RT.pm:389) DBD::mysql::db do failed: Lost connection to MySQL server during query at ./rt-setup-fulltext-index line 736, line 2. ########## The "Lost connection to MySQL" error often occurs when a child kills the database connection for the parent, so I've tried different permutations of InactiveDestroy in the script itself, for example adding the third line below: my $dbh = $RT::Handle->dbh; $dbh->{'RaiseError'} = 1; $dbh->{'PrintError'} = 1; $dbh->{'InactiveDestroy'} = 1; ##THIS LINE ADDED TO SCRIPT## But I'm unable to find a magic fix this way. I've also tried running the script as the MySQL root user without success. This appears to be a slightly different issue than what I see in the archives. Has anyone else seen this or can point me in the right direction to chase down the lost connections? Thanks! James -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Thu Oct 13 16:43:26 2016 From: ahall at autodist.com (Alex Hall) Date: Thu, 13 Oct 2016 16:43:26 -0400 Subject: [rt-users] Changes to html files not appearing Message-ID: Hello list, I've made a change to ShowEmailRecord.html. I copied it to /local/html/Ticket, modified it, cleared the mason cache, and restarted both FCGI and Nginx. But I can't see my change on the website. Of course, this presumes I've correctly followed the chain of includes from the ShowTransaction template back to this html file. Did I miss a step? I'm on Debian, so cleared /opt/rt4/var/mason_data/cache/obj/*. Is there a different cache on Debian, even though I'm now running from source and not the pre-built packages? Thanks. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Thu Oct 13 17:17:20 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Thu, 13 Oct 2016 16:17:20 -0500 Subject: [rt-users] Changes to html files not appearing In-Reply-To: References: Message-ID: Hi Alex, On Thu, Oct 13, 2016 at 3:43 PM, Alex Hall wrote: > Hello list, > I've made a change to ShowEmailRecord.html. I copied it to > /local/html/Ticket, modified it, cleared the mason cache, and restarted > both FCGI and Nginx. But I can't see my change on the website. Of course, > this presumes I've correctly followed the chain of includes from the > ShowTransaction template back to this html file. Did I miss a step? Note: I've never used the /local/html Mason override. >From what I understand, I don't think you missed a step. I'm on > Debian, so cleared /opt/rt4/var/mason_data/cache/obj/*. Is there a different > cache on Debian, even though I'm now running from source and not the > pre-built packages? Since you installed from source, there isn't a different location. Only if you were using a packaged version of RT would the path be dependent on the package. However, if you cleared the mason cache at that location, then it is wrong. You want: sudo find /opt/rt4/var/mason_data/obj -mindepth 1 -delete -m From alex at chmrr.net Fri Oct 14 01:29:18 2016 From: alex at chmrr.net (Alex Vandiver) Date: Thu, 13 Oct 2016 22:29:18 -0700 Subject: [rt-users] rt-setup-fulltext-index dropped DB connections with MySQL In-Reply-To: <72f5ab605b3d4de3a9275b40d6424a60@City-Exch-DB1.cbj.local> References: <72f5ab605b3d4de3a9275b40d6424a60@City-Exch-DB1.cbj.local> Message-ID: <20161013222918.421f7af2@thraddash.chmrr.net> On Thu, 13 Oct 2016 20:32:36 +0000 James Zuelow wrote: > Package versions at the moment are MySQL 5.6.30, Perl 5.2.22, and > request-tracker 4.2.13. There is a Perl 5.4 upgrade available, but > that breaks my rt4 installation. For reference, your perl versions are not comprehensible. Wheezy ships perl 5.14.2, per https://packages.debian.org/wheezy/perl, and there has never been a perl version 5.2 or 5.4 -- 5.002 was released in 1996, 5.004 in 1997, and 5.6 in 2000. > Indexing existing data... > Going to run the following in the DB: > CREATE FULLTEXT INDEX AttachmentsIndex ON AttachmentsIndex(Content) > > [58876] [Thu Oct 13 02:23:42 2016] [warning]: DBD::mysql::db do failed: > Lost connection to MySQL server during query at > ./rt-setup-fulltext-index line 736, line 2. Check your "max_allowed_packet" setting in mysqld. The most common cause is the MySQL client (here, rt-fulltext-indexer) sending something in the MySQL wire protocol which is larger than that limit, which causes the server to unceremoniously drop the connection. Raise that limit and restart mysql, and it should resolve the issue. - Alex From jbrandt at bestpractical.com Fri Oct 14 08:37:25 2016 From: jbrandt at bestpractical.com (Jim Brandt) Date: Fri, 14 Oct 2016 08:37:25 -0400 Subject: [rt-users] rt-setup-fulltext-index dropped DB connections with MySQL In-Reply-To: <20161013222918.421f7af2@thraddash.chmrr.net> References: <72f5ab605b3d4de3a9275b40d6424a60@City-Exch-DB1.cbj.local> <20161013222918.421f7af2@thraddash.chmrr.net> Message-ID: <9e35cf3a-7405-169c-1d05-143e8d33a05c@bestpractical.com> We have also run into a possible mysql bug related to indexing starting in version 5.6.29. The symptom is similar to your report and we saw this sort of error in the mysql log: InnoDB: Assertion failure in thread 140011690678016 in file row0merge.cc line 794 At the time our solution was to revert back to mysql 5.6.28 which didn't have the issue. We don't know yet if this is fixed in a newer release. On 10/14/16 1:29 AM, Alex Vandiver wrote: > On Thu, 13 Oct 2016 20:32:36 +0000 > James Zuelow wrote: >> Package versions at the moment are MySQL 5.6.30, Perl 5.2.22, and >> request-tracker 4.2.13. There is a Perl 5.4 upgrade available, but >> that breaks my rt4 installation. > > For reference, your perl versions are not comprehensible. Wheezy ships > perl 5.14.2, per https://packages.debian.org/wheezy/perl, and there has > never been a perl version 5.2 or 5.4 -- 5.002 was released in 1996, > 5.004 in 1997, and 5.6 in 2000. > > >> Indexing existing data... >> Going to run the following in the DB: >> CREATE FULLTEXT INDEX AttachmentsIndex ON AttachmentsIndex(Content) >> >> [58876] [Thu Oct 13 02:23:42 2016] [warning]: DBD::mysql::db do failed: >> Lost connection to MySQL server during query at >> ./rt-setup-fulltext-index line 736, line 2. > > Check your "max_allowed_packet" setting in mysqld. The most common > cause is the MySQL client (here, rt-fulltext-indexer) sending something > in the MySQL wire protocol which is larger than that limit, which > causes the server to unceremoniously drop the connection. > > Raise that limit and restart mysql, and it should resolve the issue. > > - Alex > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 > From James.Zuelow at juneau.org Fri Oct 14 12:31:33 2016 From: James.Zuelow at juneau.org (James Zuelow) Date: Fri, 14 Oct 2016 16:31:33 +0000 Subject: [rt-users] rt-setup-fulltext-index dropped DB connections with MySQL In-Reply-To: <9e35cf3a-7405-169c-1d05-143e8d33a05c@bestpractical.com> References: <72f5ab605b3d4de3a9275b40d6424a60@City-Exch-DB1.cbj.local> <20161013222918.421f7af2@thraddash.chmrr.net> <9e35cf3a-7405-169c-1d05-143e8d33a05c@bestpractical.com> Message-ID: <92c48081a74841f690453bd476d4d11b@City-Exch-DB1.cbj.local> > -----Original Message----- > From: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of > Jim Brandt > Sent: Friday, October 14, 2016 4:37 AM > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] rt-setup-fulltext-index dropped DB connections with > MySQL > > We have also run into a possible mysql bug related to indexing starting in > version 5.6.29. The symptom is similar to your report and we saw this sort of > error in the mysql log: > > InnoDB: Assertion failure in thread 140011690678016 in file row0merge.cc line > 794 > > At the time our solution was to revert back to mysql 5.6.28 which didn't have > the issue. We don't know yet if this is fixed in a newer release. OK. I don't have this exact error, but I do see that MySQL 5.6.31 is supposed to resolve an issue with InnoDB fulltext indices crashing the server. So I think I'm waiting for 5.6.31 to enter Debian - hopefully before Wheezy freezes or it will be messy. > On 10/14/16 1:29 AM, Alex Vandiver wrote: > > For reference, your perl versions are not comprehensible. Wheezy > > ships perl 5.14.2, per https://packages.debian.org/wheezy/perl, and > > there has never been a perl version 5.2 or 5.4 -- 5.002 was released > > in 1996, > > 5.004 in 1997, and 5.6 in 2000. Sorry, a typo on my part. I have Perl 5.22.2 installed, not 5.2.22. > > > > Check your "max_allowed_packet" setting in mysqld. The most common > > cause is the MySQL client (here, rt-fulltext-indexer) sending > > something in the MySQL wire protocol which is larger than that limit, > > which causes the server to unceremoniously drop the connection. > > > > Raise that limit and restart mysql, and it should resolve the issue. I started at 256M, and slowly raised it to 4096M without success. I will experiment with Debian Snapshots and see if I can roll back MySQL to 5.6.28, and report what happens. James From James.Zuelow at juneau.org Fri Oct 14 13:10:23 2016 From: James.Zuelow at juneau.org (James Zuelow) Date: Fri, 14 Oct 2016 17:10:23 +0000 Subject: [rt-users] rt-setup-fulltext-index dropped DB connections with MySQL In-Reply-To: <92c48081a74841f690453bd476d4d11b@City-Exch-DB1.cbj.local> References: <72f5ab605b3d4de3a9275b40d6424a60@City-Exch-DB1.cbj.local> <20161013222918.421f7af2@thraddash.chmrr.net> <9e35cf3a-7405-169c-1d05-143e8d33a05c@bestpractical.com> <92c48081a74841f690453bd476d4d11b@City-Exch-DB1.cbj.local> Message-ID: > > I will experiment with Debian Snapshots and see if I can roll back MySQL to > 5.6.28, and report what happens. My Debian Snapshots foo is a little weak, so I ended up with MySQL 5.6.27-2 instead of 5.6.28. However, the rt-setup-fulltext-index script ran perfectly at that point. I will pin MySQL at that version until 5.6.31 shows up in the archives. Thank you for your help! James From anthnd at hotmail.com Fri Oct 14 16:17:42 2016 From: anthnd at hotmail.com (Anthony Nguyen-Duong) Date: Fri, 14 Oct 2016 20:17:42 +0000 Subject: [rt-users] Getting all transactions using RT REST API? Message-ID: Hi rt-users, I'm currently working on a web app to pull statistics from RT. One of the stats I'd like to show for each ticket is the number of emails received. The way that I've implemented it now is essentially go to /REST/1.0/ticket/nn/history/ and then count up the number of emails. But I call this for every single ticket. So it's horribly inefficient for larger number of tickets. I was wondering if there was a way of getting all the transactions in one API call instead of one for every ticket I iterate through. Thanks, Anthony -------------- next part -------------- An HTML attachment was scrubbed... URL: From T.Pletter at rewe-group.at Mon Oct 17 04:02:07 2016 From: T.Pletter at rewe-group.at (Pletter Thomas) Date: Mon, 17 Oct 2016 08:02:07 +0000 Subject: [rt-users] Query history ( oracle database ) Message-ID: <9AA6D280E7FDFB4B8C7FD765D50F9BC6448C8EF3@SAUT0015.REWE-AUT.1TLD.BIZ> Hello, Our repository is stored in a oracle database. In which column is the history of a ticket stored ? I find , Is it the Table transactions, Column data ? In Column objectid is the ticket id stored . When I query the table transactions, I can't get the total history of one ticket. Kind regards, Tom ______________________________________ HINWEIS: Alle von Gesellschaften der REWE International AG elektronisch uebermittelten Auskuenfte, Mitteilungen und Erklaerungen sind vertraulich und rechtlich unverbindlich. Verpflichtungen von Gesellschaften der REWE International AG beduerfen der schriftlichen Einigung in saemtlichen Vertragspunkten sowie der Unterfertigung durch das vertretungsbefugte Organ. Im Falle einer Fehluebermittlung ersuchen wir um Benachrichtigung sowie um Vernichtung und Beachtung, dass jegliche Form der Verwendung und Weitergabe der Inhalte an Dritte unzulaessig ist. NOTICE: All notices, declarations and explanations transferred electronically from REWE International AG companies are confidential and not legally binding. Obligations of REWE International AG companies arise only when written agreement to all contractual points has been confirmed in writing with the signature of an authorized representative. If this e-mail was sent by mistake, please inform us immediately. Furthermore we also request you to destroy it and use neither the contents nor disclose them in any manner to third parties. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kdh162 at cse.psu.edu Mon Oct 17 08:45:12 2016 From: kdh162 at cse.psu.edu (Kem Hartley) Date: Mon, 17 Oct 2016 08:45:12 -0400 Subject: [rt-users] RT 4.4.1 login form and 2FA Message-ID: RT Community, I'm trying to setup 2FA, specifically Duo, with the RT login process. I'm having a difficult time figuring out where to place the duo perl code in the login process. I'm using external LDAP authentication. Once the successful login returns from LDAP, where does RT forward to the home page. I need to put in the duo perl code before RT sends the authenticated user to the home page. Any help would be greatly appreciated. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Daniel.Schwager at dtnet.de Mon Oct 17 09:13:17 2016 From: Daniel.Schwager at dtnet.de (Daniel Schwager) Date: Mon, 17 Oct 2016 13:13:17 +0000 Subject: [rt-users] Search tickets which refers to an asset? (RT 4.4.1) Message-ID: <5C4B841CCF894A4CBD8B13E25E2A575F245C979B@exchange2.dtnet.de> Hi all, I'm wondering if there's a possibility to search all tickets refering to one or more assets. A ticket search string like RefersTo = 'a:%' does not work. Any ideas? Best regards Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4000 bytes Desc: not available URL: From martin.wheldon at greenhills-it.co.uk Mon Oct 17 09:25:10 2016 From: martin.wheldon at greenhills-it.co.uk (Martin Wheldon) Date: Mon, 17 Oct 2016 13:25:10 +0000 Subject: [rt-users] RT 4.4.1 login form and 2FA In-Reply-To: References: Message-ID: Hi, I'm not familiar with the DUO 2FA solution, but I think you may be looking for callbacks in the login page. The following should help: https://rt-wiki.bestpractical.com/wiki/CustomizingWithCallbacks I beleive the ones you are interested in are those below: /Elements/Login CallbackName => 'AfterForm' /Elements/Login CallbackName => 'BeforeForm' Hope that helps Best Regards Martin On 2016-10-17 12:45, Kem Hartley wrote: > RT Community, > I'm trying to setup 2FA, specifically Duo, with the RT login process. > I'm having a difficult time figuring out where to place the duo perl > code in the login process. I'm using external LDAP authentication. > Once the successful login returns from LDAP, where does RT forward to > the home page. I need to put in the duo perl code before RT sends the > authenticated user to the home page. Any help would be greatly > appreciated. Thank you. > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From mzagrabe at d.umn.edu Mon Oct 17 09:37:50 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Mon, 17 Oct 2016 08:37:50 -0500 Subject: [rt-users] RT 4.4.1 login form and 2FA In-Reply-To: References: Message-ID: On Mon, Oct 17, 2016 at 7:45 AM, Kem Hartley wrote: > RT Community, > I'm trying to setup 2FA, specifically Duo, with the RT login process. I'm > having a difficult time figuring out where to place the duo perl code in the > login process. I'm using external LDAP authentication. Once the successful > login returns from LDAP, where does RT forward to the home page. I need to > put in the duo perl code before RT sends the authenticated user to the home > page. Any help would be greatly appreciated. Thank you. Are you looking to use LDAP for AUTHN or hack RT to use DUO? I'm not sure if LDAP can use PAM for AUTHN, but if it can, you can use a PAM RADIUS module and configure DUO on your RADIUS server. -m From martin.wheldon at greenhills-it.co.uk Mon Oct 17 09:58:32 2016 From: martin.wheldon at greenhills-it.co.uk (Martin Wheldon) Date: Mon, 17 Oct 2016 13:58:32 +0000 Subject: [rt-users] RT 4.4.1 login form and 2FA In-Reply-To: References: Message-ID: Hi, Using the Duo ldap proxy looks like a viable option too. https://duo.com/docs/ldap Best Regards Martin On 2016-10-17 13:37, Matt Zagrabelny wrote: > On Mon, Oct 17, 2016 at 7:45 AM, Kem Hartley > wrote: >> RT Community, >> I'm trying to setup 2FA, specifically Duo, with the RT login process. >> I'm >> having a difficult time figuring out where to place the duo perl code >> in the >> login process. I'm using external LDAP authentication. Once the >> successful >> login returns from LDAP, where does RT forward to the home page. I >> need to >> put in the duo perl code before RT sends the authenticated user to the >> home >> page. Any help would be greatly appreciated. Thank you. > > Are you looking to use LDAP for AUTHN or hack RT to use DUO? > > I'm not sure if LDAP can use PAM for AUTHN, but if it can, you can use > a PAM RADIUS module and configure DUO on your RADIUS server. > > -m > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From kdh162 at cse.psu.edu Mon Oct 17 10:10:24 2016 From: kdh162 at cse.psu.edu (Kem Hartley) Date: Mon, 17 Oct 2016 10:10:24 -0400 Subject: [rt-users] RT 4.4.1 login form and 2FA In-Reply-To: References: Message-ID: Hi Martin, That might be a viable option as well. I might try that or switching to apache authentication via radius as well. Thanks all for the responses! On 10/17/16 9:58 AM, Martin Wheldon wrote: > Hi, > > Using the Duo ldap proxy looks like a viable option too. > > https://duo.com/docs/ldap > > Best Regards > > Martin > > On 2016-10-17 13:37, Matt Zagrabelny wrote: >> On Mon, Oct 17, 2016 at 7:45 AM, Kem Hartley wrote: >>> RT Community, >>> I'm trying to setup 2FA, specifically Duo, with the RT login >>> process. I'm >>> having a difficult time figuring out where to place the duo perl >>> code in the >>> login process. I'm using external LDAP authentication. Once the >>> successful >>> login returns from LDAP, where does RT forward to the home page. I >>> need to >>> put in the duo perl code before RT sends the authenticated user to >>> the home >>> page. Any help would be greatly appreciated. Thank you. >> >> Are you looking to use LDAP for AUTHN or hack RT to use DUO? >> >> I'm not sure if LDAP can use PAM for AUTHN, but if it can, you can use >> a PAM RADIUS module and configure DUO on your RADIUS server. >> >> -m >> --------- >> 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 -- Kem Hartley Network Systems Specialist School of EECS The Pennsylvania State University -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael_Fisher at URMC.Rochester.edu Mon Oct 17 09:56:20 2016 From: Michael_Fisher at URMC.Rochester.edu (Fisher, Michael (SON)) Date: Mon, 17 Oct 2016 13:56:20 +0000 Subject: [rt-users] "Group By" Error with CustomFields Message-ID: <642992CC-7082-4652-9189-3B71DD677F00@URMC.Rochester.edu> Greetings! I?ve had this error going on for the last 2 years or so (the cause seemed to be driven by adding a new Custom Field configuration). I?ve been on the 4.0 release for a while (upgraded to various versions through the 2.x and 3.x series). I hoped that it would fix itself when I migrated up to 4.4 (only done in test so far), but no such luck. It is generated any time a ticket is shown through the web interface, so it?s a pretty frequent error! Oct 16 17:40:36 helium postgres[4097]: [5-1] ERROR: column "main.name" must appear in the GROUP BY clause or be used in an aggregate function at character 8 Oct 16 17:40:36 helium postgres[4097]: [5-2] STATEMENT: SELECT main.* FROM CustomFields main JOIN ObjectCustomFields ObjectCustomFields_1 ON ( ObjectCustomFields_1.CustomField = main.id ) WHERE (ObjectCustomFields_1.ObjectId = '33' OR ObjectCustomFields_1.ObjectId = '0') AND (main.Disabled = '0') AND (main.LookupType = 'RT::Queue-RT::Ticket-RT::Transaction') GROUP BY main.id ORDER BY MIN(ObjectCustomFields_1.SortOrder) ASC When this fails, it seems to also prevent the Custom Fields functionality from working at all, which is a bummer. I tried deleting everything from CustomFields, CustomFieldValues, ObjectCustomFields, and ObjectCustomFieldValues, but this didn?t help. Environment: FreeBSD 9.3 (migrating to 10.3), PostgreSQL 9.1 (migrating to 9.5), RT 4.0.24 (migrating to 4.4.1). I did a new RT 4.4.1 build/database in a VM and compared the schemas between my upgraded RT database and the clean one, and I didn?t see significant differences in the CustomFields, CustomFieldValues, ObjectCustomFields, and ObjectCustomFieldValues tables. Any suggestions on what I could do to help resolve this error? Thanks! -- Mike Fisher Michael_Fisher at urmc.rochester.edu 585-275-6884 University of Rochester School of Nursing -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvdwege at xs4all.nl Mon Oct 17 10:49:32 2016 From: jvdwege at xs4all.nl (Joop) Date: Mon, 17 Oct 2016 16:49:32 +0200 Subject: [rt-users] "Group By" Error with CustomFields In-Reply-To: <642992CC-7082-4652-9189-3B71DD677F00@URMC.Rochester.edu> References: <642992CC-7082-4652-9189-3B71DD677F00@URMC.Rochester.edu> Message-ID: <5804E4FC.1060107@xs4all.nl> On 17-10-2016 15:56, Fisher, Michael (SON) wrote: > > Greetings! > > > > I?ve had this error going on for the last 2 years or so (the cause > seemed to be driven by adding a new Custom Field configuration). I?ve > been on the 4.0 release for a while (upgraded to various versions > through the 2.x and 3.x series). I hoped that it would fix itself when > I migrated up to 4.4 (only done in test so far), but no such luck. > > > > It is generated any time a ticket is shown through the web interface, > so it?s a pretty frequent error! > > > > Oct 16 17:40:36 helium postgres[4097]: [5-1] ERROR: column > "main.name" must appear in the GROUP BY clause or be used in an > aggregate function at character 8 > > Oct 16 17:40:36 helium postgres[4097]: [5-2] STATEMENT: SELECT main.* > FROM CustomFields main JOIN ObjectCustomFields ObjectCustomFields_1 > ON ( ObjectCustomFields_1.CustomField = main.id ) WHERE > (ObjectCustomFields_1.ObjectId = '33' OR ObjectCustomFields_1.ObjectId > = '0') AND (main.Disabled = '0') AND (main.LookupType = > 'RT::Queue-RT::Ticket-RT::Transaction') GROUP BY main.id ORDER BY > MIN(ObjectCustomFields_1.SortOrder) ASC > > > > When this fails, it seems to also prevent the Custom Fields > functionality from working at all, which is a bummer. > > > > I tried deleting everything from CustomFields, CustomFieldValues, > ObjectCustomFields, and ObjectCustomFieldValues, but this didn?t help. > > > > Environment: FreeBSD 9.3 (migrating to 10.3), PostgreSQL 9.1 > (migrating to 9.5), RT 4.0.24 (migrating to 4.4.1). > > > > I did a new RT 4.4.1 build/database in a VM and compared the schemas > between my upgraded RT database and the clean one, and I didn?t see > significant differences in the CustomFields, CustomFieldValues, > ObjectCustomFields, and ObjectCustomFieldValues tables. > > > Have a look at the perl SearchBuilder component, it might be that your fresh build has the latest with some adjustments to prevent the error that is thrown in your current env. Regards, Joop -------------- next part -------------- An HTML attachment was scrubbed... URL: From aniket.tripathy at gmail.com Mon Oct 17 10:52:52 2016 From: aniket.tripathy at gmail.com (aniket tripathy) Date: Mon, 17 Oct 2016 20:22:52 +0530 Subject: [rt-users] Query history ( oracle database ) In-Reply-To: <9AA6D280E7FDFB4B8C7FD765D50F9BC6448C8EF3@SAUT0015.REWE-AUT.1TLD.BIZ> References: <9AA6D280E7FDFB4B8C7FD765D50F9BC6448C8EF3@SAUT0015.REWE-AUT.1TLD.BIZ> Message-ID: In Transactions table, the condition ObjectType= RT::Ticket and objectId = will give you the transactions for the ticket. The contents of those transactions will be available from Attachments table. On Mon, Oct 17, 2016 at 1:32 PM, Pletter Thomas wrote: > Hello, > > Our repository is stored in a oracle database. > > In which column is the history of a ticket stored ? > > I find * >* , > > Is it the Table transactions, Column data ? In Column objectid is the > ticket id stored . > When I query the table transactions, I can?t get the total history of one > ticket. > > Kind regards, > Tom > ______________________________________ > > HINWEIS: > Alle von Gesellschaften der REWE International AG elektronisch > uebermittelten Auskuenfte, Mitteilungen > und Erklaerungen sind vertraulich und rechtlich unverbindlich. > Verpflichtungen von Gesellschaften der > REWE International AG beduerfen der schriftlichen Einigung in saemtlichen > Vertragspunkten sowie der Unterfertigung > durch das vertretungsbefugte Organ. Im Falle einer Fehluebermittlung > ersuchen wir um Benachrichtigung sowie um > Vernichtung und Beachtung, dass jegliche Form der Verwendung und > Weitergabe der Inhalte an Dritte unzulaessig ist. > > NOTICE: > All notices, declarations and explanations transferred electronically from > REWE International AG companies > are confidential and not legally binding. Obligations of REWE > International AG companies arise only when written > agreement to all contractual points has been confirmed in writing with the > signature of an authorized representative. > If this e-mail was sent by mistake, please inform us immediately. > Furthermore we also request you to destroy it > and use neither the contents nor disclose them in any manner to third > parties. > > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 17 13:38:44 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 17 Oct 2016 13:38:44 -0400 Subject: [rt-users] Making priority appear on ticket basics page? Message-ID: Hello list, RT is really coming along here. Customized templates, plugins, and callbacks are all working well on the test instance, thanks to the help of this list. The next thing I'll be asked to fix is that priority doesn't appear on the ticket page automatically; you must first hit the 'details' link to see it. Is there a simple way of getting the priority options on the basics page, short of further modifying the template? Thanks. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lstewart at internap.com Mon Oct 17 14:52:01 2016 From: lstewart at internap.com (Landon Stewart) Date: Mon, 17 Oct 2016 18:52:01 +0000 Subject: [rt-users] RT 4.2.9 (+ RTIR 3.2.0) Menus do not load all of a sudden this morning unless I turn $DevelMode on Message-ID: Hello, This morning my team could not see the ticket history on tickets. I changed the $ShowHistory setting to 'always' and this fixed that particular issue. Then I noticed that the menus at the top of the pages were also not loading so I looked at the source of the page and saw a few JQuery errors. I'm not 100% sure if those are relevant but when I turned $DevelMode on the issue's went away. There were no changes made over the weekend. With $DevelMode off (like it usually is) I see errors about squish-xxxx.js having an unexpected end of file. I know RTIR caches these kinds of things in the mason_data/obj/ directory which is why I turned on $DevelMode to see if that fixed it. What can I do or investigate to make things work again without $DevelMode turned on? I'm not able to upgrade RT+RTIR quite yet but we plan to eventually. I'd also like to delay the ticket history like it was before too but I suspect that these issues are related (javascript issues). From my browser's developer console: [cid:C0C704A7-5798-43D0-A14D-A9B693CE1756 at corp.iweb.com] -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2016-10-17 at 11.26.35 AM.png Type: image/png Size: 75955 bytes Desc: Screen Shot 2016-10-17 at 11.26.35 AM.png URL: From rune.rt at henssel.dk Mon Oct 17 19:19:17 2016 From: rune.rt at henssel.dk (Rune Henssel) Date: Tue, 18 Oct 2016 01:19:17 +0200 Subject: [rt-users] Unable to create ticket via email Message-ID: <7f99a523-3cd5-8d52-dba8-240278a8de80@henssel.dk> 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 From lstewart at internap.com Tue Oct 18 04:01:01 2016 From: lstewart at internap.com (Landon Stewart) Date: Tue, 18 Oct 2016 08:01:01 +0000 Subject: [rt-users] RT 4.2.9 (+ RTIR 3.2.0) Menus do not load all of a sudden this morning unless I turn $DevelMode on In-Reply-To: References: Message-ID: On Oct 17, 2016, at 11:52 AM, Landon Stewart > wrote: Hello, This morning my team could not see the ticket history on tickets. I changed the $ShowHistory setting to 'always' and this fixed that particular issue. Then I noticed that the menus at the top of the pages were also not loading so I looked at the source of the page and saw a few JQuery errors. I'm not 100% sure if those are relevant but when I turned $DevelMode on the issue's went away. Just an update to please disregard this. The issue was with the storage on the VM (I/O Wait issues) causing files to not be fully written to disk. -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cam2 at cornell.edu Tue Oct 18 06:41:31 2016 From: cam2 at cornell.edu (Chris Manly) Date: Tue, 18 Oct 2016 10:41:31 +0000 Subject: [rt-users] Unable to create ticket via email In-Reply-To: <7f99a523-3cd5-8d52-dba8-240278a8de80@henssel.dk> References: <7f99a523-3cd5-8d52-dba8-240278a8de80@henssel.dk> Message-ID: <978DB9CE-71BE-4538-9A4A-D8C1F0EE692A@cornell.edu> 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 cam2 at 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 From joel.bergmark at t3.se Tue Oct 18 05:03:30 2016 From: joel.bergmark at t3.se (Joel Bergmark) Date: Tue, 18 Oct 2016 09:03:30 +0000 Subject: [rt-users] rt-crontool on condition x change queue Message-ID: Hi, Just a quick one this time, is there any easy way to use rt crontool get something like this working: /opt/rt4/bin/rt-crontool --search RT::Search::FromSQL --search-arg "Queue = 'X' AND (Status='new' OR Status='open')" --condition RT::Condition::Overdue --action RT::Queue "Newqueue" I know its not really under rt::action but is there a way to call upon rt::queue from this? Tried a bunch of different syntax but get "RT::Queue::Prepare Unimplemented in main." [Beskrivning: T3] JOEL BERGMARK Thirdline support joel.bergmark at t3.se | www.t3.se [Beskrivning: T3] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1819 bytes Desc: image001.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 3343 bytes Desc: image002.jpg URL: From elacour at easter-eggs.com Tue Oct 18 10:01:22 2016 From: elacour at easter-eggs.com (Emmanuel Lacour) Date: Tue, 18 Oct 2016 16:01:22 +0200 Subject: [rt-users] rt-crontool on condition x change queue In-Reply-To: References: Message-ID: Le 18/10/2016 ? 11:03, Joel Bergmark a ?crit : > > Hi, > > > > Just a quick one this time, is there any easy way to use rt crontool > get something like this working: > > > > /opt/rt4/bin/rt-crontool --search RT::Search::FromSQL --search-arg > "Queue = 'X' AND (Status='new' OR Status='open')" --condition > RT::Condition::Overdue --action RT::Queue "Newqueue" > > > > I know its not really under rt::action but is there a way to call upon > rt::queue from this? Tried a bunch of different syntax but get > ?RT::Queue::Prepare Unimplemented in main.? > > > there is no stock SetQueue RT action, you have to write it yourself. Just put the following content (untested) in rt/local/lib/RT/Action/SetQueue.pm and call it like this: /opt/rt4/bin/rt-crontool --search RT::Search::FromSQL --search-arg "Queue = 'X' AND (Status='new' OR Status='open')" --condition RT::Condition::Overdue --action SetQueue --action-arg "Newqueue" ------------------------------------ cut ------------------------------------ package RT::Action::SetQueue; use base 'RT::Action'; use strict; use warnings; sub Describe { my $self = shift; return (ref $self . " will set a ticket's queue to the argument provided."); } sub Prepare { return 1; } sub Commit { my $self = shift; $self->TicketObj->SetQueue($self->Argument); } 1; ------------------------------------ cut ------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.wheldon at greenhills-it.co.uk Tue Oct 18 10:30:06 2016 From: martin.wheldon at greenhills-it.co.uk (Martin Wheldon) Date: Tue, 18 Oct 2016 14:30:06 +0000 Subject: [rt-users] Search for Assets with active tickets Message-ID: <5d885d16a71c6cfea06ddac1e4f6a12d@mail.greenhills-it.co.uk> Hi, I'm running RT 4.4.1 and am trying to get a list of Assets that have active tickets logged against them. I know I can do a asset search for all assets then click through each of the active links, but am wondering whether I can coerce the Advanced ticket search into doing this. Any help/pointers in the right direction would be much appreciated. Thanks in advance -- Martin Wheldon Greenhills IT Ltd. Telephone: 01904 238 454 Website: www.greenhills-it.co.uk Greenhills IT Ltd. is a limited company registered in England and Wales. Company Registration No: 06387214 Registered Offices: 2 Greenhills, Claxton, YORK, North Yorkshire, YO60 7SA From Michael_Fisher at URMC.Rochester.edu Tue Oct 18 12:25:43 2016 From: Michael_Fisher at URMC.Rochester.edu (Fisher, Michael (SON)) Date: Tue, 18 Oct 2016 16:25:43 +0000 Subject: [rt-users] "Group By" Error with CustomFields Message-ID: <945CA8E3-9A83-40DA-B5FD-B2EAE093D9B8@URMC.Rochester.edu> >> Oct 16 17:40:36 helium postgres[4097]: [5-1] ERROR: column >> "main.name" must appear in the GROUP BY clause or be used in an >> aggregate function at character 8 >> Oct 16 17:40:36 helium postgres[4097]: [5-2] STATEMENT: SELECT >> main.* FROM CustomFields main JOIN ObjectCustomFields >> ObjectCustomFields_1 ON ( ObjectCustomFields_1.CustomField = >> main.id ) WHERE (ObjectCustomFields_1.ObjectId = '33' OR >> ObjectCustomFields_1.ObjectId = '0') AND (main.Disabled = '0') AND >> (main.LookupType = 'RT::Queue-RT::Ticket-RT::Transaction') GROUP BY >> main.id ORDER BY MIN(ObjectCustomFields_1.SortOrder) ASC >> >> When this fails, it seems to also prevent the Custom Fields >> functionality from working at all, which is a bummer. >> >> I tried deleting everything from CustomFields, CustomFieldValues, >> ObjectCustomFields, and ObjectCustomFieldValues, but this didn?t >> help. >> >> Environment: FreeBSD 9.3 (migrating to 10.3), PostgreSQL 9.1 >> (migrating to 9.5), RT 4.0.24 (migrating to 4.4.1). >> > Have a look at the perl SearchBuilder component, it might be that your > fresh build has the latest with some adjustments to prevent the error > that is thrown in your current env. Joop, Thanks for the tip. However, both systems show the error and both systems are running DBIx-SearchBuilder 1.66 (current in FreeBSD ports). -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4438 bytes Desc: not available URL: From rune.rt at henssel.dk Tue Oct 18 12:29:15 2016 From: rune.rt at henssel.dk (Rune Henssel) Date: Tue, 18 Oct 2016 18:29:15 +0200 Subject: [rt-users] Unable to create ticket via email In-Reply-To: <978DB9CE-71BE-4538-9A4A-D8C1F0EE692A@cornell.edu> References: <7f99a523-3cd5-8d52-dba8-240278a8de80@henssel.dk> <978DB9CE-71BE-4538-9A4A-D8C1F0EE692A@cornell.edu> Message-ID: <70a4a370-7b43-ec91-3549-3b8f6cd160c3@henssel.dk> On 18-10-2016 12:41, Chris Manly wrote: > 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. > That unfortunately didn't work,I still get the "You do not have permission to communicate with RT" message. I also tried with Set($AutoCreateNonExternalUsers, 1); but that doesn't change anything This what I get with Set($LogToFile, 'debug'); [25116] [Tue Oct 18 13:30:46 2016] [debug]: RT::User::CanonicalizeUserInfoFromExternalAuth called by RT::User /opt/rt4/sbin/../lib/RT/User.pm 701 with: Comments: Autocreated on ticket submission, Disabled: , EmailAddress: PROTECTED at PROTECTED, Name: PROTECTED at PROTECTED, Privileged: , RealName: Rune Henssel (/opt/rt4/sbin/../lib/RT/User.pm:735) [25116] [Tue Oct 18 13:30:46 2016] [debug]: Attempting to get user info using this external service: Pg_Auth (/opt/rt4/sbin/../lib/RT/User.pm:743) [25116] [Tue Oct 18 13:30:46 2016] [debug]: Attempting to use this canonicalization key: EmailAddress (/opt/rt4/sbin/../lib/RT/User.pm:752) [25116] [Tue Oct 18 13:30:46 2016] [info]: RT::Authen::ExternalAuth::DBI::CanonicalizeUserInfo INFO CHECK FAILED Key: email Value: PROTECTED at PROTECTED No User Found in External Database! (/opt/rt4/sbin/../lib/RT/Authen/ExternalAuth/DBI.pm:400) [25116] [Tue Oct 18 13:30:46 2016] [debug]: Attempting to use this canonicalization key: RealName (/opt/rt4/sbin/../lib/RT/User.pm:752) [25116] [Tue Oct 18 13:30:46 2016] [info]: RT::User::CanonicalizeUserInfoFromExternalAuth returning Comments: Autocreated on ticket submission, Disabled: , EmailAddress: rune.rt at henssel.dk, Name: rune.rt at henssel.dk, Privileged: , RealName: Rune Henssel (/opt/rt4/sbin/../lib/RT/User.pm:811) [25116] [Tue Oct 18 13:30:51 2016] [critical]: Failed to create user PROTECTED at PROTECTED: Name in use (/opt/rt4/sbin/../lib/RT/User.pm:546) [25116] [Tue Oct 18 13:30:51 2016] [crit]: Permission Denied: You do not have permission to communicate with RT (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:701) [25120] [Tue Oct 18 13:51:24 2016] [debug]: Attempting to use external auth service: Pg_Auth (/opt/rt4/sbin/../lib/RT/Authen/ExternalAuth.pm:288) [25120] [Tue Oct 18 13:51:24 2016] [debug]: SSO Failed and no user to test with. Nexting (/opt/rt4/sbin/../lib/RT/Authen/ExternalAuth.pm:316) [25120] [Tue Oct 18 13:51:24 2016] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/opt/rt4/share/html/Elements/DoAuth:58) Yours Rune Henssel From rune.rt at henssel.dk Tue Oct 18 16:56:18 2016 From: rune.rt at henssel.dk (Rune Henssel) Date: Tue, 18 Oct 2016 22:56:18 +0200 Subject: [rt-users] Unable to create ticket via email In-Reply-To: <70a4a370-7b43-ec91-3549-3b8f6cd160c3@henssel.dk> References: <7f99a523-3cd5-8d52-dba8-240278a8de80@henssel.dk> <978DB9CE-71BE-4538-9A4A-D8C1F0EE692A@cornell.edu> <70a4a370-7b43-ec91-3549-3b8f6cd160c3@henssel.dk> Message-ID: On 18-10-2016 18:29, Rune Henssel wrote: > On 18-10-2016 12:41, Chris Manly wrote: >> 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. >> > > That unfortunately didn't work,I still get the "You do not have permission to communicate with RT" message. I found the error, it was an overzealous 'attr_match_list' in the external authentication settings, once it was changed everything worked. Yours Rune Henssel From mgalland at goodygoody.com Wed Oct 19 09:37:14 2016 From: mgalland at goodygoody.com (Malcolm Galland) Date: Wed, 19 Oct 2016 13:37:14 +0000 Subject: [rt-users] RT 4.4.1 on Debian with RT::Authen::ExternalAuth? Message-ID: <1476884315.3622.25.camel@goodygoody.com> I've set up RT, and am testing it with rt-server. ?Everything seems to be going smoothly except LDAP with?RT::Authen::ExternalAuth. ?I read the docs and have implemented the suggested changes in /opt/rt4/etc/RT_SiteConfig.pm like so: Set( $ExternalAuthPriority, ["My_LDAP"] ); Set( $ExternalInfoPriority, ["My_LDAP"] ); Set($ExternalAuth, 1); Set( $UserAutocreateDefaultsOnLogin, { Privileged => 1 } ); Set($AutoCreateNonExternalUsers, 1); Set($ExternalSettings, { ? ? 'My_LDAP'???????=>??{ ? ? ? ? 'type'?????????????=>??'ldap', ? ? ? ? 'server'???????????=>??'ggdc1.domain.int', ? ? ? ? 'user'?????????????=>??'LDAP_ACCOUNT', ? ? ? ? 'pass'?????????????=>??'LDAP_ACCOUNT_PASS', ? ? ? ? 'base'?????????????=>??'ou=Production,dc=domain,dc=int', ? ? ? ? 'filter'???????????=>??'(objectClass=inetOrgPerson)', ? ? ? ? 'attr_match_list'??=> [ ? ? ? ? ? ? 'Name', ? ? ? ? ? ? 'EmailAddress', ? ? ? ? ], ? ? ? ? 'attr_map' => { ????????????????'Name'?????????=> 'sAMAccountName', ????????????????'EmailAddress' => 'mail', ????????????????'RealName'?????=> 'cn', ? ? ? ? ? ? ? ? 'WorkPhone'????=> 'telephoneNumber', ????????????????'Address1'?????=> 'streetAddress', ????????????????'City'?????????=> 'l', ????????????????'State'????????=> 'st', ????????????????'Zip'??????????=> 'postalCode', ????????????????'Country'??????=> 'co', ? ? ? ? }, ? ? }, } ); The issue is when I try to login the users aren't allowed access, and I get the following error from rt-server: [error]: FAILED LOGIN for username_redacted from IP_REDACTED (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:826) Just for kicks, if I run?/opt/rt4/sbin/rt-ldapimport --debug I get:? ?[critical]: Expected 'PeerHost' at /usr/local/share/perl/5.20.2/Net/LDAP.pm line 164. (/opt/rt4/sbin/../lib/RT.pm:390) Any ideas? ?I read every document I could find, but it's hard to know which non-official ones you can trust since RT has been around so long and ExternalAuth was just added to the core. ?Also, the official docs are a bit terse. From martin.wheldon at greenhills-it.co.uk Wed Oct 19 10:33:40 2016 From: martin.wheldon at greenhills-it.co.uk (Martin Wheldon) Date: Wed, 19 Oct 2016 14:33:40 +0000 Subject: [rt-users] RT 4.4.1 on Debian with RT::Authen::ExternalAuth? In-Reply-To: <1476884315.3622.25.camel@goodygoody.com> References: <1476884315.3622.25.camel@goodygoody.com> Message-ID: <85fa8644b4fab36ba98f720411112a5d@mail.greenhills-it.co.uk> Hi Malcolm, You are missing the LDAP import configuration, which is separate from the External auth config. The following will help: https://docs.bestpractical.com/rt/4.4.1/RT/LDAPImport.html Best Regards Martin On 2016-10-19 13:37, Malcolm Galland wrote: > I've set up RT, and am testing it with rt-server. ?Everything seems to > be going smoothly except LDAP with?RT::Authen::ExternalAuth. ?I read > the docs and have implemented the suggested changes in > /opt/rt4/etc/RT_SiteConfig.pm like so: > > Set( $ExternalAuthPriority, ["My_LDAP"] ); > Set( $ExternalInfoPriority, ["My_LDAP"] ); > Set($ExternalAuth, 1); > Set( $UserAutocreateDefaultsOnLogin, { Privileged => 1 } ); > Set($AutoCreateNonExternalUsers, 1); > Set($ExternalSettings, { > ? ? 'My_LDAP'???????=>??{ > ? ? ? ? 'type'?????????????=>??'ldap', > ? ? ? ? 'server'???????????=>??'ggdc1.domain.int', > ? ? ? ? 'user'?????????????=>??'LDAP_ACCOUNT', > ? ? ? ? 'pass'?????????????=>??'LDAP_ACCOUNT_PASS', > ? ? ? ? 'base'?????????????=>??'ou=Production,dc=domain,dc=int', > ? ? ? ? 'filter'???????????=>??'(objectClass=inetOrgPerson)', > ? ? ? ? 'attr_match_list'??=> [ > ? ? ? ? ? ? 'Name', > ? ? ? ? ? ? 'EmailAddress', > ? ? ? ? ], > ? ? ? ? 'attr_map' => { > ????????????????'Name'?????????=> 'sAMAccountName', > ????????????????'EmailAddress' => 'mail', > ????????????????'RealName'?????=> 'cn', > ? ? ? ? ? ? ? ? 'WorkPhone'????=> 'telephoneNumber', > ????????????????'Address1'?????=> 'streetAddress', > ????????????????'City'?????????=> 'l', > ????????????????'State'????????=> 'st', > ????????????????'Zip'??????????=> 'postalCode', > ????????????????'Country'??????=> 'co', > ? ? ? ? }, > ? ? }, > } ); > > The issue is when I try to login the users aren't allowed access, and I > get the following error from rt-server: > > [error]: FAILED LOGIN for username_redacted from IP_REDACTED > (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:826) > > Just for kicks, if I run?/opt/rt4/sbin/rt-ldapimport --debug > I get:? > ?[critical]: Expected 'PeerHost' at > /usr/local/share/perl/5.20.2/Net/LDAP.pm line 164. > (/opt/rt4/sbin/../lib/RT.pm:390) > > Any ideas? ?I read every document I could find, but it's hard to know > which non-official ones you can trust since RT has been around so long > and ExternalAuth was just added to the core. ?Also, the official docs > are a bit terse. > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From martin.wheldon at greenhills-it.co.uk Wed Oct 19 10:34:49 2016 From: martin.wheldon at greenhills-it.co.uk (Martin Wheldon) Date: Wed, 19 Oct 2016 14:34:49 +0000 Subject: [rt-users] RT 4.4.1 on Debian with RT::Authen::ExternalAuth? In-Reply-To: <1476884315.3622.25.camel@goodygoody.com> References: <1476884315.3622.25.camel@goodygoody.com> Message-ID: Hi Malcolm, Are you able to get any results from the LDAP server when you try the same search using ldapsearch from the commandline on the Debian box? Something like: ldapsearch -D LDAP_ACCOUNT -x -w -ZZ -H ldap://ggdc1.domain.int/ -b ou=Production,dc=domain,dc=int "(objectClass=inetOrgPerson)" I'm guessing your LDAP server is MS AD so you will probably need to configure TLS. The following items come from my configuration. > Set( $ExternalAuthPriority, ["My_LDAP"] ); > Set( $ExternalInfoPriority, ["My_LDAP"] ); > Set($ExternalAuth, 1); > Set( $UserAutocreateDefaultsOnLogin, { Privileged => 1 } ); > Set($AutoCreateNonExternalUsers, 1); # Use TLS Set($ExternalServiceUsesSSLorTLS,1); > Set($ExternalSettings, { > 'My_LDAP' => { > 'type' => 'ldap', > 'server' => 'ggdc1.domain.int', # Configure TLS settings 'tls' => { 'verify' => 'require', 'cafile' => '/etc/ssl/certs/CACert.pem', # Path CA file }, > 'user' => 'LDAP_ACCOUNT', > 'pass' => 'LDAP_ACCOUNT_PASS', > 'base' => 'ou=Production,dc=domain,dc=int', > 'filter' => '(objectClass=inetOrgPerson)', > 'attr_match_list' => [ > 'Name', > 'EmailAddress', > ], > 'attr_map' => { > 'Name' => 'sAMAccountName', > 'EmailAddress' => 'mail', > 'RealName' => 'cn', > 'WorkPhone' => 'telephoneNumber', > 'Address1' => 'streetAddress', > 'City' => 'l', > 'State' => 'st', > 'Zip' => 'postalCode', > 'Country' => 'co', > }, > }, > } ); Best Regards Martin On 2016-10-19 13:37, Malcolm Galland wrote: > I've set up RT, and am testing it with rt-server. ?Everything seems to > be going smoothly except LDAP with?RT::Authen::ExternalAuth. ?I read > the docs and have implemented the suggested changes in > /opt/rt4/etc/RT_SiteConfig.pm like so: > > Set( $ExternalAuthPriority, ["My_LDAP"] ); > Set( $ExternalInfoPriority, ["My_LDAP"] ); > Set($ExternalAuth, 1); > Set( $UserAutocreateDefaultsOnLogin, { Privileged => 1 } ); > Set($AutoCreateNonExternalUsers, 1); > Set($ExternalSettings, { > ? ? 'My_LDAP'???????=>??{ > ? ? ? ? 'type'?????????????=>??'ldap', > ? ? ? ? 'server'???????????=>??'ggdc1.domain.int', > ? ? ? ? 'user'?????????????=>??'LDAP_ACCOUNT', > ? ? ? ? 'pass'?????????????=>??'LDAP_ACCOUNT_PASS', > ? ? ? ? 'base'?????????????=>??'ou=Production,dc=domain,dc=int', > ? ? ? ? 'filter'???????????=>??'(objectClass=inetOrgPerson)', > ? ? ? ? 'attr_match_list'??=> [ > ? ? ? ? ? ? 'Name', > ? ? ? ? ? ? 'EmailAddress', > ? ? ? ? ], > ? ? ? ? 'attr_map' => { > ????????????????'Name'?????????=> 'sAMAccountName', > ????????????????'EmailAddress' => 'mail', > ????????????????'RealName'?????=> 'cn', > ? ? ? ? ? ? ? ? 'WorkPhone'????=> 'telephoneNumber', > ????????????????'Address1'?????=> 'streetAddress', > ????????????????'City'?????????=> 'l', > ????????????????'State'????????=> 'st', > ????????????????'Zip'??????????=> 'postalCode', > ????????????????'Country'??????=> 'co', > ? ? ? ? }, > ? ? }, > } ); > > The issue is when I try to login the users aren't allowed access, and I > get the following error from rt-server: > > [error]: FAILED LOGIN for username_redacted from IP_REDACTED > (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:826) > > Just for kicks, if I run?/opt/rt4/sbin/rt-ldapimport --debug > I get:? > ?[critical]: Expected 'PeerHost' at > /usr/local/share/perl/5.20.2/Net/LDAP.pm line 164. > (/opt/rt4/sbin/../lib/RT.pm:390) > > Any ideas? ?I read every document I could find, but it's hard to know > which non-official ones you can trust since RT has been around so long > and ExternalAuth was just added to the core. ?Also, the official docs > are a bit terse. > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From martin.wheldon at greenhills-it.co.uk Wed Oct 19 10:36:07 2016 From: martin.wheldon at greenhills-it.co.uk (Martin Wheldon) Date: Wed, 19 Oct 2016 14:36:07 +0000 Subject: [rt-users] RT 4.4.1 on Debian with RT::Authen::ExternalAuth? In-Reply-To: <1476886942.3622.29.camel@goodygoody.com> References: <1476884315.3622.25.camel@goodygoody.com> <1476886942.3622.29.camel@goodygoody.com> Message-ID: <1fcdbcdf1fd7f3dfab6cf848b324914b@mail.greenhills-it.co.uk> Hi Malcolm, The output from rt-ldapimport is normal if no changes are required, as I've just tried it here in my lab and it is working. Incidentally LDAPImport doesn't currently support TLS, I've written a patch which you are welcome to have if you would like it. I'm afraid I haven't submitted it to BP yet, but intend too when I get some time. Best Regards Martin On 2016-10-19 14:21, Malcolm Galland wrote: > Ah, yes. ?It looks like I had commented it out during testing, and > that's what was causing the PeerHost error. ?Below is the section of > SiteConfig dedicated to LDAPImport: > > Set($LDAPHost,'ggdc1.domain.int');? > ????Set($LDAPUser,'LDAP_ACCOUNT');? > ????Set($LDAPPassword,'LDAP_ACCOUNT_PASS');? > ????Set($LDAPBase, 'dc=domain,dc=int');? > ????Set($LDAPFilter, '(&(cn = users))');? > ????Set($LDAPMapping, {Name?????????=> 'uid', # required > ???????????????????????EmailAddress => 'mail',? > ???????????????????????RealName?????=> 'cn',? > ???????????????????????WorkPhone????=> 'telephoneNumber',? > ???????????????????????Organization => 'departmentName'});? > > ????# If you want to sync Groups from LDAP into RT > > ????Set($LDAPGroupBase, 'dc=domain,dc=int');? > ????Set($LDAPGroupFilter, '(&(cn = Groups))');? > ????Set($LDAPGroupMapping, {Name???????????????=> 'cn',? > ????????????????????????????Member_Attr????????=> 'member',? > ????????????????????????????Member_Attr_Value??=> 'dn' }); > > Interesting follow up question though, when I run rt-ldapimport I don't > get any errors, but the output doesn't exactly instill a feeling of > sucess either: > > /opt/rt4/sbin/rt-ldapimport --debug > Running test import, no data will be changed > Rerun command with --import to perform the import > Rerun command with --debug for more information > Testing group import > Finished test > > > On Wed, 2016-10-19 at 14:09 +0000, Martin Wheldon wrote: >> Hi Malcolm, >> >> You are missing the LDAP import configuration, which is separate >> from? >> the External auth config. >> The following will help: >> >> ???https://docs.bestpractical.com/rt/4.4.1/RT/LDAPImport.html >> >> Best Regards >> >> Martin >> >> On 2016-10-19 13:37, Malcolm Galland wrote: >> > >> > I've set up RT, and am testing it with rt-server. ?Everything seems >> > to >> > be going smoothly except LDAP with?RT::Authen::ExternalAuth. ?I >> > read >> > the docs and have implemented the suggested changes in >> > /opt/rt4/etc/RT_SiteConfig.pm like so: >> > >> > Set( $ExternalAuthPriority, ["My_LDAP"] ); >> > Set( $ExternalInfoPriority, ["My_LDAP"] ); >> > Set($ExternalAuth, 1); >> > Set( $UserAutocreateDefaultsOnLogin, { Privileged => 1 } ); >> > Set($AutoCreateNonExternalUsers, 1); >> > Set($ExternalSettings, { >> > ? ? 'My_LDAP'???????=>??{ >> > ? ? ? ? 'type'?????????????=>??'ldap', >> > ? ? ? ? 'server'???????????=>??'ggdc1.domain.int', >> > ? ? ? ? 'user'?????????????=>??'LDAP_ACCOUNT', >> > ? ? ? ? 'pass'?????????????=>??'LDAP_ACCOUNT_PASS', >> > ? ? ? ? 'base'?????????????=>??'ou=Production,dc=domain,dc=int', >> > ? ? ? ? 'filter'???????????=>??'(objectClass=inetOrgPerson)', >> > ? ? ? ? 'attr_match_list'??=> [ >> > ? ? ? ? ? ? 'Name', >> > ? ? ? ? ? ? 'EmailAddress', >> > ? ? ? ? ], >> > ? ? ? ? 'attr_map' => { >> > ????????????????'Name'?????????=> 'sAMAccountName', >> > ????????????????'EmailAddress' => 'mail', >> > ????????????????'RealName'?????=> 'cn', >> > ? ? ? ? ? ? ? ? 'WorkPhone'????=> 'telephoneNumber', >> > ????????????????'Address1'?????=> 'streetAddress', >> > ????????????????'City'?????????=> 'l', >> > ????????????????'State'????????=> 'st', >> > ????????????????'Zip'??????????=> 'postalCode', >> > ????????????????'Country'??????=> 'co', >> > ? ? ? ? }, >> > ? ? }, >> > } ); >> > >> > The issue is when I try to login the users aren't allowed access, >> > and I >> > get the following error from rt-server: >> > >> > [error]: FAILED LOGIN for username_redacted from IP_REDACTED >> > (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:826) >> > >> > Just for kicks, if I run?/opt/rt4/sbin/rt-ldapimport --debug >> > I get:? >> > ?[critical]: Expected 'PeerHost' at >> > /usr/local/share/perl/5.20.2/Net/LDAP.pm line 164. >> > (/opt/rt4/sbin/../lib/RT.pm:390) >> > >> > Any ideas? ?I read every document I could find, but it's hard to >> > know >> > which non-official ones you can trust since RT has been around so >> > long >> > and ExternalAuth was just added to the core. ?Also, the official >> > docs >> > are a bit terse. >> > --------- >> > RT 4.4 and RTIR training sessions, and a new workshop day! >> > https://bestpractical.com/training >> > * Boston - October 24-26 >> > * Los Angeles - Q1 2017 From joel.bergmark at t3.se Wed Oct 19 03:31:47 2016 From: joel.bergmark at t3.se (Joel Bergmark) Date: Wed, 19 Oct 2016 07:31:47 +0000 Subject: [rt-users] rt-crontool on condition x change queue In-Reply-To: References: Message-ID: Hello, Indeed you are right, and I found a guy named Andy Smith in the UK that solved the problem, I've attached his solution to the email (not sure if attachments works). Put it in rt4/lib/RT/Action/QChange.pm and then call it with relevant query with: --action RT::Action::QChange --action-arg YOURQUEUE --template 'blank' Works like a charm, I use it in this way for SLA purposes to escalate a TT that passes over the defined ServiceAgreement: rt-crontool --transaction last --search RT::Search::FromSQL --search-arg "Queue = 'SLA' AND (Status='new' OR Status='open')" --condition RT::Condition::Overdue --action RT::Action::QChange --action-arg QUEUE --template 'SLA-escalation' Regards, Joel Fr?n: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] F?r Emmanuel Lacour Skickat: den 18 oktober 2016 16:01 Till: rt-users at lists.bestpractical.com ?mne: Re: [rt-users] rt-crontool on condition x change queue Le 18/10/2016 ? 11:03, Joel Bergmark a ?crit : Hi, Just a quick one this time, is there any easy way to use rt crontool get something like this working: /opt/rt4/bin/rt-crontool --search RT::Search::FromSQL --search-arg "Queue = 'X' AND (Status='new' OR Status='open')" --condition RT::Condition::Overdue --action RT::Queue "Newqueue" I know its not really under rt::action but is there a way to call upon rt::queue from this? Tried a bunch of different syntax but get "RT::Queue::Prepare Unimplemented in main." there is no stock SetQueue RT action, you have to write it yourself. Just put the following content (untested) in rt/local/lib/RT/Action/SetQueue.pm and call it like this: /opt/rt4/bin/rt-crontool --search RT::Search::FromSQL --search-arg "Queue = 'X' AND (Status='new' OR Status='open')" --condition RT::Condition::Overdue --action SetQueue --action-arg "Newqueue" ------------------------------------ cut ------------------------------------ package RT::Action::SetQueue; use base 'RT::Action'; use strict; use warnings; sub Describe { my $self = shift; return (ref $self . " will set a ticket's queue to the argument provided."); } sub Prepare { return 1; } sub Commit { my $self = shift; $self->TicketObj->SetQueue($self->Argument); } 1; ------------------------------------ cut ------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: QChange.pm Type: application/octet-stream Size: 2795 bytes Desc: QChange.pm URL: From ram0502 at gmail.com Wed Oct 19 12:28:39 2016 From: ram0502 at gmail.com (Ram) Date: Wed, 19 Oct 2016 09:28:39 -0700 Subject: [rt-users] Deleting one attachment Message-ID: Hi all, A user at work added an attachment that violates corporate policy to a ticket; the ticket itself is valid and must be kept. I need to delete the attachment. A quick look at the rt-shredder tool does not make it apparent to me how to do this with rt-shredder. I can readily do it editing the db in mysql but I'd rather use rt-shredder if it will do the job. any help? thanks Ram -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Wed Oct 19 12:39:04 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Wed, 19 Oct 2016 11:39:04 -0500 Subject: [rt-users] Deleting one attachment In-Reply-To: References: Message-ID: On Wed, Oct 19, 2016 at 11:28 AM, Ram wrote: > Hi all, > A user at work added an attachment that violates corporate policy to a > ticket; the ticket itself is valid and must be kept. I need to delete the > attachment. A quick look at the rt-shredder tool does not make it apparent > to me how to do this with rt-shredder. I can readily do it editing the db in > mysql but I'd rather use rt-shredder if it will do the job. > any help? Running 4.2.12 here... # /opt/rt4/sbin/rt-shredder --plugin list Plugins list: Objects SQLDump Summary Tickets Attachments Users So it looks like it can shred attachments. /opt/rt4/sbin/rt-shredder --plugin help-Attachments USAGE masks If any argument is marked with keyword `mask' then it means that this argument support two special characters: 1) `*' matches any non empty sequence of the characters. For example `*@example.com' will match any email address in `example.com' domain. 2) `?' matches exactly one character. For example `????' will match any string four characters long. NAME RT::Shredder::Plugin::Attachments - search plugin for wiping attachments. ARGUMENTS files_only - boolean value Search only file attachments. file - mask Search files with specific file name only. Example: '*.xl?' or '*.gif' longer - attachment content size Search attachments which content is longer than specified. You can use trailing 'K' or 'M' character to specify size in kilobytes or megabytes. Then perhaps something like: /opt/rt4/sbin/rt-shredder --plugin Attachments=files_only,1;file,some_secret_document.pdf I didn't try the above and I would _for sure_ try it on a test system first - at least a test ticket with a test attachment. -m From ram0502 at gmail.com Wed Oct 19 12:55:27 2016 From: ram0502 at gmail.com (Ram) Date: Wed, 19 Oct 2016 09:55:27 -0700 Subject: [rt-users] Deleting one attachment In-Reply-To: References: Message-ID: Inline... On Wed, Oct 19, 2016 at 9:39 AM, Matt Zagrabelny wrote: > On Wed, Oct 19, 2016 at 11:28 AM, Ram wrote: > > Hi all, > > A user at work added an attachment that violates corporate policy to a > > ticket; the ticket itself is valid and must be kept. I need to delete the > > attachment. A quick look at the rt-shredder tool does not make it > apparent > > to me how to do this with rt-shredder. I can readily do it editing the > db in > > mysql but I'd rather use rt-shredder if it will do the job. > > any help? > > Then perhaps something like: > > /opt/rt4/sbin/rt-shredder --plugin > Attachments=files_only,1;file,some_secret_document.pdf > > > Thanks Matt. I did look at that - the problem is that DOC009.pdf is far from unique in our system. What I really need is to specify the ticket id, attachment id , or both. specifying a minimum size *might* work - I'd have to check and see if that's the only DOC009.pdf over 75kb but I wouldn't be surprised if there are others. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronald.yacketta at gmail.com Thu Oct 20 16:16:04 2016 From: ronald.yacketta at gmail.com (Ron Yacketta) Date: Thu, 20 Oct 2016 13:16:04 -0700 Subject: [rt-users] Get and Set per User CustomFields Message-ID: Hello all! Currently looking at setting a isVP custom field for our RT users, this custom field will be used to prepend [VP] to ticket subject onCreate. We are using RT 4.0.4, currently familiar with getting/setting Ticket Customfields via Scrip and external Script, but not sure how User custom fields are handled. Will be running through all users and setting the customfield as required, also looking to add it as part of User creation. Regards, Ron Yacketta -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaniadimitris at yahoo.gr Fri Oct 21 04:08:59 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Fri, 21 Oct 2016 08:08:59 +0000 (UTC) Subject: [rt-users] How to rename column name References: <112552960.128884.1477037339882.ref@mail.yahoo.com> Message-ID: <112552960.128884.1477037339882@mail.yahoo.com> Hello everyone, I would like to rename one of the variables used in the Assets of RT. In particular, I want to rename the "Contacts" to another name i.e., "Responsible". I can only think of using ---> '__Contacts__/TITLE:Responsible' However, this causes problems to the language translation, which then cannot understand the "Responsible" in order to translate it. Can you think of any other way to rename the name which appears in user interface? What will break if I change that variable name? p.s. RT 4.4.1rc1 is installed. Thank you, Dimitris From steve at sbsroc.com Fri Oct 21 13:40:32 2016 From: steve at sbsroc.com (Stephen Switzer) Date: Fri, 21 Oct 2016 13:40:32 -0400 Subject: [rt-users] RT 4.4.1 w/ RTIR - AlreadyResolved template Message-ID: <88262cbc-6c61-a324-a68a-94c555aedb33@sbsroc.com> Hello! I have an RT installation and just found a template that I don't remember adding, "AlreadyResolved", which reads: Greetings, This message has been automatically generated in response to your email. This ticket has previously been marked as resolved and is being left in this state. If you feel that your issue is not resolved to your satisfaction, please reply with the following in the subject line: {$Ticket->SubjectTag} Re-Open NOTE: "Re-Open" and "{$Ticket->SubjectTag()}" are both very important. Please be sure to check the spelling and spacing, etc. This sounds EXACTLY like what I want. Does anyone know the source of this, or how to implement? Thank you! -- Best regards, Steve Stephen H. Switzer President & Chief Technical Consultant steve at SBSroc.com *Main:* *Cell:* +1 (585) 298-9420 *Ext:* 7001 +1 (585) 202-8312 Support Desk: support at sbsroc.com *Fax:* +1 (585) 625-0020 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. We do not enter into legally binding agreements via email. The ASCII Group Xorcom Certified Dealer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SBS ROC Logo Type: image/png Size: 4525 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fgkejkdmigadadkd.png Type: image/png Size: 396 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fakphappljkmglmk.png Type: image/png Size: 448 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ifnkkblndchkggil.png Type: image/png Size: 558 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: kbhijhoefkpblkpo.png Type: image/png Size: 596 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bgifnmdmkndfpcjj.png Type: image/png Size: 521 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jgohdpcifipnkjog.png Type: image/png Size: 492 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bhkloocjmkkdomla.png Type: image/png Size: 550 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ebhcpedmefihlkao.png Type: image/png Size: 569 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: njhfokbkknoipdog.png Type: image/png Size: 7205 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ejellaimanbcaagf.png Type: image/png Size: 5055 bytes Desc: not available URL: From reza.toronto at gmail.com Mon Oct 24 04:49:39 2016 From: reza.toronto at gmail.com (Reza) Date: Mon, 24 Oct 2016 04:49:39 -0400 Subject: [rt-users] Greetings from a New RT user in Toronto. Message-ID: 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. From ahall at autodist.com Mon Oct 24 08:09:38 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 24 Oct 2016 08:09:38 -0400 Subject: [rt-users] Identifying database credentials in use during upgrade? Message-ID: Hello list, As I mentioned, the upgrade on my test server from 4.2.8 to 4.4.1 went well. On the production server, though, it's not; the upgrade-database script is failing when it tries to connect to the database. I've been in MySQL messing around with user permissions, trying to get things to work, but to no avail. How can I know exactly what username/password the script is using? It says in the error that the user is 'rt_user', yet in /opt/rt4/RT_Config.pm the configuration comment says it should be 'rtuser' (note the lack of an underscore). It may be important to say that this line remains unchanged no matter how often I re-run ./configure with new options. On a related note, I have no idea what password is in use since it won't take my configuration command. I'm not sure what to try next. Do I erase RT_Config.pm and re-run ./configure? Is there a different way to "start over"? I've already run 'make upgrade' and am now trying to upgrade my database. As directed, though, I'm operating on a duplicate of my 4.2.8 database, not the original. Thus I should be able to return functionality to 4.2.8 for the work day today so people can use it with no problem. I was trying this over the weekend and early this morning, figuring it wouldn't be hard after my test went so well. Thanks in advance for any ideas anyone has. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Mon Oct 24 08:16:42 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Mon, 24 Oct 2016 07:16:42 -0500 Subject: [rt-users] [phish?] Re: Identifying database credentials in use during upgrade? In-Reply-To: References: Message-ID: On Mon, Oct 24, 2016 at 7:09 AM, Alex Hall wrote: > Hello list, > As I mentioned, the upgrade on my test server from 4.2.8 to 4.4.1 went well. > On the production server, though, it's not; the upgrade-database script is > failing when it tries to connect to the database. I've been in MySQL messing > around with user permissions, trying to get things to work, but to no avail. > > How can I know exactly what username/password the script is using? It says > in the error that the user is 'rt_user', yet in /opt/rt4/RT_Config.pm the > configuration comment says it should be 'rtuser' (note the lack of an > underscore). Okay. It may be important to say that this line remains unchanged no > matter how often I re-run ./configure with new options. On a related note, I > have no idea what password is in use since it won't take my configuration > command. Your password should be in either RT_SiteConfig.pm or in a config snippet in RT_SiteConfig.d/. > I'm not sure what to try next. Do I erase RT_Config.pm and re-run > ./configure? Perhaps. RT_Config.pm has all the *default* values shipped from upstream. RT_Config.pm should never be edited by the administrator (you.) There is RT_SiteConfig.pm and RT_SiteConfig.d for the admin to override defaults. -m From ahall at autodist.com Mon Oct 24 08:49:25 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 24 Oct 2016 08:49:25 -0400 Subject: [rt-users] [phish?] Re: Identifying database credentials in use during upgrade? In-Reply-To: References: Message-ID: Oh, so the same rules apply for configuration as normal. Good, I thought an upgrade was a different case. The database upgraded successfully, but now I'm having a similar problem. When I spawn the FCGI server, it exits immediately, because 'rt_user' can't log into MySQL. The problem is that /opt/rt4/RT_SiteConfig.d/ 51-dbconfig-common.pm' lists the user as 'rtuser', not 'rt_user'. I'm again in the position of not knowing where the username and password are coming from. You've said before that simply starting RT is enough to get the config files to be used, but I've restarted both the FCGI server and Nginx and that username won't change. I have a user in the database called rt_user as well, but again, I don't know what password RT is trying to use. I've looked in SiteConfig.pm, but no DB credentials are defined there. On Mon, Oct 24, 2016 at 8:16 AM, Matt Zagrabelny wrote: > On Mon, Oct 24, 2016 at 7:09 AM, Alex Hall wrote: > > Hello list, > > As I mentioned, the upgrade on my test server from 4.2.8 to 4.4.1 went > well. > > On the production server, though, it's not; the upgrade-database script > is > > failing when it tries to connect to the database. I've been in MySQL > messing > > around with user permissions, trying to get things to work, but to no > avail. > > > > How can I know exactly what username/password the script is using? It > says > > in the error that the user is 'rt_user', yet in /opt/rt4/RT_Config.pm the > > configuration comment says it should be 'rtuser' (note the lack of an > > underscore). > > Okay. > > It may be important to say that this line remains unchanged no > > matter how often I re-run ./configure with new options. On a related > note, I > > have no idea what password is in use since it won't take my configuration > > command. > > Your password should be in either RT_SiteConfig.pm or in a config > snippet in RT_SiteConfig.d/. > > > I'm not sure what to try next. Do I erase RT_Config.pm and re-run > > ./configure? > > Perhaps. > > RT_Config.pm has all the *default* values shipped from upstream. > > RT_Config.pm should never be edited by the administrator (you.) > > There is RT_SiteConfig.pm and RT_SiteConfig.d for the admin to > override defaults. > > -m > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 24 09:26:23 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 24 Oct 2016 09:26:23 -0400 Subject: [rt-users] [phish?] Re: Identifying database credentials in use during upgrade? In-Reply-To: References: Message-ID: I've confirmed that my RT_SiteConfig.d directory doesn't seem to be working. As soon as I added my database credentials to RT_SiteConfig.pm, everything worked. The problem is that I have a lot of settings in the .d directory that I'd really rather no add to the main file. Is there a trick to getting the files in the .d directory recognized? In 4.2.8 on Debian, they didn't need .pm extensions, but I've added those. I've restarted FCGI and Nginx multiple times. Have I missed anything? On Mon, Oct 24, 2016 at 8:49 AM, Alex Hall wrote: > Oh, so the same rules apply for configuration as normal. Good, I thought > an upgrade was a different case. > > The database upgraded successfully, but now I'm having a similar problem. > When I spawn the FCGI server, it exits immediately, because 'rt_user' can't > log into MySQL. The problem is that /opt/rt4/RT_SiteConfig.d/51- > dbconfig-common.pm' lists the user as 'rtuser', not 'rt_user'. I'm again > in the position of not knowing where the username and password are coming > from. You've said before that simply starting RT is enough to get the > config files to be used, but I've restarted both the FCGI server and Nginx > and that username won't change. I have a user in the database called > rt_user as well, but again, I don't know what password RT is trying to use. > I've looked in SiteConfig.pm, but no DB credentials are defined there. > > On Mon, Oct 24, 2016 at 8:16 AM, Matt Zagrabelny > wrote: > >> On Mon, Oct 24, 2016 at 7:09 AM, Alex Hall wrote: >> > Hello list, >> > As I mentioned, the upgrade on my test server from 4.2.8 to 4.4.1 went >> well. >> > On the production server, though, it's not; the upgrade-database script >> is >> > failing when it tries to connect to the database. I've been in MySQL >> messing >> > around with user permissions, trying to get things to work, but to no >> avail. >> > >> > How can I know exactly what username/password the script is using? It >> says >> > in the error that the user is 'rt_user', yet in /opt/rt4/RT_Config.pm >> the >> > configuration comment says it should be 'rtuser' (note the lack of an >> > underscore). >> >> Okay. >> >> It may be important to say that this line remains unchanged no >> > matter how often I re-run ./configure with new options. On a related >> note, I >> > have no idea what password is in use since it won't take my >> configuration >> > command. >> >> Your password should be in either RT_SiteConfig.pm or in a config >> snippet in RT_SiteConfig.d/. >> >> > I'm not sure what to try next. Do I erase RT_Config.pm and re-run >> > ./configure? >> >> Perhaps. >> >> RT_Config.pm has all the *default* values shipped from upstream. >> >> RT_Config.pm should never be edited by the administrator (you.) >> >> There is RT_SiteConfig.pm and RT_SiteConfig.d for the admin to >> override defaults. >> >> -m >> > > > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 24 10:46:02 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 24 Oct 2016 10:46:02 -0400 Subject: [rt-users] RT4.4.1 ignoring two of four files in RT_SiteConfig.d Message-ID: All, I'm more confused the more I look at my configuration files problem. According to my system configuration page, RT is loading four files: RT_Config.pm, RT_SiteConfig.pm, RT_SiteConfig.d/01-timezone.pm, and RT_SiteConfig.d/04-logging.pm. It is simply ignoring 02-debconf.pm and 03-dbconfig-common.pm, which are the most vital of the four. I've run perl -c on all four files, and all of them come back with no errors. What might cause RT to skip two files like this? If the files are invalid somehow, where would I find that out? /var/log/messages is reporting only the expected warning about my WebDomain being incorrect, but nothing about any files failing to load or invalid directives anywhere. I now know the source of my problem, but have no idea how I might fix it. Has anyone ever seen this before? -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 24 12:57:21 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 24 Oct 2016 12:57:21 -0400 Subject: [rt-users] RT4.4.1 ignoring two of four files in RT_SiteConfig.d In-Reply-To: References: Message-ID: I've worked around the problem by copying the dbconfig file's text into a new file, and breaking debconf's contents into three different files. I have no idea what was wrong with the two files that didn't work, but the new ones seem to be doing fine. Very strange! I'd still like to know if anyone has ever seen this, so I know what to avoid in the future, but at least the system is operating normally again. On Mon, Oct 24, 2016 at 10:46 AM, Alex Hall wrote: > All, > I'm more confused the more I look at my configuration files problem. > According to my system configuration page, RT is loading four files: > RT_Config.pm, RT_SiteConfig.pm, RT_SiteConfig.d/01-timezone.pm, and > RT_SiteConfig.d/04-logging.pm. It is simply ignoring 02-debconf.pm and > 03-dbconfig-common.pm, which are the most vital of the four. I've run > perl -c on all four files, and all of them come back with no errors. What > might cause RT to skip two files like this? If the files are invalid > somehow, where would I find that out? /var/log/messages is reporting only > the expected warning about my WebDomain being incorrect, but nothing about > any files failing to load or invalid directives anywhere. I now know the > source of my problem, but have no idea how I might fix it. Has anyone ever > seen this before? > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffrey.pilant at bayer.com Mon Oct 24 13:53:36 2016 From: jeffrey.pilant at bayer.com (Jeffrey Pilant) Date: Mon, 24 Oct 2016 17:53:36 +0000 Subject: [rt-users] RT4.4.1 ignoring two of four files in RT_SiteConfig.d Message-ID: You write: >I'm more confused the more I look at my configuration files problem. >According to my system configuration page, RT is loading four files: >RT_Config.pm, RT_SiteConfig.pm, RT_SiteConfig.d/01-timezone.pm, and >RT_SiteConfig.d/04-logging.pm. It is simply ignoring 02-debconf.pm and >03-dbconfig-common.pm, which are the most vital of the four. I've run perl >-c on all four files, and all of them come back with no errors. What might >cause RT to skip two files like this? If the files are invalid somehow, >where would I find that out? /var/log/messages is reporting only the >expected warning about my WebDomain being incorrect, but nothing about any >files failing to load or invalid directives anywhere. I now know the source >of my problem, but have no idea how I might fix it. Has anyone ever seen >this before? Wild shot in the dark: Check owner, group, and r/w permissions. Do all four files have the same values? If this fixes things, post to the list the fix so others can benefit. /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. ________________________________________________________________________ From ahall at autodist.com Mon Oct 24 14:04:35 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 24 Oct 2016 14:04:35 -0400 Subject: [rt-users] RT4.4.1 ignoring two of four files in RT_SiteConfig.d In-Reply-To: References: Message-ID: Great call! Looks like one of the files that didn't work has 600, while one that did is 644. My www-data user must need to read these files, and it couldn't do that. I'm not sure how 600 got set, but this must be the problem. Thanks. On Mon, Oct 24, 2016 at 1:53 PM, Jeffrey Pilant wrote: > You write: > >I'm more confused the more I look at my configuration files problem. > >According to my system configuration page, RT is loading four files: > >RT_Config.pm, RT_SiteConfig.pm, RT_SiteConfig.d/01-timezone.pm, and > >RT_SiteConfig.d/04-logging.pm. It is simply ignoring 02-debconf.pm and > >03-dbconfig-common.pm, which are the most vital of the four. I've run > perl > >-c on all four files, and all of them come back with no errors. What might > >cause RT to skip two files like this? If the files are invalid somehow, > >where would I find that out? /var/log/messages is reporting only the > >expected warning about my WebDomain being incorrect, but nothing about any > >files failing to load or invalid directives anywhere. I now know the > source > >of my problem, but have no idea how I might fix it. Has anyone ever seen > >this before? > > Wild shot in the dark: > Check owner, group, and r/w permissions. > Do all four files have the same values? > > If this fixes things, post to the list the fix so others can benefit. > > /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 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisis at bosberaad.com Mon Oct 24 17:08:50 2016 From: chrisis at bosberaad.com (Chris McClement) Date: Mon, 24 Oct 2016 21:08:50 +0000 Subject: [rt-users] Greetings from a New RT user in Toronto. In-Reply-To: References: Message-ID: 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 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 24 17:16:16 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 24 Oct 2016 17:16:16 -0400 Subject: [rt-users] Greetings from a New RT user in Toronto. In-Reply-To: References: Message-ID: Customizing email notifications as in #3 is done through the templates. As root, or a super user, go to Admin > Templates > Select. There you'll find a table with all the templates the system uses. Admin > Scripts is where you can see which templates go to which events. The wiki ( rt-wiki.bestpractical.com) has a couple helpful pages on templates, such as https://rt-wiki.bestpractical.com/wiki/TemplateSnippets You grant users the right to transfer, own, take, and steal tickets. RT likes you to use groups rather than granting rights on a user-by-user basis. For instance, our system has five queues, and each queue has a queue_staff and queue_users group. In the staff group for each queue, we grant the rights I mentioned. This way, simply adding a user to the staff group in their queue is enough to give them all the rights they need. As you may have found, rights are integral to not just what users can do with tickets, but to which tickets and queues they can view at all. Getting to know the rights system will help a lot. On Mon, Oct 24, 2016 at 5:08 PM, Chris McClement wrote: > 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 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 > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram0502 at gmail.com Mon Oct 24 19:45:22 2016 From: ram0502 at gmail.com (Ram) Date: Mon, 24 Oct 2016 16:45:22 -0700 Subject: [rt-users] Deleting one attachment In-Reply-To: References: Message-ID: Inline.. > A user at work added an attachment that violates corporate policy to a > ticket; the ticket itself is valid and must be kept. I need to delete the > attachment. A quick look at the rt-shredder tool does not make it apparent > to me how to do this with rt-shredder. I can readily do it editing the db in > mysql but I'd rather use rt-shredder if it will do the job. > any help? I'll be going with a direct DB edit which I'm documenting here for the next person. Since I just want to suppress the file and do not want to hide the fact that it existed. Here is what I did, be very careful! If you don't know SQL or you don't understand every step below then find someone else to help you - this is the WRONG PATH for you: 1 Get the attachment id of the attachment to remove (as of RT 4.4.1 it's the *second* number in the URL that displays the attachment). 2 Add a comment to the ticket indicating that you are deleting the offending attachment for policy violation (or whatever you motive). 3 Run this command to improve your odds of not messing up and deleting the wrong transaction: > select id, Transactionid, MessageId, Subject, Filename, ContentType, ContentEncoding, Headers, Creator, Created from Attachments where id= ATTACHMENT_ID_FROM_STEP_1 \G 4 If that looks right to you then run this SQL against A TEST COPY OF YOUR DB to ensure you are killing the right attachment > update Attachments set Content = NULL where id = ATTACHMENT_ID_FROM_STEP_1 limit 1; 5 Go look at the ticket in RT and ensure that you did indeed eliminate the offending attachment. 6 Repeat steps 3,4,5 in your production environment. 7 Do not call me if you shot yourself in the foot. No warranty expressed or implied! If this isn't perfectly clear, hire Best Practical ( https://bestpractical.com/) to do it for you. cheers, Ram -------------- next part -------------- An HTML attachment was scrubbed... URL: From reza.toronto at gmail.com Mon Oct 24 22:58:25 2016 From: reza.toronto at gmail.com (Reza) Date: Mon, 24 Oct 2016 22:58:25 -0400 Subject: [rt-users] Greetings from a New RT user in Toronto. In-Reply-To: References: Message-ID: Chris, Alex, Gentlemen: Thank you for your generosity. Let me learn a little bit more and it will give me the confidence to ask stupid questions. :) Anyone in here would like to engage in a conference call type group study / chat, please let me know. I have a VoIP server to which all of us could connect to easily. Thank you! Reza. Alex Hall wrote on 10/24/2016 5:16 PM: > Customizing email notifications as in #3 is done through the > templates. As root, or a super user, go to Admin > Templates > Select. > There you'll find a table with all the templates the system uses. > Admin > Scripts is where you can see which templates go to which > events. The wiki (rt-wiki.bestpractical.com > ) has a couple helpful pages on > templates, such as > https://rt-wiki.bestpractical.com/wiki/TemplateSnippets > > You grant users the right to transfer, own, take, and steal tickets. > RT likes you to use groups rather than granting rights on a > user-by-user basis. For instance, our system has five queues, and each > queue has a queue_staff and queue_users group. In the staff group for > each queue, we grant the rights I mentioned. This way, simply adding a > user to the staff group in their queue is enough to give them all the > rights they need. > > As you may have found, rights are integral to not just what users can > do with tickets, but to which tickets and queues they can view at all. > Getting to know the rights system will help a lot. > > On Mon, Oct 24, 2016 at 5:08 PM, Chris McClement > > wrote: > > 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 > 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 > > > > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From reza.toronto at gmail.com Tue Oct 25 02:17:52 2016 From: reza.toronto at gmail.com (Reza) Date: Tue, 25 Oct 2016 02:17:52 -0400 Subject: [rt-users] Greetings from a New RT user in Toronto. In-Reply-To: References: Message-ID: <575baf21-7d3e-be75-8564-0aaf7acbf7ae@gmail.com> Many thanks to my first 3 teachers, Kenneth Crocker, Alex Hall and Chris McClement, for guiding me to the right direction. Ken, many thanks for your generosity for passing me a copy of your book "Request Tracker for Beginners - A Topical Guide" ( also available on Amazon if those of you newbie seeking knowledge ) Many thanks to the authors of "RT Essentials" published by O'Reilly. This is also a good start for the fundamental basics for RT. The last 24-48 hrs has been an amazing learning experience. I feel as-if I can do Kung Fu now :) From my recent agenda of: 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. 6. How to Customize the RT at a glance (Just added to my list for Oct 25, 2016) I have learned points #2, #3, #4. Can anyone here guide me to the proper direction to accomplish #1 (Generating random ticket number versus ascending ticket numbers), and guide me towards a fundamentally basic API example for 3rd Party CRM integration? The new things I've learned: 1. Creating Queues 2. Creating Memberships 3. Understanding Group Permissions 4. Taking ownership of a ticket 5. Assigning tickets to someone else 6. Basic Ticket operations (Open, Close, Delete, Forward, Stealing etc) I'm learning that RT is not only for managing Support Tickets, but it can also be used to followup on Sales leads etc (in the same manner as a support ticket is handled), but I have yet to understand how it can be used in Project Management. A combination of active / hands on learning is needed here, in parallel to passive learning. That's the hardest part because I'm not a very good passive learner (learning through reading). I'm anticipating my status updates on this learning curve will serve as an agenda for the new folks adapting RT. In the mean time, I will be reading Ken's "Request Tracker for Beginners" guide till I pass out. Thanks for welcoming me to the community. Cheers! Reza. > On Mon, 24 Oct 2016 at 21:50 Reza > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From maik.nergert at uni-hamburg.de Tue Oct 25 03:06:36 2016 From: maik.nergert at uni-hamburg.de (Maik Nergert) Date: Tue, 25 Oct 2016 09:06:36 +0200 Subject: [rt-users] Delivery Status Notification Message-ID: Hi @all, is there a simple way to proof, that a message and the attachment was delivered to the recipient? It would be much better if the recipient has to confirm, that the message arrived and he has read it. best Maik -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5486 bytes Desc: S/MIME Cryptographic Signature URL: From phanousk at civ.zcu.cz Tue Oct 25 08:27:02 2016 From: phanousk at civ.zcu.cz (Petr Hanousek) Date: Tue, 25 Oct 2016 14:27:02 +0200 Subject: [rt-users] Slow quote folding In-Reply-To: <574EA52A.3020206@civ.zcu.cz> References: <574EA52A.3020206@civ.zcu.cz> Message-ID: <68c1bb88-bcbd-70a5-3f34-8018bea9debb@civ.zcu.cz> Hi, we have migrated to another server with newer Debian and this issue suddenly dissapeared. So I wanted just let you know. Thanks to Jeffrey Pilant for interest and morale support :) Petr On 1.6.2016 11:04, Petr Hanousek wrote: > Dear all, > we have here some users who have such a habit to keep all the > conversation history in e-mails. Some of them have also stupid mail > clients which doubles the number of spaces. This results in looong mails > and therefore long ticket history. So some individuals use, for better > information overview, quote folding. > This works quite well, but when the stuff that is to be quoted in ticket > is too long (or too many of them?), the quoting procedure takes very > long time. I've got here a ticket with 24 replies, each with the full > mail history, and showing the ticket with folding turned on takes about > 8 minutes. The ticket history during that time shows only "Loading..." > notice. > > When I searched in the code to see how this folding is done, it gave me > an impression that it uses some general method which affects the whole > RT. So I am little bit scare to give it some tuning :) Could you someone > please either to confirm a bug, or (if it is a feature) explain me the > mechanism how this should work and what to tune/rewrite? > > Thank you, Petr > -- +-------------------------------------------------------------------+ Petr Hanousek e-mail: petr.hanousek at cesnet.cz MetaCentrum User Support phone: +420 950 072 112 CESNET z.s.p.o. mobile: +420 606 665 139 location: Zikova 13a, Praha room: 32b Czech Republic +-------------------------------------------------------------------+ From chaniadimitris at yahoo.gr Tue Oct 25 09:07:14 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Tue, 25 Oct 2016 13:07:14 +0000 (UTC) Subject: [rt-users] How to AllowSorting in AssetList in SelfService References: <844621639.400824.1477400834528.ref@mail.yahoo.com> Message-ID: <844621639.400824.1477400834528@mail.yahoo.com> Hello everybody, I need your help on the following, please. I would like to allow sorting of the Asset List in the SelfService. I create a copy (Customization with local dir) of the relevant file /opt/rt4/share/html/User/Elements/AssetList in the local dir: /opt/rt4/local/html/User/Elements/AssetList There, I change the "AllowSorting" value to "1". Then, the user can actually click on the column header to sort each column. However, the generated url appears not to be working! For example, the generated url when trying to sort based on the "Name" is: https://................/SelfService/Asset/index.html?Format=%0A%20%20%20%20%27%3Cb%3E%3Ca%20href%3D%22__WebHomePath__%2FAsset%2FDisplay.html%3Fid%3D__id__%22%3E__id__%3C%2Fa%3E%3C%2Fb%3E%2FTITLE%3A%23%27%2C%0A%20%20%20%20%27%3Cb%3E%3Ca%20href%3D%22__WebHomePath__%2FAsset%2FDisplay.html%3Fid%3D__id__%22%3E__Name__%3C%2Fa%3E%3C%2Fb%3E%2FTITLE%3AName%27%2C%0A%20%20%20%20Description%2C%0A&Order=ASC&OrderBy=Name&Page=1 As you may see the url contains the $Format! I cannot find a way to get rid of it. Any ideas? Thanks in advance! Dimitris From chaniadimitris at yahoo.gr Tue Oct 25 09:40:50 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Tue, 25 Oct 2016 13:40:50 +0000 (UTC) Subject: [rt-users] Rename Owner Role only for Assets References: <480774974.436158.1477402850961.ref@mail.yahoo.com> Message-ID: <480774974.436158.1477402850961@mail.yahoo.com> Hello! I would like to ask if I can rename the word "Owner" in RT. I modified the file en.po and indeed the word changed. However, it changed BOTH for the TICKET Owner and the ASSET Owner. I cannot find a way to change ONLY the ASSET Owner, although I specified it as following: #: lib/RT/Asset.pm:86 msgid "Owner" msgstr "Renamed Owner" Any help, please? Thanks in advance! Dimitris From jeffrey.pilant at bayer.com Tue Oct 25 10:03:14 2016 From: jeffrey.pilant at bayer.com (Jeffrey Pilant) Date: Tue, 25 Oct 2016 14:03:14 +0000 Subject: [rt-users] Delivery Status Notification Message-ID: <3296ff6921e543508caf99be5420d476@MOXDEA.na.bayer.cnb> Maik Nergert writes: >is there a simple way to proof, that a message and the attachment was >delivered to the recipient? >It would be much better if the recipient has to confirm, that the >message arrived and he has read it. SMTP, by definition cannot do this. It cannot even guarantee delivery. That said, there are specific implementations of email clients that can acknowledge delivery, and even being opened. However, that is very client dependent, and you cannot count on what client will be used to read the email. Again, that said, if you can enforce the client chosen (like at work having a company mandate), then you might be able to include control tags in the email header produced that will cause that client to perform that feature. /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. ________________________________________________________________________ From jeffrey.pilant at bayer.com Tue Oct 25 10:12:14 2016 From: jeffrey.pilant at bayer.com (Jeffrey Pilant) Date: Tue, 25 Oct 2016 14:12:14 +0000 Subject: [rt-users] Greetings from a New RT user in Toronto. Message-ID: Reza writes: >The last 24-48 hrs has been an amazing learning experience. I feel >as-if I can do Kung Fu now :) > > From my recent agenda of: > > 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. > 6. How to Customize the RT at a glance (Just added to my list for Oct > 25, 2016) > >I have learned points #2, #3, #4. > >Can anyone here guide me to the proper direction to accomplish #1 >(Generating random ticket number versus ascending ticket numbers), and >guide me towards a fundamentally basic API example for 3rd Party CRM >integration? In order to generate a random ticket ID, you need a random number generator, a min and max ID number allowed, and a way to determine if any given ID has already been used. You then need to replace the standard SQL that gets the current max ID and adds one to assign a new ID. I don't know where that code is. As you fill the IDs, generating a new ID becomes harder and harder, because you will hit duplicate entries in the random generating process. You also loose the relation of ID#s to date order. Sorting a list of IDs by ID number will randomize the time that the IDs occur, requiring reports to be modified to be sorted by some other key. Basically, you need a very strong reason to break the defaults the program uses, because there is a lot of work needed to rewrite the many things that use the defaults, and the time spent verifying that you found all the bits that need to be changed. What is your use case? /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. ________________________________________________________________________ From thomas.oddsund at usit.uio.no Tue Oct 25 10:31:52 2016 From: thomas.oddsund at usit.uio.no (Thomas Oddsund) Date: Tue, 25 Oct 2016 14:31:52 +0000 Subject: [rt-users] Deleting one attachment In-Reply-To: References: , Message-ID: <1477405912283.25262@usit.uio.no> ?Hello, Sorry for not seeing this sooner, but I'll leave this for people wondering about the same in the future. We have sucessfully deleted single attachments from a ticket using rt-shredder. Issue the command like this; rt-shredder --plugin 'Objects=Attachment,?' We use RT 4.2.8. Med vennlig hilsen, Thomas Oddsund SDS/USIT ________________________________ Fra: rt-users p? vegne av Ram Sendt: 25. oktober 2016 01:45 Til: rt-users Emne: Re: [rt-users] Deleting one attachment Inline.. > A user at work added an attachment that violates corporate policy to a > ticket; the ticket itself is valid and must be kept. I need to delete the > attachment. A quick look at the rt-shredder tool does not make it apparent > to me how to do this with rt-shredder. I can readily do it editing the db in > mysql but I'd rather use rt-shredder if it will do the job. > any help? I'll be going with a direct DB edit which I'm documenting here for the next person. Since I just want to suppress the file and do not want to hide the fact that it existed. Here is what I did, be very careful! If you don't know SQL or you don't understand every step below then find someone else to help you - this is the WRONG PATH for you: 1 Get the attachment id of the attachment to remove (as of RT 4.4.1 it's the *second* number in the URL that displays the attachment). 2 Add a comment to the ticket indicating that you are deleting the offending attachment for policy violation (or whatever you motive). 3 Run this command to improve your odds of not messing up and deleting the wrong transaction: > select id, Transactionid, MessageId, Subject, Filename, ContentType, ContentEncoding, Headers, Creator, Created from Attachments where id= ATTACHMENT_ID_FROM_STEP_1 \G 4 If that looks right to you then run this SQL against A TEST COPY OF YOUR DB to ensure you are killing the right attachment > update Attachments set Content = NULL where id = ATTACHMENT_ID_FROM_STEP_1 limit 1; 5 Go look at the ticket in RT and ensure that you did indeed eliminate the offending attachment. 6 Repeat steps 3,4,5 in your production environment. 7 Do not call me if you shot yourself in the foot. No warranty expressed or implied! If this isn't perfectly clear, hire Best Practical (https://bestpractical.com/) to do it for you. cheers, Ram -------------- next part -------------- An HTML attachment was scrubbed... URL: From reza.toronto at gmail.com Tue Oct 25 12:18:07 2016 From: reza.toronto at gmail.com (Reza) Date: Tue, 25 Oct 2016 12:18:07 -0400 Subject: [rt-users] Greetings from a New RT user in Toronto. In-Reply-To: References: Message-ID: <9a373260-8489-e113-7298-5f8e3dc50af0@gmail.com> Greetings Jeff: Thank you for your reply. The use case for random IDs is quite simple. Ascending / serial number of IDs compromises confidentiality. End users would be able to guess how busy I could be with the amount of tickets answered. Its something I don't want to disclose. Almost ALL ticketing systems I have seen, have a random arbitrary numeric or alpha-numeric ID. Any other suggestions on how to approach not displaying an obvious number to end users? Thanks! Reza. Jeffrey Pilant wrote on 10/25/2016 10:12 AM: > Reza writes: >> The last 24-48 hrs has been an amazing learning experience. I feel >> as-if I can do Kung Fu now :) >> >> From my recent agenda of: >> >> 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. >> 6. How to Customize the RT at a glance (Just added to my list for Oct >> 25, 2016) >> >> I have learned points #2, #3, #4. >> >> Can anyone here guide me to the proper direction to accomplish #1 >> (Generating random ticket number versus ascending ticket numbers), and >> guide me towards a fundamentally basic API example for 3rd Party CRM >> integration? > In order to generate a random ticket ID, you need a random number generator, a min and max ID number allowed, and a way to determine if any given ID has already been used. You then need to replace the standard SQL that gets the current max ID and adds one to assign a new ID. I don't know where that code is. As you fill the IDs, generating a new ID becomes harder and harder, because you will hit duplicate entries in the random generating process. You also loose the relation of ID#s to date order. Sorting a list of IDs by ID number will randomize the time that the IDs occur, requiring reports to be modified to be sorted by some other key. > > Basically, you need a very strong reason to break the defaults the program uses, because there is a lot of work needed to rewrite the many things that use the defaults, and the time spent verifying that you found all the bits that need to be changed. > > What is your use case? > > /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 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From ram0502 at gmail.com Tue Oct 25 14:00:17 2016 From: ram0502 at gmail.com (Ram) Date: Tue, 25 Oct 2016 11:00:17 -0700 Subject: [rt-users] Deleting one attachment In-Reply-To: <1477405912283.25262@usit.uio.no> References: <1477405912283.25262@usit.uio.no> Message-ID: > > Sorry for not seeing this sooner, but I'll leave this for people wondering > about the same in the future. > > We have sucessfully deleted single attachments from a ticket using > rt-shredder. Issue the command like this; > > rt-shredder --plugin 'Objects=Attachment,?' > This is what I expected to be able to do but it's not on the web docs nor the built-in USAGE. Guess I could've read through the code to confirm. Thanks for follow up here Thomas! Confirmed this works on rt 4.4.1. br, ram -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffrey.pilant at bayer.com Tue Oct 25 14:43:00 2016 From: jeffrey.pilant at bayer.com (Jeffrey Pilant) Date: Tue, 25 Oct 2016 18:43:00 +0000 Subject: [rt-users] Greetings from a New RT user in Toronto. Message-ID: <6315106ce4934746918a8bc21df596ac@MOXDEA.na.bayer.cnb> Reza writes: >The use case for random IDs is quite simple. Ascending / serial number >of IDs compromises confidentiality. End users would be able to guess >how busy I could be with the amount of tickets answered. Its something >I don't want to disclose. Almost ALL ticketing systems I have seen, >have a random arbitrary numeric or alpha-numeric ID. Any other >suggestions on how to approach not displaying an obvious number to end >users? I don't think I have ever seen a random number for ticket ID. I have seen many systems that show reports of number of tickets processed per unit of time and he average answer time. I guess I have never encountered your need before. Seeing a series of ticket IDs may tell them how fast tickets come in, but it will not tell them how fast they are answered. What might be easier is to create a custom field that holds a random number (maybe a GUID?). This number could then be placed in the email subject line in place of the ticket ID. Likiewise, the email reader could read the number from the subject and look up the ID. This would touch a lot fewer places in the code, and if the recipient only ever sees the email, they don't know the real number. Meanwhile, users of the web interface see both real number and random number. If you allow them to see the web interface, the above will not work. A simple possible solution is to add a random amount to the ticket sequence in the code that generates ticket numbers. You will need a much larger max ticket ID since there is so much wasted space, but the random nature will obscure the number of real tickets between two given ticket IDs. /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. ________________________________________________________________________ From ahall at autodist.com Tue Oct 25 14:55:32 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 25 Oct 2016 14:55:32 -0400 Subject: [rt-users] Difficulty of turning one-time CC into full CC? Message-ID: All, People at work are wanting me to modify RT so that the one-time CC options on ticket replies are instead full CCs. That is, anyone added there is CC-ed on the full ticket rather than on just the transaction being made. No one wants to use the 'people' tab, and one-time CC-ing isn't something anyone expects to use. I know, in theory, how to make such a change now. What I'm wondering is how hard it might be. If anyone has ever done this before, can you give an idea of what is involved? The UI is one part, but what behind-the-scenes changes might I have to make? Is it as simple as changing an argument, or much worse? Am I changing the plate on an electrical outlet, or tearing down half the wall to change all the wiring? -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Tue Oct 25 15:03:49 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Tue, 25 Oct 2016 14:03:49 -0500 Subject: [rt-users] Difficulty of turning one-time CC into full CC? In-Reply-To: References: Message-ID: Hi Alex, On Tue, Oct 25, 2016 at 1:55 PM, Alex Hall wrote: > > I know, in theory, how to make such a change now. What I'm wondering is how > hard it might be. If anyone has ever done this before, can you give an idea > of what is involved? The UI is one part, but what behind-the-scenes changes > might I have to make? Is it as simple as changing an argument, or much > worse? Am I changing the plate on an electrical outlet, or tearing down half > the wall to change all the wiring? You could leverage a callback. Ticket/Update.html has a callback named BeforeDisplay. I don't know if that callback fires before the transactions are created or not - that would be the question. If it does fire before the transactions, then you could look at the submitted ticket/txn data manipulate the ARGSRef to remove the one-time ccs and add them in as ccs (if they aren't already ccs.) I'm not sure the best way to go forward if the BeforeDisplay fires after the txns are created. -m From ahall at autodist.com Tue Oct 25 16:44:16 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 25 Oct 2016 16:44:16 -0400 Subject: [rt-users] Greetings from a New RT user in Toronto. In-Reply-To: <6315106ce4934746918a8bc21df596ac@MOXDEA.na.bayer.cnb> References: <6315106ce4934746918a8bc21df596ac@MOXDEA.na.bayer.cnb> Message-ID: I'm just taking a shot in the dark, not knowing the code base well, but what about this. You keep the actual number, but add things before and after it. For instance: 1207b6988c77 where the ID is 988. Your filter is a letter followed by a number, then your ID, then a letter. You can add random numbers before and after this to as much length as you want. The random digit after the first letter will make it far less obvious where the actual ID is, since the ID would change for a new ticket, as would the random digit. You might even be able to avoid reuse by tracking the letters and digit used, giving you 26*26*3 patterns before you'd have to start over. Not true random, but maybe it's enough for your purposes and would be less of a process to implement? Again, this is just a thought from someone who doesn't know the code well at all. On Tue, Oct 25, 2016 at 2:43 PM, Jeffrey Pilant wrote: > Reza writes: > >The use case for random IDs is quite simple. Ascending / serial number > >of IDs compromises confidentiality. End users would be able to guess > >how busy I could be with the amount of tickets answered. Its something > >I don't want to disclose. Almost ALL ticketing systems I have seen, > >have a random arbitrary numeric or alpha-numeric ID. Any other > >suggestions on how to approach not displaying an obvious number to end > >users? > > I don't think I have ever seen a random number for ticket ID. > I have seen many systems that show reports of number of tickets processed > per unit of time and he average answer time. > I guess I have never encountered your need before. > > Seeing a series of ticket IDs may tell them how fast tickets come in, but > it will not tell them how fast they are answered. > > What might be easier is to create a custom field that holds a random > number (maybe a GUID?). This number could then be placed in the email > subject line in place of the ticket ID. Likiewise, the email reader could > read the number from the subject and look up the ID. This would touch a > lot fewer places in the code, and if the recipient only ever sees the > email, they don't know the real number. Meanwhile, users of the web > interface see both real number and random number. > > If you allow them to see the web interface, the above will not work. > > A simple possible solution is to add a random amount to the ticket > sequence in the code that generates ticket numbers. You will need a much > larger max ticket ID since there is so much wasted space, but the random > nature will obscure the number of real tickets between two given ticket IDs. > > /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 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Tue Oct 25 17:17:07 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 25 Oct 2016 17:17:07 -0400 Subject: [rt-users] Seeing this error in the log Message-ID: Hello list, Every so often, and seemingly randomly, I see this error in /var/log/messages just as the FCGI server stops working: Oct 25 13:43:07 RTServer RT: [8137] Argument "username" isn't numeric in numeric ne (!=) at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 3027. It shows up three times, at the same exact time, and that's it. The "username" appears to be the username of one of our users (I've replaced the actual name with 'username' for this email). This is the only reason RT ever goes down. If it weren't for this, I doubt we'd have any problems at all. Manually restarting the FCGI server fixes things for anywhere from one to five days before the same problem happens again. Has anyone seen this before? RT4.4.1 on Debian 8. Thanks. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lstewart at internap.com Tue Oct 25 17:31:21 2016 From: lstewart at internap.com (Landon Stewart) Date: Tue, 25 Oct 2016 21:31:21 +0000 Subject: [rt-users] Seeing this error in the log In-Reply-To: References: Message-ID: OH! I should mention that code stanza below is taken from the rt-4.4.1.tar.gz since I don't have 4.4.1 installed. On Oct 25, 2016, at 2:29 PM, Landon Stewart > wrote: I think it has something to do with the reminders if that helps. The following if() statement is on line 3027 of that file. I have no idea why "$args->{ 'Reminder-Owner-' . $reminder->id }" is has a value of the username of someone though since "$reminder->id" should return a numerical ID of the user. Looks like a bug to me. if ( exists( $args->{ 'Reminder-Owner-' . $reminder->id } ) && ( $reminder->Owner != $args->{ 'Reminder-Owner-' . $reminder->id } ) ) { ( $status, $msg ) = $reminder->SetOwner( $args->{ 'Reminder-Owner-' . $reminder->id }, "Force" ); push @subresults, $msg; } -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lstewart at internap.com Tue Oct 25 17:29:36 2016 From: lstewart at internap.com (Landon Stewart) Date: Tue, 25 Oct 2016 21:29:36 +0000 Subject: [rt-users] Seeing this error in the log In-Reply-To: References: Message-ID: On Oct 25, 2016, at 2:17 PM, Alex Hall > wrote: Hello list, Every so often, and seemingly randomly, I see this error in /var/log/messages just as the FCGI server stops working: Oct 25 13:43:07 RTServer RT: [8137] Argument "username" isn't numeric in numeric ne (!=) at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 3027. It shows up three times, at the same exact time, and that's it. The "username" appears to be the username of one of our users (I've replaced the actual name with 'username' for this email). This is the only reason RT ever goes down. If it weren't for this, I doubt we'd have any problems at all. Manually restarting the FCGI server fixes things for anywhere from one to five days before the same problem happens again. Has anyone seen this before? RT4.4.1 on Debian 8. Thanks. I think it has something to do with the reminders if that helps. The following if() statement is on line 3027 of that file. I have no idea why "$args->{ 'Reminder-Owner-' . $reminder->id }" is has a value of the username of someone though since "$reminder->id" should return a numerical ID of the user. Looks like a bug to me. if ( exists( $args->{ 'Reminder-Owner-' . $reminder->id } ) && ( $reminder->Owner != $args->{ 'Reminder-Owner-' . $reminder->id } ) ) { ( $status, $msg ) = $reminder->SetOwner( $args->{ 'Reminder-Owner-' . $reminder->id }, "Force" ); push @subresults, $msg; } -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From reza.toronto at gmail.com Tue Oct 25 19:51:56 2016 From: reza.toronto at gmail.com (Reza) Date: Tue, 25 Oct 2016 19:51:56 -0400 Subject: [rt-users] Randomizing / Masking Ticket Numbers / or Intelligently concatenating multiple numbers as ticket number. In-Reply-To: <6315106ce4934746918a8bc21df596ac@MOXDEA.na.bayer.cnb> References: <6315106ce4934746918a8bc21df596ac@MOXDEA.na.bayer.cnb> Message-ID: <93891e50-676c-dbd6-69d9-cf1bc8763668@gmail.com> Thank you for your detailed response Jeff. Thinking out of the box, a Random Number is not necessary if we can mask it from email responses. In my specific case, I do not want non-staff to access RT. Only support agents. Is some sort of ID number absolutely necessary in the subject field and can this be removed? I guess a more technical question is how RT tracks the email thread? Is it through the headers, or a basic primitive Subject field comparison ? Then again... I'm thinking... a ticket number is so much easier if its relayed to support agents by caller if they decide to simply call for support. Thoughts, ideas and suggestions welcome. Best, Reza. Jeffrey Pilant wrote on 10/25/2016 2:43 PM: > Reza writes: >> The use case for random IDs is quite simple. Ascending / serial number >> of IDs compromises confidentiality. End users would be able to guess >> how busy I could be with the amount of tickets answered. Its something >> I don't want to disclose. Almost ALL ticketing systems I have seen, >> have a random arbitrary numeric or alpha-numeric ID. Any other >> suggestions on how to approach not displaying an obvious number to end >> users? > I don't think I have ever seen a random number for ticket ID. > I have seen many systems that show reports of number of tickets processed per unit of time and he average answer time. > I guess I have never encountered your need before. > > Seeing a series of ticket IDs may tell them how fast tickets come in, but it will not tell them how fast they are answered. > > What might be easier is to create a custom field that holds a random number (maybe a GUID?). This number could then be placed in the email subject line in place of the ticket ID. Likiewise, the email reader could read the number from the subject and look up the ID. This would touch a lot fewer places in the code, and if the recipient only ever sees the email, they don't know the real number. Meanwhile, users of the web interface see both real number and random number. > > If you allow them to see the web interface, the above will not work. > > A simple possible solution is to add a random amount to the ticket sequence in the code that generates ticket numbers. You will need a much larger max ticket ID since there is so much wasted space, but the random nature will obscure the number of real tickets between two given ticket IDs. > > /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. > ________________________________________________________________________ From ahall at autodist.com Tue Oct 25 20:14:27 2016 From: ahall at autodist.com (Alex Hall) Date: Tue, 25 Oct 2016 20:14:27 -0400 Subject: [rt-users] Randomizing / Masking Ticket Numbers / or Intelligently concatenating multiple numbers as ticket number. In-Reply-To: <93891e50-676c-dbd6-69d9-cf1bc8763668@gmail.com> References: <6315106ce4934746918a8bc21df596ac@MOXDEA.na.bayer.cnb> <93891e50-676c-dbd6-69d9-cf1bc8763668@gmail.com> Message-ID: <2718350E-1958-479A-AF34-8AEC49A8D83F@autodist.com> To my knowledge, yes, mail is routed through use of the subject line. When you create a queue, you give it a tag that is used in email subjects, and that is combined with the ticket ID to form the basis for how RT knows which queue/ticket a given message goes to. However, you can customize the regular expression RT uses, I believe, which fits with my suggestion from earlier today. You may be able to tune the expression to pull the true ID out of the randomized string, making your only coding task that of generating the random characters in the first place. See the $EmailSubjectTagRegex variable on this page: https://docs.bestpractical.com/rt/4.4.1/RT_Config.html > On Oct 25, 2016, at 19:51, Reza wrote: > > Thank you for your detailed response Jeff. > > Thinking out of the box, a Random Number is not necessary if we can mask it from email responses. In my specific case, I do not want non-staff to access RT. Only support agents. > > Is some sort of ID number absolutely necessary in the subject field and can this be removed? I guess a more technical question is how RT tracks the email thread? Is it through the headers, or a basic primitive Subject field comparison ? > > Then again... I'm thinking... a ticket number is so much easier if its relayed to support agents by caller if they decide to simply call for support. > > Thoughts, ideas and suggestions welcome. > > Best, > Reza. > > > Jeffrey Pilant wrote on 10/25/2016 2:43 PM: >> Reza writes: >>> The use case for random IDs is quite simple. Ascending / serial number >>> of IDs compromises confidentiality. End users would be able to guess >>> how busy I could be with the amount of tickets answered. Its something >>> I don't want to disclose. Almost ALL ticketing systems I have seen, >>> have a random arbitrary numeric or alpha-numeric ID. Any other >>> suggestions on how to approach not displaying an obvious number to end >>> users? >> I don't think I have ever seen a random number for ticket ID. >> I have seen many systems that show reports of number of tickets processed per unit of time and he average answer time. >> I guess I have never encountered your need before. >> >> Seeing a series of ticket IDs may tell them how fast tickets come in, but it will not tell them how fast they are answered. >> >> What might be easier is to create a custom field that holds a random number (maybe a GUID?). This number could then be placed in the email subject line in place of the ticket ID. Likiewise, the email reader could read the number from the subject and look up the ID. This would touch a lot fewer places in the code, and if the recipient only ever sees the email, they don't know the real number. Meanwhile, users of the web interface see both real number and random number. >> >> If you allow them to see the web interface, the above will not work. >> >> A simple possible solution is to add a random amount to the ticket sequence in the code that generates ticket numbers. You will need a much larger max ticket ID since there is so much wasted space, but the random nature will obscure the number of real tickets between two given ticket IDs. >> >> /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 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From jblaine at kickflop.net Tue Oct 25 12:00:36 2016 From: jblaine at kickflop.net (Jeff Blaine) Date: Tue, 25 Oct 2016 12:00:36 -0400 Subject: [rt-users] "Hidden" tickets suddenly appear Message-ID: <752e5b1a-61eb-8a4a-a5a5-11bbdc911254@kickflop.net> RT 4.2.13 backed by PostgreSQL, though I feel like we've been experiencing the following for many versions. I've been suspect for quite some time, but thought maybe I was losing my mind instead. I've confirmed finally that I am not losing my mind re: RT in this specific case. We are definitely seeing the following situation. I'm curious if anyone has thoughts as to where to start debugging the root cause. I use a simple saved search as my view into RT at work. Others using this queue also use a similar one. The query is: Queue = 'atcc-help' AND ( Status = 'new' OR Status = 'open' OR Status = 'stalled' ) AND ( Owner = 'Nobody' OR Owner = 'jblaine at our.org' ) The display settings for the search have "Rows: Unlimited" It results in a daily list of 70-120 tickets. We are seeing tickets appear in this list, where they have never appeared in the list before, after some period of being in the queue. In most cases, the mystery ticket has a "Created" date of more than a few weeks ago. The most recent case was 5 months. That is, a ticket with "Created" of around 5 months ago, and in "new" status, showed up in the results of the search above where it never had shown up before. As you can imagine, this is terrible for customer service. Luckily it seems pretty rare. I would estimate that we see this happen ~5 times per year, and then have to start the very awkward conversation about how the ticket "slipped through our cracks". Thoughts very welcome. Jeff From reza.toronto at gmail.com Wed Oct 26 03:17:05 2016 From: reza.toronto at gmail.com (Reza) Date: Wed, 26 Oct 2016 03:17:05 -0400 Subject: [rt-users] REST API, AUTOMATION and Recipes. Message-ID: <3dbb92a0-f169-430a-9831-82dfac8fdb30@gmail.com> /*Greetings Community:*/ Past 3:00 AM EST here in Toronto and this learning exercise is just too darn addictive! I've already been digging deep inside the API documentations of RT, to be more specific the REST API. The contributors and developers of RT are simply pure ingenious. The REST API is allowing any Joe like me to come up with a beautifully designed web interface and communicate with RT to do almost anything (if not all). I've already started writing code to integrate with bash scripts, php, simple CURL, etc., as the initial input by web-form, or telephone touch pad. I'm only beginning to imagine the potential of a phone system integration of a call centre into RT. Most of us here are systems admins, system analysts and coders. Just curious... how many of you folks here in this community have actually written your own apps to integrate with RT via the REST API? Thanks! Reza. [Superbly pumped to learn more. Cheers!] -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.wheldon at greenhills-it.co.uk Wed Oct 26 04:27:43 2016 From: martin.wheldon at greenhills-it.co.uk (Martin Wheldon) Date: Wed, 26 Oct 2016 08:27:43 +0000 Subject: [rt-users] "Hidden" tickets suddenly appear In-Reply-To: <752e5b1a-61eb-8a4a-a5a5-11bbdc911254@kickflop.net> References: <752e5b1a-61eb-8a4a-a5a5-11bbdc911254@kickflop.net> Message-ID: <5d2fbba4a86e048d1d5ddc19ff180d08@mail.greenhills-it.co.uk> Hi Jeff, If you examine the ticket history of the problem ticket it should tell you what happened for it to be set back to the "new" status. Is it being reopened by a reply to a email from the pervious ticket corespondance perhaps?? Best Regards Martin On 2016-10-25 16:00, Jeff Blaine wrote: > RT 4.2.13 backed by PostgreSQL, though I feel like we've been > experiencing the following for many versions. > > I've been suspect for quite some time, but thought maybe I was losing > my > mind instead. I've confirmed finally that I am not losing my mind re: > RT > in this specific case. We are definitely seeing the following > situation. > > I'm curious if anyone has thoughts as to where to start debugging the > root cause. > > I use a simple saved search as my view into RT at work. Others using > this queue also use a similar one. The query is: > > Queue = 'atcc-help' > AND > ( > Status = 'new' > OR Status = 'open' > OR Status = 'stalled' > ) > AND ( > Owner = 'Nobody' > OR Owner = 'jblaine at our.org' > ) > > The display settings for the search have "Rows: Unlimited" > > It results in a daily list of 70-120 tickets. > > We are seeing tickets appear in this list, where they have never > appeared in the list before, after some period of being in the queue. > In > most cases, the mystery ticket has a "Created" date of more than a few > weeks ago. The most recent case was 5 months. That is, a ticket with > "Created" of around 5 months ago, and in "new" status, showed up in the > results of the search above where it never had shown up before. > > As you can imagine, this is terrible for customer service. Luckily it > seems pretty rare. I would estimate that we see this happen ~5 times > per > year, and then have to start the very awkward conversation about how > the > ticket "slipped through our cracks". > > Thoughts very welcome. > > Jeff > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Boston - October 24-26 > * Los Angeles - Q1 2017 From kcreasy at aph.org Wed Oct 26 07:46:45 2016 From: kcreasy at aph.org (Keith Creasy) Date: Wed, 26 Oct 2016 11:46:45 +0000 Subject: [rt-users] REST API, AUTOMATION and Recipes. In-Reply-To: <3dbb92a0-f169-430a-9831-82dfac8fdb30@gmail.com> References: <3dbb92a0-f169-430a-9831-82dfac8fdb30@gmail.com> Message-ID: <0CCA574EA07BCC48BB2161AADC8B92B77E686360@WINSRVEX10.aph.org> Hi Reza. Nothing all that complicated but I did write an interface using Angular that compiles some statistical information on RT tickets and children. It creates a nice report on the progress toward milestones. Things like estimated time, time worked, time remaining, percent complete, and a color-coded status. It gives totals for each ?epic? and a total for all work in progress, work completed, and work that has not yet begun. I?m sure I could do a lot more but coding all this really isn?t ?my job? and so time is limited. Good luck. Keith Keith Creasy, Programmer and Technical Lead American Printing House f/t Blind Phone: 502.895.2405 Skype: keith537 From: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Reza Sent: Wednesday, October 26, 2016 3:17 AM To: rt-users Subject: [rt-users] REST API, AUTOMATION and Recipes. Greetings Community: Past 3:00 AM EST here in Toronto and this learning exercise is just too darn addictive! I've already been digging deep inside the API documentations of RT, to be more specific the REST API. The contributors and developers of RT are simply pure ingenious. The REST API is allowing any Joe like me to come up with a beautifully designed web interface and communicate with RT to do almost anything (if not all). I've already started writing code to integrate with bash scripts, php, simple CURL, etc., as the initial input by web-form, or telephone touch pad. I'm only beginning to imagine the potential of a phone system integration of a call centre into RT. Most of us here are systems admins, system analysts and coders. Just curious... how many of you folks here in this community have actually written your own apps to integrate with RT via the REST API? Thanks! Reza. [Superbly pumped to learn more. Cheers!] -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaniadimitris at yahoo.gr Wed Oct 26 10:04:17 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Wed, 26 Oct 2016 14:04:17 +0000 (UTC) Subject: [rt-users] How to AllowSorting in AssetList in SelfService In-Reply-To: References: <844621639.400824.1477400834528.ref@mail.yahoo.com> Message-ID: <1966887943.1425497.1477490657635@mail.yahoo.com> Hello, please any ideas - solutions on this? When changing the "AllowSorting" value to "1", still sorting does not respond. Are further changes needed? Dimitris On Tuesday, October 25, 2016 4:08 PM, Dimitris Maniadakis via rt-users wrote: Hello everybody, I need your help on the following, please. I would like to allow sorting of the Asset List in the SelfService. I create a copy (Customization with local dir) of the relevant file /opt/rt4/share/html/User/Elements/AssetList in the local dir: /opt/rt4/local/html/User/Elements/AssetList There, I change the "AllowSorting" value to "1". Then, the user can actually click on the column header to sort each column. However, the generated url appears not to be working! For example, the generated url when trying to sort based on the "Name" is: https://................/SelfService/Asset/index.html?Format=%0A%20%20%20%20%27%3Cb%3E%3Ca%20href%3D%22__WebHomePath__%2FAsset%2FDisplay.html%3Fid%3D__id__%22%3E__id__%3C%2Fa%3E%3C%2Fb%3E%2FTITLE%3A%23%27%2C%0A%20%20%20%20%27%3Cb%3E%3Ca%20href%3D%22__WebHomePath__%2FAsset%2FDisplay.html%3Fid%3D__id__%22%3E__Name__%3C%2Fa%3E%3C%2Fb%3E%2FTITLE%3AName%27%2C%0A%20%20%20%20Description%2C%0A&Order=ASC&OrderBy=Name&Page=1 As you may see the url contains the $Format! I cannot find a way to get rid of it. Any ideas? Thanks in advance! Dimitris From guadagnino.cristiano at creval.it Wed Oct 26 04:25:01 2016 From: guadagnino.cristiano at creval.it (Guadagnino Cristiano) Date: Wed, 26 Oct 2016 08:25:01 +0000 Subject: [rt-users] REST API, AUTOMATION and Recipes. In-Reply-To: <3dbb92a0-f169-430a-9831-82dfac8fdb30@gmail.com> References: <3dbb92a0-f169-430a-9831-82dfac8fdb30@gmail.com> Message-ID: <5987102.pIdzc8GBi2@xmper8q3.gcv.dom> Hi Reza, I have written a little open source Windows application that sits in the system tray and notifies you when a new ticket arrives or when someone reopens one of your closed tickets. It is communicating with RT through the REST APIs. You can find it here, if you're curious: https://app.assembla.com/spaces/rtcheckerv2/wiki It still has a couple bugs, but we're all using it here in production. Cris Il mercoled? 26 ottobre 2016 alle 03:17:05 CEST, Reza ha scritto: Greetings Community: Past 3:00 AM EST here in Toronto and this learning exercise is just too darn addictive! I've already been digging deep inside the API documentations of RT, to be more specific the REST API. The contributors and developers of RT are simply pure ingenious. The REST API is allowing any Joe like me to come up with a beautifully designed web interface and communicate with RT to do almost anything (if not all). I've already started writing code to integrate with bash scripts, php, simple CURL, etc., as the initial input by web-form, or telephone touch pad. I'm only beginning to imagine the potential of a phone system integration of a call centre into RT. Most of us here are systems admins, system analysts and coders. Just curious... how many of you folks here in this community have actually written your own apps to integrate with RT via the REST API? Thanks! Reza. [Superbly pumped to learn more. Cheers!] -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Wed Oct 26 12:51:59 2016 From: ahall at autodist.com (Alex Hall) Date: Wed, 26 Oct 2016 12:51:59 -0400 Subject: [rt-users] applying script to single queue Message-ID: Hello list, After everything I've learned about RT, I feel like I should know this without even having to think about it, but I don't. How do I apply a script to a single queue, so I can take a seldom-used queue and test out new templates? I've gone to the queue, then scripts, but when I click a script to modify it, I am told it applies globally. When I click the link to change that, I just get a table of globally applied scripts, a table of unused scripts, and that's all. How do I make a script--or a clone of a script, if I have to do it that way--apply to just one queue? Thanks in advance. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From javoskamp at uwaterloo.ca Wed Oct 26 14:26:20 2016 From: javoskamp at uwaterloo.ca (Jeff Voskamp) Date: Wed, 26 Oct 2016 14:26:20 -0400 Subject: [rt-users] Greetings from a New RT user in Toronto. In-Reply-To: <9a373260-8489-e113-7298-5f8e3dc50af0@gmail.com> References: <9a373260-8489-e113-7298-5f8e3dc50af0@gmail.com> Message-ID: <95c91a8b-d57b-b65b-4b13-d2402ca06822@uwaterloo.ca> On 25/10/16 12:18 PM, Reza wrote: > Greetings Jeff: > > Thank you for your reply. > > The use case for random IDs is quite simple. Ascending / serial > number of IDs compromises confidentiality. End users would be able to > guess how busy I could be with the amount of tickets answered. Its > something I don't want to disclose. Almost ALL ticketing systems I > have seen, have a random arbitrary numeric or alpha-numeric ID. Any > other suggestions on how to approach not displaying an obvious number > to end users? > > Thanks! > Reza. The increasing ticket number is baked into the Ticket table definition: `id` int(11) NOT NULL AUTO_INCREMENT, There's probably bits of code that assume this works this way. Jeff From ahall at autodist.com Wed Oct 26 15:15:22 2016 From: ahall at autodist.com (Alex Hall) Date: Wed, 26 Oct 2016 15:15:22 -0400 Subject: [rt-users] error when using custom template Message-ID: Hello list, I'm starting to test a custom template. When RT tries to use it, I see an error appear in the system log: Use of uninitialized value in substitution (s///) at /opt/rt4/sbin/../lib/RT/Transaction.pm line 362 That line seems to be detecting any form of new line it can, so how could my template possibly cause such an odd problem? This is my first stab at custom templates; my boss doesn't want quoted text, so he wants reply links in the body of notification emails that people will use in place of standard email replies. I've pasted the text of my template below: Subject: {$Transaction->CreatorObj->Name} Updated Ticket {Ticket->id} Ticket {$Ticket->id} was updated ( click here to reply): {$Transaction->Description} Please do not reply to this message. Instead, click here to reply, or open this ticket on the ticket site. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lwelch at holycross.com Wed Oct 26 15:43:27 2016 From: lwelch at holycross.com (Lori Welch) Date: Wed, 26 Oct 2016 19:43:27 +0000 Subject: [rt-users] Articles in 4.4.1, Issues with search and text showing up in comments. Message-ID: <26f8b09f9800446c9977796d542fe91c@gwexch3.holycross.com> Having an issue while setting up articles in RT 4.4.1. I have made the following RT_SiteConfig changes: #Set Articles Set($ArticleOnTicketCreate, 1); Set($HideArticleSearchOnReplyCreate, 0); On Create, I do not see Articles for an option. ON Reply, Comment, the search comes up, but does not work. I am able to put in the article number, but that only adds a link, not any text to the comment. What am I doing wrong? I have 4 classes, with 4 tickets under each. I get a search box, and no matter what I type I get no options. Under Articles, I am able to search for articles, but only for the class. I am also unable to load or save searches. I have also tried logged in as root, same thing. Search Box Example: [cid:image001.png at 01D22F8E.655BC420] Article added as a link, no text added [cid:image002.png at 01D22F8E.B8E543A0] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 22550 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 19797 bytes Desc: image002.png URL: From reza.toronto at gmail.com Wed Oct 26 15:56:40 2016 From: reza.toronto at gmail.com (Reza) Date: Wed, 26 Oct 2016 15:56:40 -0400 Subject: [rt-users] REST API, AUTOMATION and Recipes. In-Reply-To: <3dbb92a0-f169-430a-9831-82dfac8fdb30@gmail.com> References: <3dbb92a0-f169-430a-9831-82dfac8fdb30@gmail.com> Message-ID: <4a57aaa1-d7fb-c10f-f458-6c1e9bf667ed@gmail.com> Keith, Cris, thank you for sharing. Cris, I'm going to look into that wiki of yours. To share with both of you, I just finished writing a combination of bash scripts, combined with an Open Source VOIP switch (Asterisk) and am able to create tickets ON THE FLY, real time, with caller id name and number, inserted into the ticket, with a unique identifier for call recordings for an active on-going call. This is more of a hobby / learning exercise. Its very much at its primitive stages but very functional. Since its barely 3-4 days since I started with RT, I'm documenting all the steps and questions that I'm coming up with. Perhaps that doc will help with future learning of enthusiasts. Hopefully more people will share what they are doing with the REST API, as it gives us all more perspective of what can be done and what people doing in real life. Thanks! Reza. Reza wrote on 10/26/2016 3:17 AM: > > /*Greetings Community:*/ > > Past 3:00 AM EST here in Toronto and this learning exercise is just > too darn addictive! > > I've already been digging deep inside the API documentations of RT, to > be more specific the REST API. > > The contributors and developers of RT are simply pure ingenious. The > REST API is allowing any Joe like me to come up with a beautifully > designed web interface and communicate with RT to do almost anything > (if not all). I've already started writing code to integrate with > bash scripts, php, simple CURL, etc., as the initial input by > web-form, or telephone touch pad. I'm only beginning to imagine the > potential of a phone system integration of a call centre into RT. > > Most of us here are systems admins, system analysts and coders. Just > curious... how many of you folks here in this community have actually > written your own apps to integrate with RT via the REST API? > > Thanks! > Reza. > > [Superbly pumped to learn more. Cheers!] > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Brian.Dunbar at von.ca Wed Oct 26 15:45:43 2016 From: Brian.Dunbar at von.ca (Dunbar, Brian) Date: Wed, 26 Oct 2016 19:45:43 +0000 Subject: [rt-users] Secondary Approvals In-Reply-To: References: Message-ID: <1B0952CE40023A48AE928B0BBBC4AD40146B1A6E@VONDC335.vonnat1.von.ca> Hello List! I am setting up a new queue for our Hiring Team. They need approvals setup. First is HR approval with range for the position. Then the requesting manager needs a director?s approval to move forward. We have many directors and the directors need the range information before they will approve. I setup HR as Approvers in RT Approval using __Approvals using Template and scrip from this link https://docs.bestpractical.com/rt/4.4.0/customizing/approvals.html This works for the initial approval by HR Now is there a way to make secondary approval from the director as well I do not want every director being notified of a pending approval only the relevant director. Any help would be greatly appreciated. Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Wed Oct 26 16:14:17 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Wed, 26 Oct 2016 15:14:17 -0500 Subject: [rt-users] Secondary Approvals In-Reply-To: <1B0952CE40023A48AE928B0BBBC4AD40146B1A6E@VONDC335.vonnat1.von.ca> References: <1B0952CE40023A48AE928B0BBBC4AD40146B1A6E@VONDC335.vonnat1.von.ca> Message-ID: Hi Brian, On Wed, Oct 26, 2016 at 2:45 PM, Dunbar, Brian wrote: > Any help would be greatly appreciated. I don't know about secondary approvals. If the approvals approach doesn't solve your problem, you could solve it with a lifecycle. -m From lstewart at internap.com Wed Oct 26 16:25:58 2016 From: lstewart at internap.com (Landon Stewart) Date: Wed, 26 Oct 2016 20:25:58 +0000 Subject: [rt-users] error when using custom template In-Reply-To: References: Message-ID: <460813BC-9728-48D4-8AFE-E748FB371342@internap.com> Add this directly above or below the Subject line in the template but before the blank line. Content-Type: text/html On Oct 26, 2016, at 12:15 PM, Alex Hall > wrote: Hello list, I'm starting to test a custom template. When RT tries to use it, I see an error appear in the system log: Use of uninitialized value in substitution (s///) at /opt/rt4/sbin/../lib/RT/Transaction.pm line 362 That line seems to be detecting any form of new line it can, so how could my template possibly cause such an odd problem? This is my first stab at custom templates; my boss doesn't want quoted text, so he wants reply links in the body of notification emails that people will use in place of standard email replies. I've pasted the text of my template below: Subject: {$Transaction->CreatorObj->Name} Updated Ticket {Ticket->id} Ticket {$Ticket->id} was updated ( click here to reply): {$Transaction->Description} Please do not reply to this message. Instead, click here to reply, or open this ticket on the ticket site. -- Alex Hall Automatic Distributors, IT department ahall at 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 -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Wed Oct 26 17:29:26 2016 From: ahall at autodist.com (Alex Hall) Date: Wed, 26 Oct 2016 17:29:26 -0400 Subject: [rt-users] Template snippet causes template to silently fail Message-ID: Hi all, The way our company uses RT, there's no need to distinguish between comments and replies, and users may use either one without realizing the difference. In my new email template, I want to show whichever was set. My template works fine without the two if statements I'm trying to use, but as soon as I put them in, it fails. The odd thing is that, though the email using the template is never sent, I don't get any errors at all. When I was missing a dollar sign earlier, I got an error--an error not really related to the dollar sign, but an error. Now, though, I get nothing whatsoever. Here's the snippet: { if (my $transactionCorrespond = $Transaction->correspond) { $transactionCorrespond } elsif (my $transactionComment = $Transaction->comment) { $transactionComment } } I don't know what's so wrong with that bit of code, but there must be something. I don't really speak Perl, and the only page I've found thus far that enumerates the Transaction object properties isn't overly helpful, so I'm guessing at the properties I need. Can anyone see what I've done wrong here? Thanks. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Wed Oct 26 17:44:45 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Wed, 26 Oct 2016 16:44:45 -0500 Subject: [rt-users] Template snippet causes template to silently fail In-Reply-To: References: Message-ID: Hey Alex, On Wed, Oct 26, 2016 at 4:29 PM, Alex Hall wrote: > Hi all, > The way our company uses RT, there's no need to distinguish between comments > and replies, and users may use either one without realizing the difference. > In my new email template, I want to show whichever was set. My template > works fine without the two if statements I'm trying to use, but as soon as I > put them in, it fails. The odd thing is that, though the email using the > template is never sent, I don't get any errors at all. When I was missing a > dollar sign earlier, I got an error--an error not really related to the > dollar sign, but an error. Now, though, I get nothing whatsoever. Here's the > snippet: You can see some documentation regarding txns at: https://docs.bestpractical.com/rt/4.4.1/RT/Transaction.html > { if (my $transactionCorrespond = $Transaction->correspond) { > $transactionCorrespond > } elsif (my $transactionComment = $Transaction->comment) { > $transactionComment } > } # Here is some untested code... my $type = $Transaction->Type; # $type now holds "Correspond" or "Comment" if ($type eq 'Correspond') { # do something for correspond } elsif ($type eq 'Comment') { # do something for comment } else { # Perhaps this txn is a Create... } -m From lstewart at internap.com Wed Oct 26 19:52:27 2016 From: lstewart at internap.com (Landon Stewart) Date: Wed, 26 Oct 2016 23:52:27 +0000 Subject: [rt-users] Template snippet causes template to silently fail In-Reply-To: References: Message-ID: <3079C8A1-BB3E-4427-8DD1-16E064A38EA4@internap.com> On Oct 26, 2016, at 2:29 PM, Alex Hall > wrote: Hi all, The way our company uses RT, there's no need to distinguish between comments and replies, and users may use either one without realizing the difference. In my new email template, I want to show whichever was set. My template works fine without the two if statements I'm trying to use, but as soon as I put them in, it fails. The odd thing is that, though the email using the template is never sent, I don't get any errors at all. When I was missing a dollar sign earlier, I got an error--an error not really related to the dollar sign, but an error. Now, though, I get nothing whatsoever. Here's the snippet: { if (my $transactionCorrespond = $Transaction->correspond) { $transactionCorrespond } elsif (my $transactionComment = $Transaction->comment) { $transactionComment } } I don't know what's so wrong with that bit of code, but there must be something. I don't really speak Perl, and the only page I've found thus far that enumerates the Transaction object properties isn't overly helpful, so I'm guessing at the properties I need. Can anyone see what I've done wrong here? Thanks. Since $Transaction is a thing then $Transaction->correspond is empty since it's not a thing. This is why you'll get no errors. Try this: { if ($self->TransactionObj->Type eq 'Correspond') { # something } elsif ($self->TransactionObj->Type eq 'Comment') { # something else } else { # Not a Comment or Correspond transaction } } Or something that actually does exactly what your pseudocode does: { $self->TransactionObj->Type } I have found these very helpful in the past: https://rt-wiki.bestpractical.com/wiki/CustomConditionSnippets -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kc at ilk.net Thu Oct 27 08:17:58 2016 From: kc at ilk.net (Klaus Conrad) Date: Thu, 27 Oct 2016 14:17:58 +0200 Subject: [rt-users] RT warning message regarding Custom Field Message-ID: <1eec7381-18c2-0b55-77f7-500563779b78@ilk.net> Hi, after upgrading to RT 4.4.1 I'm facing the following issue: When updating a Ticket in a certain queue (before submitting, opening the update page is sufficient), RT logs the following warning message: > [23016] [Thu Oct 27 12:11:24 2016] [warning]: Couldn't load object RT::Transaction #0 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:3107) Using the source code, I was able to track this issue down to be related to a Custom Field that is set up as follows: Name: IP Address Type: Enter one IP address Applies to: Ticket Transactions Entry Hint: Enter one IP Address the other fields are empty. If I disable this custom field for the queue it is enabled for, the warning message disappears. Does anybody have an idea what could be going on here? Cheers, Klaus From kc at ilk.net Thu Oct 27 08:35:03 2016 From: kc at ilk.net (Klaus Conrad) Date: Thu, 27 Oct 2016 14:35:03 +0200 Subject: [rt-users] RT warning message regarding Custom Field In-Reply-To: <1eec7381-18c2-0b55-77f7-500563779b78@ilk.net> References: <1eec7381-18c2-0b55-77f7-500563779b78@ilk.net> Message-ID: On 27.10.2016 14:17, Klaus Conrad wrote: > Hi, > > after upgrading to RT 4.4.1 I'm facing the following issue: > > When updating a Ticket in a certain queue (before submitting, opening > the update page is sufficient), RT logs the following warning message: > >> [23016] [Thu Oct 27 12:11:24 2016] [warning]: Couldn't load object RT::Transaction #0 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:3107) Sorry, the file contained some debug code; the error is actually raised in line 3104. Also, I found the following patch for RT 4.0.12: http://lists.bestpractical.com/pipermail/rt-commit/2013-May/024391.html Is that a known issue? It didn't occur for me in RT 4.0.7 (Debian Package), which is the Version I was using before upgrading to 4.4.1. Thanks again, Klaus From joel.bergmark at t3.se Thu Oct 27 06:31:44 2016 From: joel.bergmark at t3.se (Joel Bergmark) Date: Thu, 27 Oct 2016 10:31:44 +0000 Subject: [rt-users] Extension QueChangeonUpdate Message-ID: Hi all, Have anyone running RT 4.4 dared to use this extension? If so does it work with the installation script on RT 4.4.X? Looks like last updated at 2014. https://rt-wiki.bestpractical.com/wiki/Extension_-_Queue_Change_On_Update Or perhaps someone has a way to achieve the same with different means? :) Regards, Joel -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Thu Oct 27 11:58:53 2016 From: ahall at autodist.com (Alex Hall) Date: Thu, 27 Oct 2016 11:58:53 -0400 Subject: [rt-users] Template snippet causes template to silently fail In-Reply-To: <3079C8A1-BB3E-4427-8DD1-16E064A38EA4@internap.com> References: <3079C8A1-BB3E-4427-8DD1-16E064A38EA4@internap.com> Message-ID: Thanks for the suggestions, but I'm still seeing the same exact problem. If I put the code in, the email based on this template fails to send. The log, however, remains absent any error or warning messages around the time of each attempt I make. I'll paste my latest try below, but note that I've tried $Transaction in place of $self->TransactionObj and gotten the same result.

Content: { my $transactionType = $self->TransactionObj->Type; if ($transactionType eq 'Correspond') { $self->TransactionObj->Correspond } elsif ($transactionType eq 'Comment') { $self->TransactionObj->Comment } else { "No content to display." } }

On Wed, Oct 26, 2016 at 7:52 PM, Landon Stewart wrote: > On Oct 26, 2016, at 2:29 PM, Alex Hall wrote: > > > Hi all, > The way our company uses RT, there's no need to distinguish between > comments and replies, and users may use either one without realizing the > difference. In my new email template, I want to show whichever was set. My > template works fine without the two if statements I'm trying to use, but as > soon as I put them in, it fails. The odd thing is that, though the email > using the template is never sent, I don't get any errors at all. When I was > missing a dollar sign earlier, I got an error--an error not really related > to the dollar sign, but an error. Now, though, I get nothing whatsoever. > Here's the snippet: > > { if (my $transactionCorrespond = $Transaction->correspond) { > $transactionCorrespond > } elsif (my $transactionComment = $Transaction->comment) { > $transactionComment } > } > > I don't know what's so wrong with that bit of code, but there must be > something. I don't really speak Perl, and the only page I've found thus far > that enumerates the Transaction object properties isn't overly helpful, so > I'm guessing at the properties I need. Can anyone see what I've done wrong > here? Thanks. > > > Since $Transaction is a thing then $Transaction->correspond is empty since > it's not a thing. This is why you'll get no errors. > > Try this: > { > if ($self->TransactionObj->Type eq 'Correspond') { > # something > } elsif ($self->TransactionObj->Type eq 'Comment') { > # something else > } else { > # Not a Comment or Correspond transaction > } > } > > Or something that actually does exactly what your pseudocode does: > { $self->TransactionObj->Type } > > I have found these very helpful in the past: > https://rt-wiki.bestpractical.com/wiki/CustomConditionSnippets > > -- > Landon Stewart > Lead Analyst - Abuse and Security Management > INTERNAP ? > ? lstewart at internap.com > ? www.internap.com > > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Zuelow at juneau.org Thu Oct 27 12:41:34 2016 From: James.Zuelow at juneau.org (James Zuelow) Date: Thu, 27 Oct 2016 16:41:34 +0000 Subject: [rt-users] Perl upgrade on Debian 9 causes JSON error Message-ID: <06487a2bb4134d5d84ce0ff0468b9556@City-Exch-DB1.cbj.local> Upgrading the Perl packages on Debian testing causes external auth to fail: > 16594] [Thu Oct 27 16:22:52 2016] [error]: encountered object '1', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing) at /usr/share/perl5/JSON.pm line 154. > > Stack: > [/usr/share/perl5/JSON.pm:154] > [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:197] > [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:4065] > [/usr/share/request-tracker4/html/Elements/JavascriptConfig:79] > [/usr/share/request-tracker4/html/Elements/Header:64] > [/usr/share/request-tracker4/html/index.html:4] > [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:681] > [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:369] > [/usr/share/request-tracker4/html/autohandler:53] (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209)A quick google doesn't show this particular error. Any hints as to what might be wrong? I was using external auth and thought that might be causing the problem, but turning that off leaves the JSON error. I'm using the Debian packages for everything, which had JSON at 3.02 and JSON::XS at 2.98 after the upgrade. Upgrading JSON::XS with CPAN worked and now CPAN says that JSON and JSON::XS packages are both up to date (3.02) The rest of the system works as advertised, just not the web UI. James Zuelow Systems Operations Manager City and Borough of Juneau - MIS (907) 586-0236 -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Zuelow at juneau.org Thu Oct 27 12:50:35 2016 From: James.Zuelow at juneau.org (James Zuelow) Date: Thu, 27 Oct 2016 16:50:35 +0000 Subject: [rt-users] Perl upgrade on Debian 9 causes JSON error In-Reply-To: <06487a2bb4134d5d84ce0ff0468b9556@City-Exch-DB1.cbj.local> References: <06487a2bb4134d5d84ce0ff0468b9556@City-Exch-DB1.cbj.local> Message-ID: <29582b65bd6a423e934f7a08c95f4983@City-Exch-DB1.cbj.local> OK, to answer my own question, I edited line 197 of /usr/share/request-tracker4/lib/RT/Interface/Web.pm I just added the allow_blessed => 1 to get rid of the error message. > sub EncodeJSON { > my $s = JSON::to_json(shift, { allow_blessed => 1, allow_nonref => 1 }); > $s =~ s{/}{\\/}g; > return $s; > } Now the question remains - am I silently breaking something else with that little hack? I know just enough Perl to be dangerous, so freely admit I'm not aware of all of the possible ramifications of the edit. James Zuelow Systems Operations Manager City and Borough of Juneau - MIS (907) 586-0236 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rt-sysadmin at furrie.net Thu Oct 27 13:05:29 2016 From: rt-sysadmin at furrie.net (RT SysAdmin) Date: Thu, 27 Oct 2016 18:05:29 +0100 Subject: [rt-users] Trying to create an "ITIL Change Management" queue Message-ID: <7243afed-0fda-3ee5-9240-2340a638eea0@furrie.net> Hi All, I'm running RT 4.4.1, on BackBox Linux 4.6 (GNU/Linux 4.2.0-42-generic x86_64). I'm trying to replace a bespoke ITIL Change Management system that we're about to lose access to. The old system was cobbled together on SalesForce & was essentially a matter of pressing a "New Change" button, filling out a Change Request form, then submitting it for approval. The system then forwards the change to the "Technical Approver", then when they approve the CR, it goes to the CAB1, then CAB2, then the Customer Scheduler & finally, back to the requester, as an approved change request (if you've done your homework & satisfied everybody). I've knocked up a change form, purely to show the sort of thing we have now - it's non-functional, other than to remind me of what I'm trying to replace - this is a snapshot of that form: https://furrie.net/sites/default/files/images/ChangeForm.png There are loads of systems that say they're change management tools, but they mean inventory/asset/hardware/software change management. I figured that RT was probably my best bet, as I can install it and see if I can even get close to what I want. It's quite the learning curve. I feel like I don't really know what to google for, in respect of my desired functionality (it took me a day of fumbling about, to realise that I had to log in as root, to see any configuration options - seriously, it made me feel old *sigh* I've created some users, some groups, a ChangeQ queue, and some custom fields, but right now, I'm in the dark as to how/if I can tie them all together, to get an approximation of the desired system. Please can you lovely, friendly rt-users let me know if what I'm trying to achieve, is even possible? I wouldn't want to bash my head against the wall for a week, only to find out I've wasted my time. If you could point me towards any resources that might aid my quest, please do! Please be gentle, this is my first time. Thanks, -- Chris Phillips From lwelch at holycross.com Thu Oct 27 14:25:19 2016 From: lwelch at holycross.com (Lori Welch) Date: Thu, 27 Oct 2016 18:25:19 +0000 Subject: [rt-users] Articles in 4.4.1, Issues with search and text showing up in comments. In-Reply-To: <20161027182409.14370384036@control02-haj2.antispameurope.com> References: <20161027182409.14370384036@control02-haj2.antispameurope.com> Message-ID: My issue was self resolved. I needed to add the Class to the ticket queue and now I get the drop downs. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jblaine at kickflop.net Thu Oct 27 15:21:51 2016 From: jblaine at kickflop.net (Jeff Blaine) Date: Thu, 27 Oct 2016 15:21:51 -0400 Subject: [rt-users] "Hidden" tickets suddenly appear In-Reply-To: <5d2fbba4a86e048d1d5ddc19ff180d08@mail.greenhills-it.co.uk> References: <752e5b1a-61eb-8a4a-a5a5-11bbdc911254@kickflop.net> <5d2fbba4a86e048d1d5ddc19ff180d08@mail.greenhills-it.co.uk> Message-ID: <32230609-c48d-968d-6a73-45f9dbac67bd@kickflop.net> On 10/26/2016 4:27 AM, Martin Wheldon wrote: > Hi Jeff, > > If you examine the ticket history of the problem ticket it should tell > you what happened > for it to be set back to the "new" status. > > Is it being reopened by a reply to a email from the pervious ticket > corespondance perhaps?? Martin, Right, that's where I first looked. There are zero transactions past the initial creation via email. Nothing has been done to the ticket. Jeff > On 2016-10-25 16:00, Jeff Blaine wrote: >> RT 4.2.13 backed by PostgreSQL, though I feel like we've been >> experiencing the following for many versions. >> >> I've been suspect for quite some time, but thought maybe I was losing my >> mind instead. I've confirmed finally that I am not losing my mind re: RT >> in this specific case. We are definitely seeing the following situation. >> >> I'm curious if anyone has thoughts as to where to start debugging the >> root cause. >> >> I use a simple saved search as my view into RT at work. Others using >> this queue also use a similar one. The query is: >> >> Queue = 'atcc-help' >> AND >> ( >> Status = 'new' >> OR Status = 'open' >> OR Status = 'stalled' >> ) >> AND ( >> Owner = 'Nobody' >> OR Owner = 'jblaine at our.org' >> ) >> >> The display settings for the search have "Rows: Unlimited" >> >> It results in a daily list of 70-120 tickets. >> >> We are seeing tickets appear in this list, where they have never >> appeared in the list before, after some period of being in the queue. In >> most cases, the mystery ticket has a "Created" date of more than a few >> weeks ago. The most recent case was 5 months. That is, a ticket with >> "Created" of around 5 months ago, and in "new" status, showed up in the >> results of the search above where it never had shown up before. >> >> As you can imagine, this is terrible for customer service. Luckily it >> seems pretty rare. I would estimate that we see this happen ~5 times per >> year, and then have to start the very awkward conversation about how the >> ticket "slipped through our cracks". >> >> Thoughts very welcome. >> >> Jeff >> --------- >> 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 > -- Jeff Blaine kickflop.net From ktm at rice.edu Thu Oct 27 15:47:04 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Thu, 27 Oct 2016 14:47:04 -0500 Subject: [rt-users] "Hidden" tickets suddenly appear In-Reply-To: <32230609-c48d-968d-6a73-45f9dbac67bd@kickflop.net> References: <752e5b1a-61eb-8a4a-a5a5-11bbdc911254@kickflop.net> <5d2fbba4a86e048d1d5ddc19ff180d08@mail.greenhills-it.co.uk> <32230609-c48d-968d-6a73-45f9dbac67bd@kickflop.net> Message-ID: <20161027194704.GK4733@aart.rice.edu> On Thu, Oct 27, 2016 at 03:21:51PM -0400, Jeff Blaine wrote: > On 10/26/2016 4:27 AM, Martin Wheldon wrote: > > Hi Jeff, > > > > If you examine the ticket history of the problem ticket it should tell > > you what happened > > for it to be set back to the "new" status. > > > > Is it being reopened by a reply to a email from the pervious ticket > > corespondance perhaps?? > > Martin, > > Right, that's where I first looked. There are zero transactions past the > initial creation via email. Nothing has been done to the ticket. > > Jeff Hi Jeff, You need to find out what is preventing the ticket from showing up in your query. One of your AND conditions may not be met so the ticket does not show up. Are you saving your Email that is creating the missed tickets? You could try submitting a similar Email to see if it has the same visibility problem. Also, do you have any customizations? Sometimes a change can have unusual ramifications down the line. Good luck, Ken From joel.bergmark at t3.se Thu Oct 27 15:52:40 2016 From: joel.bergmark at t3.se (Joel Bergmark) Date: Thu, 27 Oct 2016 19:52:40 +0000 Subject: [rt-users] Extension QueChangeonUpdate In-Reply-To: References: Message-ID: I have updated the wiki after testing the script on a Ubuntu-server, it still work! Also updated the wiki link to an old zip-file found in the archive. Everything ok :-) Regards Fr?n: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] F?r Joel Bergmark Skickat: den 27 oktober 2016 12:32 Till: rt-users at lists.bestpractical.com ?mne: [rt-users] Extension QueChangeonUpdate Hi all, Have anyone running RT 4.4 dared to use this extension? If so does it work with the installation script on RT 4.4.X? Looks like last updated at 2014. https://rt-wiki.bestpractical.com/wiki/Extension_-_Queue_Change_On_Update Or perhaps someone has a way to achieve the same with different means? :) Regards, Joel -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronald.yacketta at gmail.com Thu Oct 27 16:38:29 2016 From: ronald.yacketta at gmail.com (Ron Yacketta) Date: Thu, 27 Oct 2016 13:38:29 -0700 Subject: [rt-users] Group Rights Message-ID: All, Are group rights Additive? We have a Group that contains other groups with certain granted rights, we would like to give one of the included groups the ability to mange users. Will RT grant all the rights allowed in the Containing group as well as those assigned directly to the group? Regards, Ron Yacketta -------------- next part -------------- An HTML attachment was scrubbed... URL: From reza.toronto at gmail.com Thu Oct 27 19:02:48 2016 From: reza.toronto at gmail.com (Reza) Date: Thu, 27 Oct 2016 19:02:48 -0400 Subject: [rt-users] Group Rights In-Reply-To: References: Message-ID: Greetings Ron: I'm relatively new with RT but have progressed a lot and have already incorporated it into a live production environment. To my experience, the scenario of "Group Additives", as you put it, or assigning a "group" within a "group", is not necessarily the best business practice. I like to keep things well organized and have separate groups for different unique permissions. In theory your concept may work, but not advisable in my opinion, coming from a security perspective, in the name of keep things organized and secure. Cheers! Reza. Ron Yacketta wrote on 10/27/2016 4:38 PM: > All, > > Are group rights Additive? We have a Group that contains other groups > with certain granted rights, we would like to give one of the included > groups the ability to mange users. > > Will RT grant all the rights allowed in the Containing group as well > as those assigned directly to the group? > > > > Regards, > > Ron Yacketta > > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Los Angeles - Q1 2017 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Brian.Dunbar at von.ca Fri Oct 28 09:38:22 2016 From: Brian.Dunbar at von.ca (Dunbar, Brian) Date: Fri, 28 Oct 2016 13:38:22 +0000 Subject: [rt-users] CommandByMail config Message-ID: <1B0952CE40023A48AE928B0BBBC4AD40146B3AA0@VONDC335.vonnat1.von.ca> Hello All, I am trying to enable CommandByMail I installed the plugin and patch Added these two lines to my RT_SiteConfig.pm Plugin('RT::Extension::CommandByMail'); Set(@MailPlugins, qw(Auth::MailFrom Action::CommandByMail)); When I send an email with Queue: Nameofqueue Or Status: resolved It does not change any status info in RT I am using RT 4.4.0 I did bounce the apache Anyone with ideas? From jeffrey.pilant at bayer.com Fri Oct 28 11:10:37 2016 From: jeffrey.pilant at bayer.com (Jeffrey Pilant) Date: Fri, 28 Oct 2016 15:10:37 +0000 Subject: [rt-users] Randomizing / Masking Ticket Numbers / or Intelligently concatenating multiple numbers as ticket number. In-Reply-To: <93891e50-676c-dbd6-69d9-cf1bc8763668@gmail.com> References: <6315106ce4934746918a8bc21df596ac@MOXDEA.na.bayer.cnb> <93891e50-676c-dbd6-69d9-cf1bc8763668@gmail.com> Message-ID: Reza writes: >Thinking out of the box, a Random Number is not necessary if we can mask >it from email responses. In my specific case, I do not want non-staff >to access RT. Only support agents. > >Is some sort of ID number absolutely necessary in the subject field and >can this be removed? I guess a more technical question is how RT tracks >the email thread? Is it through the headers, or a basic primitive >Subject field comparison ? > >Then again... I'm thinking... a ticket number is so much easier if its >relayed to support agents by caller if they decide to simply call for >support. If you set up RT to only let privileged users add content, then even of non-staff see the numbers and email address, they will get bounced messages if they try to use it. As far as I know, the ticket number is required in the subject line. However, if you modify the mail reader and sender to encrypt that number, you could make it harder to tell what it is. Your use case mentioned confidentiality as a need compromised by ascending numbers. I am not sure how that can occur. Can you explain in more detail? Alex Hall writes: >To my knowledge, yes, mail is routed through use of the subject line. >When you create a queue, you give it a tag that is used in email subjects, >and that is combined with the ticket ID to form the basis for how RT knows >which queue/ticket a given message goes to. My understanding is that the subject holds the hostname and the ticket id. No queue name at all. If you manage to direct it to a queue, it will redirect to the queue the ticket is in instead, if it is the wrong queue. Jeff Voskamp writes: >The increasing ticket number is baked into the Ticket table definition: >`id` int(11) NOT NULL AUTO_INCREMENT, > >There's probably bits of code that assume this works this way. Actually, there is not. If you create a ticket number in the DB that skips a bunch of numbers, it will happily ignore all those skipped entries. This is actually a good thing as it can be used to merge other data bases of tickets into the system without screwing up the main system beyond jumping the sequence number. /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. ________________________________________________________________________ From lstewart at internap.com Fri Oct 28 12:30:02 2016 From: lstewart at internap.com (Landon Stewart) Date: Fri, 28 Oct 2016 16:30:02 +0000 Subject: [rt-users] CommandByMail config In-Reply-To: <1B0952CE40023A48AE928B0BBBC4AD40146B3AA0@VONDC335.vonnat1.von.ca> References: <1B0952CE40023A48AE928B0BBBC4AD40146B3AA0@VONDC335.vonnat1.von.ca> Message-ID: Is the command you are sending on the very first line of the message? Did you really send an email with both of those commands with the word Or between them or was that two examples? Is there anything in the log (ie. /opt/rt4/var/log/rt.log) when the email correspondence is being dealt with? If you restarted apache did you clear the mason cache as well? On Oct 28, 2016, at 6:38 AM, Dunbar, Brian > wrote: Hello All, I am trying to enable CommandByMail I installed the plugin and patch Added these two lines to my RT_SiteConfig.pm Plugin('RT::Extension::CommandByMail'); Set(@MailPlugins, qw(Auth::MailFrom Action::CommandByMail)); When I send an email with Queue: Nameofqueue Or Status: resolved It does not change any status info in RT I am using RT 4.4.0 I did bounce the apache Anyone with ideas? --------- RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - Q1 2017 -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Brian.Dunbar at von.ca Fri Oct 28 12:57:45 2016 From: Brian.Dunbar at von.ca (Dunbar, Brian) Date: Fri, 28 Oct 2016 16:57:45 +0000 Subject: [rt-users] CommandByMail config In-Reply-To: References: <1B0952CE40023A48AE928B0BBBC4AD40146B3AA0@VONDC335.vonnat1.von.ca> Message-ID: <1B0952CE40023A48AE928B0BBBC4AD40146B403E@VONDC335.vonnat1.von.ca> Hello Landon, Yes it is the first line. Of the message and I did not use or I will check the log to see. I am not familiar with mason cache but will google it to see how. Thank you for the reply/info. From: Landon Stewart [mailto:lstewart at internap.com] Sent: Friday, October 28, 2016 12:30 PM To: Dunbar, Brian Cc: rt-users Subject: Re: [rt-users] CommandByMail config Is the command you are sending on the very first line of the message? Did you really send an email with both of those commands with the word Or between them or was that two examples? Is there anything in the log (ie. /opt/rt4/var/log/rt.log) when the email correspondence is being dealt with? If you restarted apache did you clear the mason cache as well? On Oct 28, 2016, at 6:38 AM, Dunbar, Brian > wrote: Hello All, I am trying to enable CommandByMail I installed the plugin and patch Added these two lines to my RT_SiteConfig.pm Plugin('RT::Extension::CommandByMail'); Set(@MailPlugins, qw(Auth::MailFrom Action::CommandByMail)); When I send an email with Queue: Nameofqueue Or Status: resolved It does not change any status info in RT I am using RT 4.4.0 I did bounce the apache Anyone with ideas? --------- RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - Q1 2017 -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Fri Oct 28 14:58:47 2016 From: ahall at autodist.com (Alex Hall) Date: Fri, 28 Oct 2016 14:58:47 -0400 Subject: [rt-users] custom validation on custom fields? Message-ID: Hi all, I've looked through the wiki and the docs, plus on Google, but can't find anything about customizing validation. We have two custom fields which may be empty or not, but if they have a value, it has to be of the right format. Both are single-line text fields. How would I set up RT so that I can apply a regular expression, or some other kind of formatting, to these fields? Thanks in advance. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffrey.pilant at bayer.com Fri Oct 28 15:41:48 2016 From: jeffrey.pilant at bayer.com (Jeffrey Pilant) Date: Fri, 28 Oct 2016 19:41:48 +0000 Subject: [rt-users] Group Rights Message-ID: <16eff7960a154be98923236fa6c51a38@MOXDEA.na.bayer.cnb> Ron Yacketta writes: >Are group rights Additive? We have a Group that contains other groups with >certain granted rights, we would like to give one of the included groups >the ability to mange users. > >Will RT grant all the rights allowed in the Containing group as well as >those assigned directly to the group? >From my brief inspection of code a while back, this is how I say it organized: 1) Every created user gets linked to a group newly created just for them. 2) Groups can only hold other groups. 3) This means that there does not need to be special code to determine if a group member is a group or a user. 4) Rights are additive. 5) Calculate as follows: A) Find the linked group of a member. B) Set rights to the rights of that group. C) For each group that this group is a member, do the following: i) Add the rights of this enclosing group ii) Recourse for all groups enclosing the enclosing group 6) Resulting rights is what that user has. 7) Perform similar calculations for user/queue or other combination >From other tidbits left by the RT folks, making code to mask off rights is not something they want to do, as it makes things much more complicated. /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. ________________________________________________________________________ From mzagrabe at d.umn.edu Fri Oct 28 16:02:23 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Fri, 28 Oct 2016 15:02:23 -0500 Subject: [rt-users] custom validation on custom fields? In-Reply-To: References: Message-ID: Hey Alex, On Fri, Oct 28, 2016 at 1:58 PM, Alex Hall wrote: > Hi all, > I've looked through the wiki and the docs, plus on Google, but can't find > anything about customizing validation. We have two custom fields which may > be empty or not, but if they have a value, it has to be of the right format. > Both are single-line text fields. How would I set up RT so that I can apply > a regular expression, or some other kind of formatting, to these fields? It should be right there in the CF admin page. There is even a drop down with some prepopulated options. The (?# ) is a way to put a "human" name with the validation rule. For instance: (?#State Abbreviation)^[A-Z][A-Z]$ -m From ahall at autodist.com Fri Oct 28 16:30:20 2016 From: ahall at autodist.com (Alex Hall) Date: Fri, 28 Oct 2016 16:30:20 -0400 Subject: [rt-users] custom validation on custom fields? In-Reply-To: References: Message-ID: Indeed there is, and I honestly don't know how I missed it. All I can say is I must have tabbed right past it, so the screen reader never spoke the field's name. I noticed the pound sign being used a lot. Is the rule you mentioned in any way tied to the field, or is it just an internal note so you know what you were doing if you go back later? On a related note, is there a way to give a more readable message after the field than input must match [complex regex that most users won't understand] We use the hint, but can we clean up the text stating what the input must match, or hide it entirely unless the text doesn't match? The hints already describe the format we need in a more readable way than a regex. Thanks. On Fri, Oct 28, 2016 at 4:02 PM, Matt Zagrabelny wrote: > Hey Alex, > > On Fri, Oct 28, 2016 at 1:58 PM, Alex Hall wrote: > > Hi all, > > I've looked through the wiki and the docs, plus on Google, but can't find > > anything about customizing validation. We have two custom fields which > may > > be empty or not, but if they have a value, it has to be of the right > format. > > Both are single-line text fields. How would I set up RT so that I can > apply > > a regular expression, or some other kind of formatting, to these fields? > > It should be right there in the CF admin page. > > There is even a drop down with some prepopulated options. > > The (?# ) is a way to put a "human" name with the validation rule. For > instance: > > (?#State Abbreviation)^[A-Z][A-Z]$ > > -m > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Fri Oct 28 17:05:01 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Fri, 28 Oct 2016 16:05:01 -0500 Subject: [rt-users] custom validation on custom fields? In-Reply-To: References: Message-ID: On Fri, Oct 28, 2016 at 3:30 PM, Alex Hall wrote: > Indeed there is, and I honestly don't know how I missed it. All I can say is > I must have tabbed right past it, so the screen reader never spoke the > field's name. > > I noticed the pound sign being used a lot. Is the rule you mentioned in any > way tied to the field, or is it just an internal note so you know what you > were doing if you go back later? Hold.... On a related note, is there a way to give a > more readable message after the field than > input must match [complex regex that most users won't understand] This. I believe the validation comment is passed back to the end-user when validation fails: "Custom Field State must match State Abbreviation." or something on that order. for (?#State Abbreviation)^[A-Z][A-Z]$ FWIW, I am not sure if I've ever used the validation field of a CF. I did have a conversation with Best Practical about it once, though. -m From waveright at gmail.com Fri Oct 28 19:14:31 2016 From: waveright at gmail.com (Todd Wade) Date: Fri, 28 Oct 2016 19:14:31 -0400 Subject: [rt-users] applying script to single queue In-Reply-To: References: Message-ID: On 10/26/16 12:51 PM, Alex Hall wrote: > After everything I've learned about RT, I feel like I should know this > without even having to think about it, but I don't. How do I apply a > script to a single queue, so I can take a seldom-used queue and test out > new templates? > > I've gone to the queue, then scripts, but when I click a script to > modify it, I am told it applies globally. When I click the link to > change that, I just get a table of globally applied scripts, a table of > unused scripts, and that's all. How do I make a script--or a clone of a > script, if I have to do it that way--apply to just one queue? Thanks in > advance. Navigate to 'Admin -> Scrips'. Select the scrip, and on the 'Edit Scrip' screen select 'Applies to' and check the 'check this box to remove this scrip from all objects and be able to choose specific objects.' checkbox and click submit. Notice that the header of the table that lists all the queues is 'Unselected objects'. At that point the scrip is disabled, and the UI is listing the queues to allow you to choose which ones you want it to apply to. Check the checkbox in the row of the queue you want the scrip to apply to and click Submit. Now there are two tables of queues, one labled 'Selected objects' and one labeled 'Unselected objects'. Now the scrip will only apply to the queues listed under 'Selected objects'. Note that because the scrip is no longer globally applied, you can't get to it from the 'Admin -> Scrips' screen. You have to navigate to 'Admin -> Global -> Scrips' to get back to the scrip. Regards, From reza.toronto at gmail.com Fri Oct 28 22:43:55 2016 From: reza.toronto at gmail.com (Reza) Date: Fri, 28 Oct 2016 22:43:55 -0400 Subject: [rt-users] Queue List - Additional columns Customization Message-ID: <052724d3-4139-1b5f-bb1e-a95d61e5be9b@gmail.com> Greetings Folks: I've exhausted documentations and readings and I need some help on this item as I feel I've hit a road block. I have "Queue List" which displays 4 columns: Queue, New, Open, Stalled. I would like to add "Resolved" in this. In my case it is important to see the total resolved versus having to go to the search field. If anyone could guide me to the proper direction, it would be appreciated. Thank you, Reza. From piet at espresso-gridpoint.com Sun Oct 30 19:07:56 2016 From: piet at espresso-gridpoint.com (Piet Honkoop) Date: Mon, 31 Oct 2016 00:07:56 +0100 Subject: [rt-users] display recurring tickets info Message-ID: Hi all, What is the way to display the recurrence fields of a recurring ticket? I want to display those fields in a ticket overview. Thanks, Piet -- Dit bericht is gescanned op virussen en andere gevaarlijke inhoud door MailScanner en lijkt schoon te zijn. From kevin.long at haloprivacy.com Sun Oct 30 20:10:54 2016 From: kevin.long at haloprivacy.com (Kevin Long) Date: Sun, 30 Oct 2016 17:10:54 -0700 Subject: [rt-users] Migrating tickets from 4.0.24 to 4.4.1 (a new instance) In-Reply-To: References: Message-ID: <994CF740-2568-4677-8EFA-BCF72E5DB84F@haloprivacy.com> A few years ago I installed RT from the debian package repo, is it version 4.0.24 I believe. I have around ~900 historical tickets in there. It seems more trouble than it is worth to try to ?upgrade? this instance directly, because of the ways in which the debian package installs itself. So I have set up a new, so far unused instance of RT 4.4.1 , also on debian (Jessie) but installed from source code , as it seems this may provide a better upgrade path in the future should I want to update again. I would like to import the ticket history from the old instance to the new one .. is there a recommended way for doing this, considering the versions are quite different? A further piece of info, the old system did not use LDAP but the new one IS configured for LDAP auth for privileged users. Im not really concerned with preserving the privileged users, Queues, or permissions .. theres only a few people who have used the system as a privileged user and I can sort that again , and probably should anyways. Thank you for any help, Kevin Long > On Oct 30, 2016, at 4:07 PM, Piet Honkoop wrote: > > Hi all, > > What is the way to display the recurrence fields of a recurring ticket? > I want to display those fields in a ticket overview. > > Thanks, > Piet > > -- > Dit bericht is gescanned op virussen en andere gevaarlijke > inhoud door MailScanner en lijkt schoon te zijn. > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Los Angeles - Q1 2017 From ahall at autodist.com Sun Oct 30 20:38:56 2016 From: ahall at autodist.com (Alex Hall) Date: Sun, 30 Oct 2016 20:38:56 -0400 Subject: [rt-users] Migrating tickets from 4.0.24 to 4.4.1 (a new instance) In-Reply-To: <994CF740-2568-4677-8EFA-BCF72E5DB84F@haloprivacy.com> References: <994CF740-2568-4677-8EFA-BCF72E5DB84F@haloprivacy.com> Message-ID: <0DE46A84-E948-4D1E-B83F-02B64E36B6D0@autodist.com> I'll let more experienced people give all the details and warnings, but I did a similar thing going from 4.2.8 (the Debian package) to 4.4.1. Essentially, I exported my 4.2.8 database, re-imported it into a new database, pointed 4.4.1 at it with the ./configure command, checked my privileges in MySQL, and ran the db upgrade command (make upgrade-database, I think). I know there's a page that details this procedure, but I'm on my phone and can't find it just now. But what you're looking to do should be quite possible. Sent from my iPhone > On Oct 30, 2016, at 20:10, Kevin Long wrote: > > > A few years ago I installed RT from the debian package repo, is it version 4.0.24 I believe. I have around ~900 historical tickets in there. > > It seems more trouble than it is worth to try to ?upgrade? this instance directly, because of the ways in which the debian package installs itself. So I have set up a new, so far unused instance of RT 4.4.1 , also on debian (Jessie) but installed from source code , as it seems this may provide a better upgrade path in the future should I want to update again. > > I would like to import the ticket history from the old instance to the new one .. is there a recommended way for doing this, considering the versions are quite different? > > A further piece of info, the old system did not use LDAP but the new one IS configured for LDAP auth for privileged users. Im not really concerned with preserving the privileged users, Queues, or permissions .. theres only a few people who have used the system as a privileged user and I can sort that again , and probably should anyways. > > Thank you for any help, > > Kevin Long > > > > >> On Oct 30, 2016, at 4:07 PM, Piet Honkoop wrote: >> >> Hi all, >> >> What is the way to display the recurrence fields of a recurring ticket? >> I want to display those fields in a ticket overview. >> >> Thanks, >> Piet >> >> -- >> Dit bericht is gescanned op virussen en andere gevaarlijke >> inhoud door MailScanner en lijkt schoon te zijn. >> >> --------- >> RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training >> * Los Angeles - Q1 2017 > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Los Angeles - Q1 2017 From chaniadimitris at yahoo.gr Mon Oct 31 08:40:13 2016 From: chaniadimitris at yahoo.gr (Dimitris Maniadakis) Date: Mon, 31 Oct 2016 12:40:13 +0000 (UTC) Subject: AllowSorting not working properly References: <87930566.1125098.1477917613413.ref@mail.yahoo.com> Message-ID: <87930566.1125098.1477917613413@mail.yahoo.com> Hello, I would like to allow the user in the SelfService to be able to sort of the Asset List. (RT 4.4.1rc) In the file /html/User/Elements/AssetList I modified "AllowSorting" value to "1", but sorting does not work properly. I believe this behavior is a bug. What do you think? p.s. Of course I have cleared the Mason Cache and I have set $DevelMode to "1". Regards, Dimitris From ahall at autodist.com Mon Oct 31 09:11:33 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 31 Oct 2016 09:11:33 -0400 Subject: [rt-users] What does attaching a message do? Message-ID: Hi all, In most RT templates I've looked at, the first command is RT-Attach-Message:yes. I'm just wondering what this does? I often see what appears to be a blank transaction in ticket histories; is that related? Is attaching the message important, or can we do without it? Basically, what does it do and should we keep it in all templates, including new ones? Thanks. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 31 09:40:15 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 31 Oct 2016 09:40:15 -0400 Subject: [rt-users] Gmail website replies to tickets, Outlook creates new ones Message-ID: Hey all, I made a custom template with mailto: links in it, that comes from noreply at example.com. The mailto: links populate the to: and subject: fields of the new message as they should, and when the new email is sent, a comment appears on the ticket. At least, if the user does this from the Gmail website (our domain mail is handled by Gmail). If the user is on Outlook, however, the "reply" gets turned into a new ticket. I can't see what the difference is, since the mailto: link is the same. We're on Outlook 2007, at least the few stations I've asked so far use 2007. Has anyone ever seen this before? Any troubleshooting suggestions? Thank you. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at nileshgr.com Mon Oct 31 09:49:38 2016 From: me at nileshgr.com (Nilesh) Date: Mon, 31 Oct 2016 19:19:38 +0530 Subject: [rt-users] What does attaching a message do? In-Reply-To: References: Message-ID: On 31-Oct-2016 6:41 PM, "Alex Hall" wrote: > > Hi all, > In most RT templates I've looked at, the first command is RT-Attach-Message:yes. I'm just wondering what this does? I often see what appears to be a blank transaction in ticket histories; is that related? Is attaching the message important, or can we do without it? Basically, what does it do and should we keep it in all templates, including new ones? Thanks. > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Los Angeles - Q1 2017 Message attachment means the content of the transaction is attached in the mail you get. -- Nilesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at nileshgr.com Mon Oct 31 09:52:32 2016 From: me at nileshgr.com (Nilesh) Date: Mon, 31 Oct 2016 19:22:32 +0530 Subject: [rt-users] Gmail website replies to tickets, Outlook creates new ones In-Reply-To: References: Message-ID: On 31-Oct-2016 7:10 PM, "Alex Hall" wrote: > > Hey all, > I made a custom template with mailto: links in it, that comes from noreply at example.com. The mailto: links populate the to: and subject: fields of the new message as they should, and when the new email is sent, a comment appears on the ticket. At least, if the user does this from the Gmail website (our domain mail is handled by Gmail). If the user is on Outlook, however, the "reply" gets turned into a new ticket. I can't see what the difference is, since the mailto: link is the same. We're on Outlook 2007, at least the few stations I've asked so far use 2007. Has anyone ever seen this before? Any troubleshooting suggestions? Thank you. > > -- > Alex Hall > Automatic Distributors, IT department > ahall at autodist.com > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Los Angeles - Q1 2017 Have you verified that the subject tag isn't getting stripped? There are two ways to identify a reply - one via the subject and other via in-reply-to header which most clients insert. In-reply-to isn't parsed by RT, so a custom code is needed for that. I got it from someone on this list and have implemented as a local customization. -- Nilesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 31 10:04:58 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 31 Oct 2016 10:04:58 -0400 Subject: [rt-users] Gmail website replies to tickets, Outlook creates new ones In-Reply-To: References: Message-ID: <9C410EBC-567E-4F0D-966A-F73FFC35B78B@autodist.com> I looked more closely at the difference. Outlook is stripping off the "Re: " part of the message subject in the reply, whereas Gmail leaves it on. That's the only difference I can find, but it must matter. I guess this is more an Outlook question now, unless there's something I can change in RT to make it not care about the Re: part of a reply? Sent from my iPhone > On Oct 31, 2016, at 09:52, Nilesh wrote: > > On 31-Oct-2016 7:10 PM, "Alex Hall" wrote: > > > > Hey all, > > I made a custom template with mailto: links in it, that comes from noreply at example.com. The mailto: links populate the to: and subject: fields of the new message as they should, and when the new email is sent, a comment appears on the ticket. At least, if the user does this from the Gmail website (our domain mail is handled by Gmail). If the user is on Outlook, however, the "reply" gets turned into a new ticket. I can't see what the difference is, since the mailto: link is the same. We're on Outlook 2007, at least the few stations I've asked so far use 2007. Has anyone ever seen this before? Any troubleshooting suggestions? Thank you. > > > > -- > > Alex Hall > > Automatic Distributors, IT department > > ahall at autodist.com > > > > --------- > > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > > * Los Angeles - Q1 2017 > > Have you verified that the subject tag isn't getting stripped? > > There are two ways to identify a reply - one via the subject and other via in-reply-to header which most clients insert. In-reply-to isn't parsed by RT, so a custom code is needed for that. > > I got it from someone on this list and have implemented as a local customization. > > -- > Nilesh > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Los Angeles - Q1 2017 -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at nileshgr.com Mon Oct 31 10:06:34 2016 From: me at nileshgr.com (Nilesh) Date: Mon, 31 Oct 2016 19:36:34 +0530 Subject: [rt-users] Gmail website replies to tickets, Outlook creates new ones In-Reply-To: <9C410EBC-567E-4F0D-966A-F73FFC35B78B@autodist.com> References: <9C410EBC-567E-4F0D-966A-F73FFC35B78B@autodist.com> Message-ID: I don't think Re matters. As long as subject tag is intact it should get parsed correctly. -- Nilesh On 31-Oct-2016 7:35 PM, "Alex Hall" wrote: > I looked more closely at the difference. Outlook is stripping off the "Re: > " part of the message subject in the reply, whereas Gmail leaves it on. > That's the only difference I can find, but it must matter. I guess this is > more an Outlook question now, unless there's something I can change in RT > to make it not care about the Re: part of a reply? > > Sent from my iPhone > > On Oct 31, 2016, at 09:52, Nilesh wrote: > > On 31-Oct-2016 7:10 PM, "Alex Hall" wrote: > > > > Hey all, > > I made a custom template with mailto: links in it, that comes from > noreply at example.com. The mailto: links populate the to: and subject: > fields of the new message as they should, and when the new email is sent, a > comment appears on the ticket. At least, if the user does this from the > Gmail website (our domain mail is handled by Gmail). If the user is on > Outlook, however, the "reply" gets turned into a new ticket. I can't see > what the difference is, since the mailto: link is the same. We're on > Outlook 2007, at least the few stations I've asked so far use 2007. Has > anyone ever seen this before? Any troubleshooting suggestions? Thank you. > > > > -- > > Alex Hall > > Automatic Distributors, IT department > > ahall at autodist.com > > > > --------- > > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > > * Los Angeles - Q1 2017 > > Have you verified that the subject tag isn't getting stripped? > > There are two ways to identify a reply - one via the subject and other via > in-reply-to header which most clients insert. In-reply-to isn't parsed by > RT, so a custom code is needed for that. > > I got it from someone on this list and have implemented as a local > customization. > > -- > Nilesh > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Los Angeles - Q1 2017 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at nileshgr.com Mon Oct 31 10:16:01 2016 From: me at nileshgr.com (Nilesh) Date: Mon, 31 Oct 2016 19:46:01 +0530 Subject: [rt-users] Gmail website replies to tickets, Outlook creates new ones In-Reply-To: References: <9C410EBC-567E-4F0D-966A-F73FFC35B78B@autodist.com> Message-ID: <1477923361.9786.3.camel@nileshgr.com> You should inspect the headers in both cases. If they contain in-reply-to, you can use that to solve the problem. My problem originally was people in Cc replying to a mail sent to RT (and by default, people in CC do not get auto reply email). This was successfully solved by the in-reply-to patch.?https://gist.github.com/nileshgr/637cdacd1aa7710343aed e20cabb66a6 Just save that file in local/lib/RT/Interface/Email_Local.pm and restart RT. -- Nilesh On Mon, 2016-10-31 at 19:36 +0530, Nilesh wrote: > I don't think Re matters. As long as subject tag is intact it should get > parsed correctly. > -- > Nilesh > > On 31-Oct-2016 7:35 PM, "Alex Hall" wrote: > > I looked more closely at the difference. Outlook is stripping off the "Re: " > > part of the message subject in the reply, whereas Gmail leaves it on. That's > > the only difference I can find, but it must matter. I guess this is more an > > Outlook question now, unless there's something I can change in RT to make it > > not care about the Re: part of a reply? > > > > Sent from my iPhone > > > > On Oct 31, 2016, at 09:52, Nilesh wrote: > > > > > On 31-Oct-2016 7:10 PM, "Alex Hall" wrote: > > > > > > > > Hey all, > > > > I made a custom template with mailto: links in it, that comes from norep > > > ly at example.com. The mailto: links populate the to: and subject: fields of > > > the new message as they should, and when the new email is sent, a comment > > > appears on the ticket. At least, if the user does this from the Gmail > > > website (our domain mail is handled by Gmail). If the user is on Outlook, > > > however, the "reply" gets turned into a new ticket. I can't see what the > > > difference is, since the mailto: link is the same. We're on Outlook 2007, > > > at least the few stations I've asked so far use 2007. Has anyone ever seen > > > this before? Any troubleshooting suggestions? Thank you. > > > > > > > > --? > > > > Alex Hall > > > > Automatic Distributors, IT department > > > > ahall at autodist.com > > > > > > > > --------- > > > > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestp > > > ractical.com/training > > > > * Los Angeles - Q1 2017 > > > Have you verified that the subject tag isn't getting stripped? > > > There are two ways to identify a reply - one via the subject and other via > > > in-reply-to header which most clients insert. In-reply-to isn't parsed by > > > RT, so a custom code is needed for that. > > > I got it from someone on this list and have implemented as a local > > > customization. > > > -- > > > Nilesh > > > > --------- > > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpract > > ical.com/training > > * Los Angeles - Q1 2017 From me at nileshgr.com Mon Oct 31 10:20:02 2016 From: me at nileshgr.com (Nilesh) Date: Mon, 31 Oct 2016 19:50:02 +0530 Subject: [rt-users] Gmail website replies to tickets, Outlook creates new ones In-Reply-To: <1477923361.9786.3.camel@nileshgr.com> References: <9C410EBC-567E-4F0D-966A-F73FFC35B78B@autodist.com> <1477923361.9786.3.camel@nileshgr.com> Message-ID: Looks like I typed something wrong and that link leads to a 404. The correct link is: https://gist.github.com/nileshgr/637cdacd1aa7710343aede20cabb66a6 On Mon, Oct 31, 2016 at 7:46 PM, Nilesh wrote: > You should inspect the headers in both cases. If they contain in-reply-to, > you > can use that to solve the problem. > > My problem originally was people in Cc replying to a mail sent to RT (and > by > default, people in CC do not get auto reply email). This was successfully > solved > by the in-reply-to patch. https://gist.github.com/nileshgr/ > 637cdacd1aa7710343aed > e20cabb66a6 > > Just save that file in local/lib/RT/Interface/Email_Local.pm and restart > RT. > > -- > Nilesh > > On Mon, 2016-10-31 at 19:36 +0530, Nilesh wrote: > > I don't think Re matters. As long as subject tag is intact it should get > > parsed correctly. > > -- > > Nilesh > > > > On 31-Oct-2016 7:35 PM, "Alex Hall" wrote: > > > I looked more closely at the difference. Outlook is stripping off the > "Re: " > > > part of the message subject in the reply, whereas Gmail leaves it on. > That's > > > the only difference I can find, but it must matter. I guess this is > more an > > > Outlook question now, unless there's something I can change in RT to > make it > > > not care about the Re: part of a reply? > > > > > > Sent from my iPhone > > > > > > On Oct 31, 2016, at 09:52, Nilesh wrote: > > > > > > > On 31-Oct-2016 7:10 PM, "Alex Hall" wrote: > > > > > > > > > > Hey all, > > > > > I made a custom template with mailto: links in it, that comes > from norep > > > > ly at example.com. The mailto: links populate the to: and subject: > fields of > > > > the new message as they should, and when the new email is sent, a > comment > > > > appears on the ticket. At least, if the user does this from the Gmail > > > > website (our domain mail is handled by Gmail). If the user is on > Outlook, > > > > however, the "reply" gets turned into a new ticket. I can't see what > the > > > > difference is, since the mailto: link is the same. We're on Outlook > 2007, > > > > at least the few stations I've asked so far use 2007. Has anyone > ever seen > > > > this before? Any troubleshooting suggestions? Thank you. > > > > > > > > > > -- > > > > > Alex Hall > > > > > Automatic Distributors, IT department > > > > > ahall at autodist.com > > > > > > > > > > --------- > > > > > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestp > > > > ractical.com/training > > > > > * Los Angeles - Q1 2017 > > > > Have you verified that the subject tag isn't getting stripped? > > > > There are two ways to identify a reply - one via the subject and > other via > > > > in-reply-to header which most clients insert. In-reply-to isn't > parsed by > > > > RT, so a custom code is needed for that. > > > > I got it from someone on this list and have implemented as a local > > > > customization. > > > > -- > > > > Nilesh > > > > > > --------- > > > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpract > > > ical.com/training > > > * Los Angeles - Q1 2017 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahall at autodist.com Mon Oct 31 10:22:12 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 31 Oct 2016 10:22:12 -0400 Subject: [rt-users] Gmail website replies to tickets, Outlook creates new ones In-Reply-To: <1477923361.9786.3.camel@nileshgr.com> References: <9C410EBC-567E-4F0D-966A-F73FFC35B78B@autodist.com> <1477923361.9786.3.camel@nileshgr.com> Message-ID: You're right. After looking at what showed up on RT, not what was in the subject fields of the two clients, I have the problem. I think. It seems that Outlook is removing the space before the # (pound sign) in the subject tag. That is: Re: [Graphics #400] turns into Re: [Graphics#400] Looks like I get to play with the subject tag regex. Sent from my iPhone > On Oct 31, 2016, at 10:16, Nilesh wrote: > > You should inspect the headers in both cases. If they contain in-reply-to, you > can use that to solve the problem. > > My problem originally was people in Cc replying to a mail sent to RT (and by > default, people in CC do not get auto reply email). This was successfully solved > by the in-reply-to patch. https://gist.github.com/nileshgr/637cdacd1aa7710343aed > e20cabb66a6 > > Just save that file in local/lib/RT/Interface/Email_Local.pm and restart RT. > > -- > Nilesh > >> On Mon, 2016-10-31 at 19:36 +0530, Nilesh wrote: >> I don't think Re matters. As long as subject tag is intact it should get >> parsed correctly. >> -- >> Nilesh >> >>> On 31-Oct-2016 7:35 PM, "Alex Hall" wrote: >>> I looked more closely at the difference. Outlook is stripping off the "Re: " >>> part of the message subject in the reply, whereas Gmail leaves it on. That's >>> the only difference I can find, but it must matter. I guess this is more an >>> Outlook question now, unless there's something I can change in RT to make it >>> not care about the Re: part of a reply? >>> >>> Sent from my iPhone >>> >>>> On Oct 31, 2016, at 09:52, Nilesh wrote: >>>> >>>>> On 31-Oct-2016 7:10 PM, "Alex Hall" wrote: >>>>> >>>>> Hey all, >>>>> I made a custom template with mailto: links in it, that comes from norep >>>> ly at example.com. The mailto: links populate the to: and subject: fields of >>>> the new message as they should, and when the new email is sent, a comment >>>> appears on the ticket. At least, if the user does this from the Gmail >>>> website (our domain mail is handled by Gmail). If the user is on Outlook, >>>> however, the "reply" gets turned into a new ticket. I can't see what the >>>> difference is, since the mailto: link is the same. We're on Outlook 2007, >>>> at least the few stations I've asked so far use 2007. Has anyone ever seen >>>> this before? Any troubleshooting suggestions? Thank you. >>>>> >>>>> -- >>>>> Alex Hall >>>>> Automatic Distributors, IT department >>>>> ahall at autodist.com >>>>> >>>>> --------- >>>>> RT 4.4 and RTIR training sessions, and a new workshop day! https://bestp >>>> ractical.com/training >>>>> * Los Angeles - Q1 2017 >>>> Have you verified that the subject tag isn't getting stripped? >>>> There are two ways to identify a reply - one via the subject and other via >>>> in-reply-to header which most clients insert. In-reply-to isn't parsed by >>>> RT, so a custom code is needed for that. >>>> I got it from someone on this list and have implemented as a local >>>> customization. >>>> -- >>>> Nilesh >>> >>> --------- >>> RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpract >>> ical.com/training >>> * Los Angeles - Q1 2017 From ahall at autodist.com Mon Oct 31 12:09:33 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 31 Oct 2016 12:09:33 -0400 Subject: [rt-users] Overriding files in lib/RT? Message-ID: Hey list, How would I override /opt/rt4/lib/RT/Interface/Email.pm? I created /opt/rt4/local/lib/RT/Interface/Email.pm, but that doesn't seem to be working. After clearing the mason cache, then restarting the server, my new regex didn't work. I'll check that the change is correct, but all I did was change a plus sign to an asterisk to require zero or more spaces instead of one or more. It seems more likely that I didn't do something correctly in making my own copy of the file in question. I've done this for templates, but never for anything under the lib directory. -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mzagrabe at d.umn.edu Mon Oct 31 12:13:27 2016 From: mzagrabe at d.umn.edu (Matt Zagrabelny) Date: Mon, 31 Oct 2016 11:13:27 -0500 Subject: [rt-users] Overriding files in lib/RT? In-Reply-To: References: Message-ID: Hi Alex, On Mon, Oct 31, 2016 at 11:09 AM, Alex Hall wrote: > Hey list, > How would I override /opt/rt4/lib/RT/Interface/Email.pm? Overlays. https://docs.bestpractical.com/rt/4.4.1/RT/StyleGuide.html#EXTENDING-RT-CLASSES It looks like there is also an outdated wiki article: https://rt-wiki.bestpractical.com/wiki/ObjectModel -m From me at nileshgr.com Mon Oct 31 12:18:32 2016 From: me at nileshgr.com (Nilesh) Date: Mon, 31 Oct 2016 21:48:32 +0530 Subject: [rt-users] Overriding files in lib/RT? In-Reply-To: References: Message-ID: To extend you should either add code in Email_Local.pm or Email_Overlay.pm. If you name it as Email.pm then you have to copy all code from existing module and modify it. I'm not sure about differences between Overlay and Local but I think that difference is for OO vs adding some functionality. -- Nilesh On 31-Oct-2016 9:45 PM, "Matt Zagrabelny" wrote: > Hi Alex, > > On Mon, Oct 31, 2016 at 11:09 AM, Alex Hall wrote: > > Hey list, > > How would I override /opt/rt4/lib/RT/Interface/Email.pm? > > Overlays. > > https://docs.bestpractical.com/rt/4.4.1/RT/StyleGuide. > html#EXTENDING-RT-CLASSES > > It looks like there is also an outdated wiki article: > > https://rt-wiki.bestpractical.com/wiki/ObjectModel > > -m > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Los Angeles - Q1 2017 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Brian.Dunbar at von.ca Mon Oct 31 13:49:50 2016 From: Brian.Dunbar at von.ca (Dunbar, Brian) Date: Mon, 31 Oct 2016 17:49:50 +0000 Subject: [rt-users] Mason Cache clear Message-ID: <1B0952CE40023A48AE928B0BBBC4AD40146B757F@VONDC335.vonnat1.von.ca> I was installing RT-Extension-ActivityReports into RT 4.4.0 after the install I ran rm -rf /opt/rt4/var/mason_data/obj then service apache2 restart Apache restarted ok but RT will not load. I found this error in syslog but not sure what to fix. [40707] mkdir /opt/rt4/var/mason_data/obj/3407077840: Permission denied at /usr/share/perl5/HTML/Mason/Compiler/ToObject.pm line 115.#012#012Stack:#012 [/usr/share/perl/5.20/Carp.pm:166]#012 [/usr/share/perl/5.20/File/Path.pm:156]#012 [/usr/share/perl/5.20/File/Path.pm:133]#012 [/usr/share/perl/5.20/File/Path.pm:114]#012 [/usr/share/perl5/HTML/Mason/Compiler/ToObject.pm:115]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:440]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:776]#012 [/usr/share/perl5/HTML/Mason/Request.pm:259]#012 [/usr/share/perl5/HTML/Mason/Request.pm:215]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web/Request.pm:61]#012 [/usr/share/perl5/Class/Container.pm:275]#012 [/usr/share/perl5/Class/Container.pm:353]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:351]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:345]#012 [/usr/share/perl5/HTML/Mason/PSGIHandler.pm:59]#012 [/usr/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm:52]#012 [/usr/share/perl5/Plack/Util.pm:301]#012 [/usr/share/perl5/ Then I google clearing mason cache and it shows rm -Rf /usr/local/rt4/var/mason_data/obj/* Not usre if the asterisk at end makes difference I tried that after still no luck. Anyone see what is wrong and how to fix? Greatly appreciated. From ahall at autodist.com Mon Oct 31 13:55:55 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 31 Oct 2016 13:55:55 -0400 Subject: [rt-users] Mason Cache clear In-Reply-To: <1B0952CE40023A48AE928B0BBBC4AD40146B757F@VONDC335.vonnat1.von.ca> References: <1B0952CE40023A48AE928B0BBBC4AD40146B757F@VONDC335.vonnat1.von.ca> Message-ID: I'm a novice, but my guess is a permissions problem since the /obj directory no longer exists. You erased it with that first command, I think, and RT can't find/create it. Try re-creating it with mkdir, then restart Apache again. If that fails, check the permissions on the obj directory; the user under which RT runs should be able to control that folder. Again though, I'm a novice. On Mon, Oct 31, 2016 at 1:49 PM, Dunbar, Brian wrote: > I was installing RT-Extension-ActivityReports into RT 4.4.0 after the > install I ran > rm -rf /opt/rt4/var/mason_data/obj > then service apache2 restart > > Apache restarted ok but RT will not load. I found this error in syslog but > not sure what to fix. > [40707] mkdir /opt/rt4/var/mason_data/obj/3407077840: Permission denied > at /usr/share/perl5/HTML/Mason/Compiler/ToObject.pm line > 115.#012#012Stack:#012 > [/usr/share/perl/5.20/Carp.pm:166]#012 [/usr/share/perl/5.20/File/ > Path.pm:156]#012 > [/usr/share/perl/5.20/File/Path.pm:133]#012 > [/usr/share/perl/5.20/File/Path.pm:114]#012 > [/usr/share/perl5/HTML/Mason/Compiler/ToObject.pm:115]#012 > [/usr/share/perl5/HTML/Mason/Interp.pm:440]#012 > [/usr/share/perl5/HTML/Mason/Interp.pm:776]#012 > [/usr/share/perl5/HTML/Mason/Request.pm:259]#012 > [/usr/share/perl5/HTML/Mason/Request.pm:215]#012 > [/opt/rt4/sbin/../lib/RT/Interface/Web/Request.pm:61]#012 > [/usr/share/perl5/Class/Container.pm:275]#012 > [/usr/share/perl5/Class/Container.pm:353]#012 > [/usr/share/perl5/HTML/Mason/Interp.pm:351]#012 > [/usr/share/perl5/HTML/Mason/Interp.pm:345]#012 > [/usr/share/perl5/HTML/Mason/PSGIHandler.pm:59]#012 > [/usr/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm:52]#012 > [/usr/share/perl5/Plack/Util.pm:301]#012 [/usr/share/perl5/ > > Then I google clearing mason cache and it shows > rm -Rf /usr/local/rt4/var/mason_data/obj/* > Not usre if the asterisk at end makes difference I tried that after still > no luck. > > Anyone see what is wrong and how to fix? Greatly appreciated. > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Los Angeles - Q1 2017 > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lstewart at internap.com Mon Oct 31 14:01:53 2016 From: lstewart at internap.com (Landon Stewart) Date: Mon, 31 Oct 2016 18:01:53 +0000 Subject: [rt-users] Mason Cache clear In-Reply-To: <1B0952CE40023A48AE928B0BBBC4AD40146B757F@VONDC335.vonnat1.von.ca> References: <1B0952CE40023A48AE928B0BBBC4AD40146B757F@VONDC335.vonnat1.von.ca> Message-ID: <4DB235B1-9CBD-4B0F-BBF0-A3171586CA2F@internap.com> Hi Brian, Check what user apache2 runs as (probably www-data but depends on what distro you use). Then make sure that user can write to the /opt/rt4/var/mason_data/obj directory (chown -R www-data:www-data /opt/rt4/var/mason_data/obj). To make sure apache2 runs as www-data (or to find out what it does run as) check the output of "ps aux | grep apache2". There will be one process running as root but the others will run as a different user; that is the one you want. On Oct 31, 2016, at 10:49 AM, Dunbar, Brian > wrote: I was installing RT-Extension-ActivityReports into RT 4.4.0 after the install I ran rm -rf /opt/rt4/var/mason_data/obj then service apache2 restart Apache restarted ok but RT will not load. I found this error in syslog but not sure what to fix. [40707] mkdir /opt/rt4/var/mason_data/obj/3407077840: Permission denied at /usr/share/perl5/HTML/Mason/Compiler/ToObject.pm line 115.#012#012Stack:#012 [/usr/share/perl/5.20/Carp.pm:166]#012 [/usr/share/perl/5.20/File/Path.pm:156]#012 [/usr/share/perl/5.20/File/Path.pm:133]#012 [/usr/share/perl/5.20/File/Path.pm:114]#012 [/usr/share/perl5/HTML/Mason/Compiler/ToObject.pm:115]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:440]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:776]#012 [/usr/share/perl5/HTML/Mason/Request.pm:259]#012 [/usr/share/perl5/HTML/Mason/Request.pm:215]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web/Request.pm:61]#012 [/usr/share/perl5/Class/Container.pm:275]#012 [/usr/share/perl5/Class/Container.pm:353]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:351]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:345]#012 [/usr/share/perl5/HTML/Mason/PSGIHandler.pm:59]#012 [/usr/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm:52]#012 [/usr/share/perl5/Plack/Util.pm:301]#012 [/usr/share/perl5/ Then I google clearing mason cache and it shows rm -Rf /usr/local/rt4/var/mason_data/obj/* Not usre if the asterisk at end makes difference I tried that after still no luck. Anyone see what is wrong and how to fix? Greatly appreciated. --------- RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - Q1 2017 -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Brian.Dunbar at von.ca Mon Oct 31 14:16:28 2016 From: Brian.Dunbar at von.ca (Dunbar, Brian) Date: Mon, 31 Oct 2016 18:16:28 +0000 Subject: [rt-users] Mason Cache clear In-Reply-To: <4DB235B1-9CBD-4B0F-BBF0-A3171586CA2F@internap.com> References: <1B0952CE40023A48AE928B0BBBC4AD40146B757F@VONDC335.vonnat1.von.ca> <4DB235B1-9CBD-4B0F-BBF0-A3171586CA2F@internap.com> Message-ID: <1B0952CE40023A48AE928B0BBBC4AD40146B7602@VONDC335.vonnat1.von.ca> Thank you Landon, Torsten and Alex. I checked the folder permissions under mason_data and set /obj to 770 to match the other two folders and restarted apache and it is working again. Thank you glad I am not in production yet. From: Landon Stewart [mailto:lstewart at internap.com] Sent: Monday, October 31, 2016 2:02 PM To: Dunbar, Brian Cc: rt-users Subject: Re: [rt-users] Mason Cache clear Hi Brian, Check what user apache2 runs as (probably www-data but depends on what distro you use). Then make sure that user can write to the /opt/rt4/var/mason_data/obj directory (chown -R www-data:www-data /opt/rt4/var/mason_data/obj). To make sure apache2 runs as www-data (or to find out what it does run as) check the output of "ps aux | grep apache2". There will be one process running as root but the others will run as a different user; that is the one you want. On Oct 31, 2016, at 10:49 AM, Dunbar, Brian > wrote: I was installing RT-Extension-ActivityReports into RT 4.4.0 after the install I ran rm -rf /opt/rt4/var/mason_data/obj then service apache2 restart Apache restarted ok but RT will not load. I found this error in syslog but not sure what to fix. [40707] mkdir /opt/rt4/var/mason_data/obj/3407077840: Permission denied at /usr/share/perl5/HTML/Mason/Compiler/ToObject.pm line 115.#012#012Stack:#012 [/usr/share/perl/5.20/Carp.pm:166]#012 [/usr/share/perl/5.20/File/Path.pm:156]#012 [/usr/share/perl/5.20/File/Path.pm:133]#012 [/usr/share/perl/5.20/File/Path.pm:114]#012 [/usr/share/perl5/HTML/Mason/Compiler/ToObject.pm:115]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:440]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:776]#012 [/usr/share/perl5/HTML/Mason/Request.pm:259]#012 [/usr/share/perl5/HTML/Mason/Request.pm:215]#012 [/opt/rt4/sbin/../lib/RT/Interface/Web/Request.pm:61]#012 [/usr/share/perl5/Class/Container.pm:275]#012 [/usr/share/perl5/Class/Container.pm:353]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:351]#012 [/usr/share/perl5/HTML/Mason/Interp.pm:345]#012 [/usr/share/perl5/HTML/Mason/PSGIHandler.pm:59]#012 [/usr/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm:52]#012 [/usr/share/perl5/Plack/Util.pm:301]#012 [/usr/share/perl5/ Then I google clearing mason cache and it shows rm -Rf /usr/local/rt4/var/mason_data/obj/* Not usre if the asterisk at end makes difference I tried that after still no luck. Anyone see what is wrong and how to fix? Greatly appreciated. --------- RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training * Los Angeles - Q1 2017 -- Landon Stewart Lead Analyst - Abuse and Security Management INTERNAP ? ? lstewart at internap.com ? www.internap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tbrumm at mac.com Mon Oct 31 13:56:03 2016 From: tbrumm at mac.com (Torsten Brumm) Date: Mon, 31 Oct 2016 18:56:03 +0100 Subject: [rt-users] Mason Cache clear In-Reply-To: <1B0952CE40023A48AE928B0BBBC4AD40146B757F@VONDC335.vonnat1.von.ca> References: <1B0952CE40023A48AE928B0BBBC4AD40146B757F@VONDC335.vonnat1.von.ca> Message-ID: Check permissions Brian Von meinem iPhone gesendet > Am 31.10.2016 um 18:49 schrieb Dunbar, Brian : > > I was installing RT-Extension-ActivityReports into RT 4.4.0 after the install I ran > rm -rf /opt/rt4/var/mason_data/obj > then service apache2 restart > > Apache restarted ok but RT will not load. I found this error in syslog but not sure what to fix. > [40707] mkdir /opt/rt4/var/mason_data/obj/3407077840: Permission denied at /usr/share/perl5/HTML/Mason/Compiler/ToObject.pm line 115.#012#012Stack:#012 > [/usr/share/perl/5.20/Carp.pm:166]#012 [/usr/share/perl/5.20/File/Path.pm:156]#012 > [/usr/share/perl/5.20/File/Path.pm:133]#012 > [/usr/share/perl/5.20/File/Path.pm:114]#012 > [/usr/share/perl5/HTML/Mason/Compiler/ToObject.pm:115]#012 > [/usr/share/perl5/HTML/Mason/Interp.pm:440]#012 > [/usr/share/perl5/HTML/Mason/Interp.pm:776]#012 > [/usr/share/perl5/HTML/Mason/Request.pm:259]#012 > [/usr/share/perl5/HTML/Mason/Request.pm:215]#012 > [/opt/rt4/sbin/../lib/RT/Interface/Web/Request.pm:61]#012 > [/usr/share/perl5/Class/Container.pm:275]#012 > [/usr/share/perl5/Class/Container.pm:353]#012 > [/usr/share/perl5/HTML/Mason/Interp.pm:351]#012 > [/usr/share/perl5/HTML/Mason/Interp.pm:345]#012 > [/usr/share/perl5/HTML/Mason/PSGIHandler.pm:59]#012 > [/usr/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm:52]#012 > [/usr/share/perl5/Plack/Util.pm:301]#012 [/usr/share/perl5/ > > Then I google clearing mason cache and it shows > rm -Rf /usr/local/rt4/var/mason_data/obj/* > Not usre if the asterisk at end makes difference I tried that after still no luck. > > Anyone see what is wrong and how to fix? Greatly appreciated. > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training > * Los Angeles - Q1 2017 From ahall at autodist.com Mon Oct 31 16:17:11 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 31 Oct 2016 16:17:11 -0400 Subject: [rt-users] Overriding files in lib/RT? In-Reply-To: References: Message-ID: Hi all, Thanks for the responses, it's partially working. When I use my Email_Local.pm, the server refuses to start, yet I have no errors. Running it through Perl's checker reveals only: Name "RT::Logger" used only once: possible typo at Email_Local.pm at line 31 Perl says everything else is fine. I pulled the single function I wanted to modify out of the original Email.pm (ParseTicketId) and left it alone, except for changing \s+ to \s* in the "if (my $@captures" line. As usual, any errors that might be generated are going who knows where, so I'm not sure where to start looking. As I said, Perl thinks this is fine save that warning, but RT definitely doesn't. Any thoughts? Here's the file: use strict; use warnings; no warnings qw(redefine); package RT::Interface::Email; #Takes a string and searches for [subjecttag #id] #Returns the id if a match is found. Otherwise returns undef. sub ParseTicketId { my $Subject = shift; my $rtname = RT->Config->Get('rtname'); my $test_name = RT->Config->Get('EmailSubjectTagRegex') || qr/\Q$rtname\E/i; # We use @captures and pull out the last capture value to guard against # someone using (...) instead of (?:...) in $EmailSubjectTagRegex. my $id; if ( my @captures = $Subject =~ /\[$test_name\s*\#(\d+)\s*\]/i ) { $id = $captures[-1]; } else { foreach my $tag ( RT->System->SubjectTag ) { next unless my @captures = $Subject =~ /\[\Q$tag\E\s+\#(\d+)\s*\]/i; $id = $captures[-1]; last; } } return undef unless $id; $RT::Logger->debug("Found a ticket ID. It's $id"); return $id; } On Mon, Oct 31, 2016 at 12:18 PM, Nilesh wrote: > To extend you should either add code in Email_Local.pm or > Email_Overlay.pm. If you name it as Email.pm then you have to copy all code > from existing module and modify it. > > I'm not sure about differences between Overlay and Local but I think that > difference is for OO vs adding some functionality. > > -- > Nilesh > > On 31-Oct-2016 9:45 PM, "Matt Zagrabelny" wrote: > >> Hi Alex, >> >> On Mon, Oct 31, 2016 at 11:09 AM, Alex Hall wrote: >> > Hey list, >> > How would I override /opt/rt4/lib/RT/Interface/Email.pm? >> >> Overlays. >> >> https://docs.bestpractical.com/rt/4.4.1/RT/StyleGuide.html# >> EXTENDING-RT-CLASSES >> >> It looks like there is also an outdated wiki article: >> >> https://rt-wiki.bestpractical.com/wiki/ObjectModel >> >> -m >> --------- >> RT 4.4 and RTIR training sessions, and a new workshop day! >> https://bestpractical.com/training >> * Los Angeles - Q1 2017 >> > > --------- > RT 4.4 and RTIR training sessions, and a new workshop day! > https://bestpractical.com/training > * Los Angeles - Q1 2017 > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ktm at rice.edu Mon Oct 31 16:29:27 2016 From: ktm at rice.edu (Kenneth Marshall) Date: Mon, 31 Oct 2016 15:29:27 -0500 Subject: [rt-users] Overriding files in lib/RT? In-Reply-To: References: Message-ID: <20161031202927.GE4282@aart.rice.edu> On Mon, Oct 31, 2016 at 04:17:11PM -0400, Alex Hall wrote: > Hi all, > Thanks for the responses, it's partially working. When I use my > Email_Local.pm, the server refuses to start, yet I have no errors. Running > it through Perl's checker reveals only: > > Name "RT::Logger" used only once: possible typo at Email_Local.pm at line 31 > > Perl says everything else is fine. I pulled the single function I wanted to > modify out of the original Email.pm (ParseTicketId) and left it alone, > except for changing \s+ to \s* in the "if (my $@captures" line. As usual, > any errors that might be generated are going who knows where, so I'm not > sure where to start looking. As I said, Perl thinks this is fine save that > warning, but RT definitely doesn't. Any thoughts? Here's the file: > Hi Alex, Try running the fcgi process by hand and look for any errors. Sometimes, the one function you pull has dependencies on other function in the file which means that they would need to be in the new file as well. Running it by hand gave a useful error for me. Regards, Ken From ahall at autodist.com Mon Oct 31 16:43:00 2016 From: ahall at autodist.com (Alex Hall) Date: Mon, 31 Oct 2016 16:43:00 -0400 Subject: [rt-users] Overriding files in lib/RT? In-Reply-To: <20161031202927.GE4282@aart.rice.edu> References: <20161031202927.GE4282@aart.rice.edu> Message-ID: Sorry, but can you clarify "run FCGI by hand"? Currently, I run spawn-fcgi to specify the address, port, and location of the RT FCGI server. All that gives me is a success or error message on initial start, but any subsequent errors don't seem to be logged anywhere. This is the only way I know to get the FCGI server running. How do you do it? I'd love a way that would give me more information. Thanks. On Mon, Oct 31, 2016 at 4:29 PM, Kenneth Marshall wrote: > On Mon, Oct 31, 2016 at 04:17:11PM -0400, Alex Hall wrote: > > Hi all, > > Thanks for the responses, it's partially working. When I use my > > Email_Local.pm, the server refuses to start, yet I have no errors. > Running > > it through Perl's checker reveals only: > > > > Name "RT::Logger" used only once: possible typo at Email_Local.pm at > line 31 > > > > Perl says everything else is fine. I pulled the single function I wanted > to > > modify out of the original Email.pm (ParseTicketId) and left it alone, > > except for changing \s+ to \s* in the "if (my $@captures" line. As usual, > > any errors that might be generated are going who knows where, so I'm not > > sure where to start looking. As I said, Perl thinks this is fine save > that > > warning, but RT definitely doesn't. Any thoughts? Here's the file: > > > > Hi Alex, > > Try running the fcgi process by hand and look for any errors. Sometimes, > the one function you pull has dependencies on other function in the file > which means that they would need to be in the new file as well. Running > it by hand gave a useful error for me. > > Regards, > Ken > -- Alex Hall Automatic Distributors, IT department ahall at autodist.com -------------- next part -------------- An HTML attachment was scrubbed... URL: