|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
REST issue when Text field and carriage returnHello,
I'm using RT 3.6.9 on a Redhat platform, and we are plannified to use REST capability with PHP interface to let people have some information, statistic and such integrated to our system. Until now, to "read" information is really easy. But we have problem to create ticket with REST and PHP. We use PHP and HTTP POST feature with "curl library" to create a ticket, but when body of the ticket (filed Text) have more than one line, RT return a 409 Error and give a mark to the second line, like it's not valid. is there any thing we can do to have Text field with many line? we try to replace \n\r by everything (\n only, \r only \r\n using php regex function) but it's still the same : If Text field have 2 line, second line is not valid :-( thanks in advance for your help, don't hesitate to reply to this subject and to ask more information if needed. have a good day. regards, _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel |
|
|
Re: REST issue when Text field and carriage returnOn Mon, Nov 09, 2009 at 07:33:17AM +0100, berrebi wrote: > Hello, > > I'm using RT 3.6.9 on a Redhat platform, and we are plannified to use > REST capability with PHP interface to let people have some information, > statistic and such integrated to our system. Until now, to "read" > information is really easy. But we have problem to create ticket with > REST and PHP. > Please test this with a current release (3.8.6). We've made a number of improvements in this area. _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel |
|
|
Re: REST issue when Text field and carriage returnHi,
i already tried, and it work without problem, unfortunately for production purpose, we need to use version 3.6.9 :-( Any way, i continue to search and try many combination and php code to find a solution. thanks for your answer. regards, On 09/11/2009 15:37, Jesse Vincent wrote: > > > On Mon, Nov 09, 2009 at 07:33:17AM +0100, berrebi wrote: > >> Hello, >> >> I'm using RT 3.6.9 on a Redhat platform, and we are plannified to use >> REST capability with PHP interface to let people have some information, >> statistic and such integrated to our system. Until now, to "read" >> information is really easy. But we have problem to create ticket with >> REST and PHP. >> >> > Please test this with a current release (3.8.6). We've made a number of > improvements in this area. > _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel |
|
|
Help with Module::Install(::RTx)Hi RT Developers,
i need some help with Module::Install::RTx, i'm trying to create my first RTx, read the whole day the web and came to a point, Module::Install(::RTx) can help me. I have a tiny RTx, one Callback, one html File and one perl module, let say: /html/Callbacks/RT-Extension-MyGreatExtension/Ticket/Element/Tabs/Default /html/Ticket/MyGreatExtension.html /local/lib/RT/Extension/MyGreatExtension/Name.pm i moved them (after testing a lot inside RT) to my homedir, lets say: ~/devel/MyGreatExtension-Source and tried like i read: h2xs -X -n RT::Extension::MyGreatExtension what ends up in a new SubDir: Writing RT-Extension-MyGreatExtension/lib/RT/Extension/MyGreatExtension.pm Writing RT-Extension-MyGreatExtension/Makefile.PL Writing RT-Extension-MyGreatExtension/README Writing RT-Extension-MyGreatExtension/t/RT-Extension-MyGreatExtension.t Writing RT-Extension-MyGreatExtension/Changes Writing RT-Extension-MyGreatExtension/MANIFEST But my Callbacks and HTML Files are missing. Should i copy them by hand to this new subdir and add to MANIFEST? I read already in the list (from Kevin i think) that i also have manually add this part to the auto generated Makefile.PL: use inc::Module::Install; RTx('RT-Extension-MyGreatExtension'); author('Torsten Brumm <mymail@...>'); license('perl'); &WriteAll; My Questions: Is this the correct way or not? Thanks for any hint. Torsten Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel |
|
|
Re: Help with Module::Install(::RTx)Use an existing extension for comparison.
-- Cambridge Energy Alliance: Save money. Save the planet. _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel |
|
|
Re: Help with Module::Install(::RTx)On Mon, Nov 09, 2009 at 04:05:15PM +0100, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote: > Hi RT Developers, > > I have a tiny RTx, one Callback, one html File and one perl module, let say: > > /html/Callbacks/RT-Extension-MyGreatExtension/Ticket/Element/Tabs/Default > /html/Ticket/MyGreatExtension.html > /local/lib/RT/Extension/MyGreatExtension/Name.pm > > i moved them (after testing a lot inside RT) to my homedir, lets say: > > ~/devel/MyGreatExtension-Source > > and tried like i read: h2xs -X -n RT::Extension::MyGreatExtension what ends up in a new SubDir: h2x is not your friend here. You don't need it. > Should i copy them by hand to this new subdir and add to MANIFEST? I read already in the list (from Kevin i think) that i also have manually add this part to the auto generated Makefile.PL: > > use inc::Module::Install; > RTx('RT-Extension-MyGreatExtension'); > author('Torsten Brumm <mymail@...>'); > license('perl'); > > &WriteAll; This looks like a fine Makefile.PL, except that I'd generally recommend RTx over RT-Extension. You'll want to create that Makefile.PL and then these directories: lib/ html/ html/Callbacks/RTx-MyGreatExtension/ html/RTx-MyGreatExtension/ Your extension lib should go in lib/RTx/MyGreatExtension.pm and have a package line that reads "package RTx::MyGreatExtension;" Rather than putting your .html file in Ticket, I'd recommend putting it in RTx-MyGreatExtension/Ticket/ (note that to build your extension, you'll need to install Module::Install::Admin and Module::Install::RTx from CPAN) You'll need a MANIFEST containing a list of all the files in your distribution. Most everything else is optional. Best, Jesse _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel |
|
|
Re: Help with Module::Install(::RTx)Thanks to all for this hints, now i will go and create my first RTx :-))
Torsten Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne -----Urspruengliche Nachricht----- Von: Jesse Vincent [mailto:jesse@...] Gesendet: Montag, 9. November 2009 16:18 An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID Cc: Rt-devel@... Betreff: Re: [Rt-devel] Help with Module::Install(::RTx) On Mon, Nov 09, 2009 at 04:05:15PM +0100, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote: > Hi RT Developers, > > I have a tiny RTx, one Callback, one html File and one perl module, let say: > > /html/Callbacks/RT-Extension-MyGreatExtension/Ticket/Element/Tabs/Defa > ult > /html/Ticket/MyGreatExtension.html > /local/lib/RT/Extension/MyGreatExtension/Name.pm > > i moved them (after testing a lot inside RT) to my homedir, lets say: > > ~/devel/MyGreatExtension-Source > > and tried like i read: h2xs -X -n RT::Extension::MyGreatExtension what ends up in a new SubDir: h2x is not your friend here. You don't need it. > Should i copy them by hand to this new subdir and add to MANIFEST? I read already in the list (from Kevin i think) that i also have manually add this part to the auto generated Makefile.PL: > > use inc::Module::Install; > RTx('RT-Extension-MyGreatExtension'); > author('Torsten Brumm <mymail@...>'); license('perl'); > > &WriteAll; This looks like a fine Makefile.PL, except that I'd generally recommend RTx over RT-Extension. You'll want to create that Makefile.PL and then these directories: lib/ html/ html/Callbacks/RTx-MyGreatExtension/ html/RTx-MyGreatExtension/ Your extension lib should go in lib/RTx/MyGreatExtension.pm and have a package line that reads "package RTx::MyGreatExtension;" Rather than putting your .html file in Ticket, I'd recommend putting it in RTx-MyGreatExtension/Ticket/ (note that to build your extension, you'll need to install Module::Install::Admin and Module::Install::RTx from CPAN) You'll need a MANIFEST containing a list of all the files in your distribution. Most everything else is optional. Best, Jesse _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel |
|
|
Re: Help with Module::Install(::RTx)OK, finally done, if anybody likes to test: http://github.com/tbrumm/RT-Extension-ShowRelations
Torsten -----Ursprüngliche Nachricht----- Von: rt-devel-bounces@... [mailto:rt-devel-bounces@...] Im Auftrag von Brumm,Torsten / Kuehne + Nagel / Ham MI-ID Gesendet: Montag, 9. November 2009 16:36 An: Jesse Vincent Cc: Rt-devel@... Betreff: Re: [Rt-devel] Help with Module::Install(::RTx) Thanks to all for this hints, now i will go and create my first RTx :-)) Torsten Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne -----Urspruengliche Nachricht----- Von: Jesse Vincent [mailto:jesse@...] Gesendet: Montag, 9. November 2009 16:18 An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID Cc: Rt-devel@... Betreff: Re: [Rt-devel] Help with Module::Install(::RTx) On Mon, Nov 09, 2009 at 04:05:15PM +0100, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote: > Hi RT Developers, > > I have a tiny RTx, one Callback, one html File and one perl module, let say: > > /html/Callbacks/RT-Extension-MyGreatExtension/Ticket/Element/Tabs/Defa > ult > /html/Ticket/MyGreatExtension.html > /local/lib/RT/Extension/MyGreatExtension/Name.pm > > i moved them (after testing a lot inside RT) to my homedir, lets say: > > ~/devel/MyGreatExtension-Source > > and tried like i read: h2xs -X -n RT::Extension::MyGreatExtension what ends up in a new SubDir: h2x is not your friend here. You don't need it. > Should i copy them by hand to this new subdir and add to MANIFEST? I read already in the list (from Kevin i think) that i also have manually add this part to the auto generated Makefile.PL: > > use inc::Module::Install; > RTx('RT-Extension-MyGreatExtension'); > author('Torsten Brumm <mymail@...>'); license('perl'); > > &WriteAll; This looks like a fine Makefile.PL, except that I'd generally recommend RTx over RT-Extension. You'll want to create that Makefile.PL and then these directories: lib/ html/ html/Callbacks/RTx-MyGreatExtension/ html/RTx-MyGreatExtension/ Your extension lib should go in lib/RTx/MyGreatExtension.pm and have a package line that reads "package RTx::MyGreatExtension;" Rather than putting your .html file in Ticket, I'd recommend putting it in RTx-MyGreatExtension/Ticket/ (note that to build your extension, you'll need to install Module::Install::Admin and Module::Install::RTx from CPAN) You'll need a MANIFEST containing a list of all the files in your distribution. Most everything else is optional. Best, Jesse _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel |
|
|
Re: Help with Module::Install(::RTx)>DESCRIPTION
> If you work a lot with ticket links, it is hard to keep an overview > of all tickets and related ticket status. Normally you have to open > each ticket to see the status/owner, with this RT-Extension you can > see all your tickets (from a search) with their related tickets Sweet! I was just starting to work on something similar; graph relation amongst all tickets in a result set. Maybe I can use this to keep track of my TODO list instead. I'll try to play with it soon, and report back so you can push it to CPAN :-P _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel |
| Free embeddable forum powered by Nabble | Forum Help |