Re: [rt-users] [rt-devel] alternative to edit comments

2015-07-08 Thread ARBEZ Christophe
Thanks for the answer !

I can update the ticket time obviously but, for me, it is less important
than the transaction time which allow me to see the time per person for a
ticket.

Oh it's great !

But where your module and your EditBilling.html are located ?
In a path like /usr/share/request-tracker4/html ?



*Christophe ARBEZ | Stagiaire développement*
Syloé
803 rue de Pinville - 34000 Montpellier
Tél: +33983014518
Email: christophe.ar...@syloe.fr
www.syloe.fr http://www.syloe.com/ | Blog.syloe.com
http://blog.syloe.com/ | Twitter https://twitter.com/Syloe_SARL |
Facebook https://www.facebook.com/pages/Sylo%C3%A9/188258434526095?ref=hl

2015-07-07 22:22 GMT+02:00 Matt Zagrabelny mzagr...@d.umn.edu:


 On Tue, Jul 7, 2015 at 8:01 AM, ARBEZ Christophe 
 christophe.ar...@gmail.com wrote:

 Hi all,

 I know it is not possible to edit some message in RT. So, I would like
 how you do for a comment if you make a mistake in the content or the time
 worked ?


 You can update the ticket time after creating your txn. Perhaps that will
 help?


 For example, in a project or intern tickets in your company.
 Is there an alternative to edit transactions like comments?


 You could create an Edit Content link and add it to the txn links and
 from there create a custom form. You'll need something like:

 # {{{
 # paper-trail auditor backdoor :)
 # Needed to change the txn's time taken via EditBilling.html
 package RT::Transaction;

 use strict;
 no warnings qw(redefine);

 sub _Set {
 my $self = shift;
 $self-SUPER::_Set(@_);
 }
 # }}}

 added to a loaded modules source. We do this for our billing stuff. We
 have a module named RT-Site-UMN-Duluth-EFS which the above code snippet
 lives in and a form named EditBilling.html which does the front-end work.

 Cheers,

 -m



Re: [rt-users] [rt-devel] alternative to edit comments

2015-07-07 Thread Matt Zagrabelny
On Tue, Jul 7, 2015 at 8:01 AM, ARBEZ Christophe christophe.ar...@gmail.com
 wrote:

 Hi all,

 I know it is not possible to edit some message in RT. So, I would like how
 you do for a comment if you make a mistake in the content or the time
 worked ?


You can update the ticket time after creating your txn. Perhaps that will
help?


 For example, in a project or intern tickets in your company.
 Is there an alternative to edit transactions like comments?


You could create an Edit Content link and add it to the txn links and
from there create a custom form. You'll need something like:

# {{{
# paper-trail auditor backdoor :)
# Needed to change the txn's time taken via EditBilling.html
package RT::Transaction;

use strict;
no warnings qw(redefine);

sub _Set {
my $self = shift;
$self-SUPER::_Set(@_);
}
# }}}

added to a loaded modules source. We do this for our billing stuff. We have
a module named RT-Site-UMN-Duluth-EFS which the above code snippet lives in
and a form named EditBilling.html which does the front-end work.

Cheers,

-m