[rt-users] running scrip multible times
Hello, is it possible to run a scrip multiple times? in my case I want to do something like this: condition: is some regex-pattern inside of the subject action: change something and remove this pattern from subject if this pattern basically is in the subject more than once, the scrip should also run more than once. So the easiest way for me would be to re-run the scrip - if this pattern is still used in the subject, run the scrip again. Best regards Bernhard -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] How to move an existing database to a new server
Thank you for the input Kevin. Is there an installation guide for RT 4.2.9 with a LTS Ubuntu? So far I have only found a 4.2 with Ubuntu 13.10 which is not supported anymore. http://binarynature.blogspot.co.uk/2013/10/install-request-tracker-4-on-ubuntu-server.html And with a LTS Ubuntu on 4.0.4 which is similiar to what I used http://burn.co.nz/blog/?p=245 RT Wiki page also does not contains any recent installation guides. Vas -- View this message in context: http://requesttracker.8502.n7.nabble.com/How-to-move-an-existing-database-to-a-new-server-tp58875p58930.html Sent from the Request Tracker - User mailing list archive at Nabble.com. -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
[rt-users] rt & asterisk
hi good time i want to join rt(request tracker) to asterisk by rt-soap-server.pl. but i dont no what to do... 1- i installed-> SOAP::Lite and MIME::Entity 2-after that ,how I run ./rt-soap-server.pl ? And how configure? -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] rt & asterisk
On Tue, Nov 04, 2014 at 02:55:43AM -0800, Shahab Sharifzadeh wrote: > > hi > good time > > i want to join rt(request tracker) to asterisk by rt-soap-server.pl. > but i dont no what to do... > > 1- i installed-> SOAP::Lite and MIME::Entity > 2-after that ,how I run ./rt-soap-server.pl ? And how configure? > rt soap server is rather obsolet, you would better use the REST interface. Here we linked asterisk to RT in the following ways: - our heldesk dialplan ask for a ticket number - if no ticket number is given, asterisk use RESt to create a new RT ticket with the requestor set using caller phone and our ldap directory - if a ticket is found, nothing is done - once the call hangup, the conversation recorder is added as a comment to the previous exisitng or created ticket. On RT site, we added the ability to call people by a simple link and component that tell asterisk via IAX to call the number from the sip attached to the current rt user. Then again the conversation is attached to the ticket and timeworked updated. -- 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:elac...@easter-eggs.com - http://www.easter-eggs.com -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
[rt-users] create a ticket with attach by command
Hi I want to in rt ، create a ticket with attach by command...(cli) Is it doable? How do I proceed? rt create -t ticket set subject='New ticket'... Plz help me... -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] rt & asterisk
On 11/04/2014 11:55 AM, Shahab Sharifzadeh wrote: > > hi > good time > > i want to join rt(request tracker) to asterisk by rt-soap-server.pl. > but i dont no what to do... > > 1- i installed-> SOAP::Lite and MIME::Entity > 2-after that ,how I run ./rt-soap-server.pl ? And how configure? > I recommend to take a look at RT::Client::REST. REST is far easier to deal with than SOAP. Sample module using RT::Client::REST: https://github.com/interchange/Helpdesk-Integration Regards Racke -- Modern Perl, Dancer and eCommerce consulting. -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
[rt-users] Getting names/values for all custom fields attached to a ticket
Hello, In the Perl API, how do I get the names/values of all custom fields attached to a ticket? I looked at the documentation, but I only see ways to check for custom fields globally, not how to get a list of all the custom fields that apply to a single ticket. I am using 3.8. Thanks! Chris pgpa_tyubbE4p.pgp Description: PGP signature -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] Getting names/values for all custom fields attached to a ticket
On Tue, Nov 04, 2014 at 02:42:57PM +, Chris Down wrote: > Hello, > > In the Perl API, how do I get the names/values of all custom fields > attached to a ticket? I looked at the documentation, but I only see > ways to check for custom fields globally, not how to get a list of > all the custom fields that apply to a single ticket. > my $Ticket = RT::Ticket->new( $CurrentUser ); $Ticket->Load(ID); my $CustomFields = $Ticket->CustomFields; while (my $CustomField = $CustomFields->Next) { print $CustomField->Name.": ".$CustomField->Content."\n"; } without testing, it should looks like this ;) -- 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:elac...@easter-eggs.com - http://www.easter-eggs.com -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] Getting names/values for all custom fields attached to a ticket
Hi Emmanuel, Thanks for your great reply! Emmanuel Lacour writes: my $CustomFields = $Ticket->CustomFields; This works, but I don't see it documented here[0]. Is that expected? [0]: https://www.bestpractical.com/docs/rt/3.8/RT/Ticket.html while (my $CustomField = $CustomFields->Next) { print $CustomField->Name.": ".$CustomField->Content."\n"; } This only partially works as "Content" is not a known method. I also tried calling the custom field name as a method on the ticket object, since many other fields work that way, but that didn't work (no such method). I will keep on looking, and if you have any other suggestions I would be very eager to hear them :-) Thank you! Chris pgpKfrP08t_f2.pgp Description: PGP signature -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] Getting names/values for all custom fields attached to a ticket
I think I eventually found what I want[0]: $ticket->CustomFieldValuesAsString($custom_field_name); However, on my version of RT this says: RT::Ticket::CustomFieldValuesAsString Unimplemented in main. (rt-dump.pl line 91) Any ideas? :-) 0: http://bestpractical.com/docs/rt/3.8/RT/Record.html#CustomFieldValuesAsString-FIELD pgpUDrVwPj81B.pgp Description: PGP signature -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] Getting names/values for all custom fields attached to a ticket
On Tue, Nov 04, 2014 at 03:44:55PM +, Chris Down wrote: > I think I eventually found what I want[0]: > >$ticket->CustomFieldValuesAsString($custom_field_name); $ticket->FirstCustomFieldValue($custom_field_name); looks what you're lookign for ;) RT::Ticket is based on RT::Record, so you can user every methods available on this last one on a ticket. -- 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:elac...@easter-eggs.com - http://www.easter-eggs.com -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] Getting names/values for all custom fields attached to a ticket
Emmanuel Lacour writes: $ticket->FirstCustomFieldValue($custom_field_name); Dude, that totally works! Thanks so much for your help, I owe you one! pgpzWA9NU8ko8.pgp Description: PGP signature -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] rt & asterisk
Thanks... I want to create a ticket with attachment...(callervoice.gsm) But according to my search in web I can not use from Rest because when I create ticket, the attach file was not sent with them... This is important for me that gsm file be created with ticket... Pls help me... -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] Contents of rt-users digest rt & asterisk
Thanks... I want to create a ticket with attachment...(callervoice.gsm) But according to my search in web I can not use from Rest because when I create ticket, the attach file was not sent with them... This is important for me that gsm file be created with ticket... Pls help me...-- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] Any way to turn subscription email into a .html document?
- Original Message - > I have created some RT Subscriptions, but I was wondering if there is an easy > way to convert the subscription content into a HTML document? > > The emailed subscription appears as a very nicely formatted HTML/ajax email > in my Zimbra mail system, but I would prefer it be posted as a HTML document > that people could access. Could the email (with MIME-encapsulated attachment > - I believe) output be piped to a file and turned into a HTML document? I > am running RT 4.0.8 on CentOS 6.4 (final). Just in case anyone is interested, I managed to do this. Here is how it was done: 1) Create a subscription as a saved search, eg "Search 1". 2) Create an alias/es or a user account/s each with the only purpose is receiving email subscriptions (eg rt-mail-sear...@myserver.com). 3) Set up the account "rt-mail-sear...@myserver.com" to receive the subscription email from "Search1". 4) Set up a time/day for the RT subscription as frequently as you need using the Subscription management page and crontab 5) Set up a shell script to run through crontab shortly after the subscription email is delivered as follows: # write the contents of the mailbox to a file called "subscribe" (or whatever you choose). # You will have to locate the mail directory for your system. # For example in POSTFIX it may be ~rt-mail-search1/Maildir/new/, in Sendmail it may be /var/mail/rt-mail-search1 and so on /bin/cat Maildir/new/* > subscription # Strip out everything between "" and "" (inclusive) # and write it to a .html file (called "search1-listing.html") - the email is a HTML-formatted text document /bin/sed -n '//,// p' subscription > search1-listing.html # Copy the extracted text to the share/html directory of your server /bin/cp search1-listing.html $rt_home/share/html # Fix permissions so it is readable /bin/chown apache:apache $rt_home/share/html/search1-listing.html # Delete the email in the mailbox to await the next subscription email /bin/rm ~rt-mail-search1/Maildir/new/* # Clear the mason cache as is required for the rt shared folder /bin/rm -rf $rt_home/var/mason_data/obj/* # Your subscription is now readable to all non-admin or external users with authentication privileges http://www.myserver.com/SelfService/search1-listing.html -- RT Training November 4 & 5 Los Angeles http://bestpractical.com/training
Re: [rt-users] Any way to turn subscription email into a .html document?
Am 04.11.2014 um 22:49 schrieb Duncan Napier: > > - Original Message - >> I have created some RT Subscriptions, but I was wondering if there is an easy >> way to convert the subscription content into a HTML document? >> >> The emailed subscription appears as a very nicely formatted HTML/ajax email >> in my Zimbra mail system, but I would prefer it be posted as a HTML document >> that people could access. Could the email (with MIME-encapsulated attachment >> - I believe) output be piped to a file and turned into a HTML document? I >> am running RT 4.0.8 on CentOS 6.4 (final). > > Just in case anyone is interested, I managed to do this. Here is how it was > done: > > 1) Create a subscription as a saved search, eg "Search 1". > > 2) Create an alias/es or a user account/s each with the only purpose is > receiving email subscriptions (eg rt-mail-sear...@myserver.com). > > 3) Set up the account "rt-mail-sear...@myserver.com" to receive the > subscription email from "Search1". > > 4) Set up a time/day for the RT subscription as frequently as you need using > the Subscription management page and crontab > > 5) Set up a shell script to run through crontab shortly after the > subscription email is delivered as follows: > > # write the contents of the mailbox to a file called "subscribe" (or whatever > you choose). > # You will have to locate the mail directory for your system. > # For example in POSTFIX it may be ~rt-mail-search1/Maildir/new/, in Sendmail > it may be /var/mail/rt-mail-search1 and so on > > /bin/cat Maildir/new/* > subscription > > # Strip out everything between "" and "" (inclusive) > # and write it to a .html file (called "search1-listing.html") - the email is > a HTML-formatted text document > > /bin/sed -n '//,// p' subscription > search1-listing.html > > # Copy the extracted text to the share/html directory of your server > > /bin/cp search1-listing.html $rt_home/share/html > > # Fix permissions so it is readable > /bin/chown apache:apache $rt_home/share/html/search1-listing.html > > # Delete the email in the mailbox to await the next subscription email > > /bin/rm ~rt-mail-search1/Maildir/new/* > > # Clear the mason cache as is required for the rt shared folder > > /bin/rm -rf $rt_home/var/mason_data/obj/* > > # Your subscription is now readable to all non-admin or external users with > authentication privileges > > http://www.myserver.com/SelfService/search1-listing.html > What do you exactly mean by "subscription email"? Reading all above I would assume that you don't use RT Dashboards, but thats exactly what you want: * you can display them within the RT Webinterface * you can send them as e-mail Here is the documentation: http://www.bestpractical.com/docs/rt/4.2/dashboards.html While the documentation is for RT 4.2, dashboards are also available in RT 4.0 without the DashboardInMenu function. Chris