Hiding non-content transactions with callbacks

Hello,

I’m on RT 4.2.x and am trying to hide things like “Outgoing email recorded” and simple ticket ownership changes from showing up on the “Display” section of the ticket. I’ve seen http://requesttracker.wikia.com/wiki/HideTransactions but can’t seem to make it work for me. I’ve tried making “$rt/local/html/Callbacks/my_callbacks/Ticket/Display.html/Default” and “$rt/local/html/Callbacks/my_callbacks/Ticket/Elements/ShowHistory/Default” with the code from the aforementioned page and neither work at all.

I’m sure I’ve done something boneheaded but I’m not well versed enough to realize it yet. Any help would be appreciated.

I’m on RT 4.2.x and am trying to hide things like “Outgoing email recorded” and
simple ticket ownership changes from showing up on the “Display” section of the
ticket. I’ve seen [1]http://requesttracker.wikia.com/wiki/HideTransactions but
can’t seem to make it work for me. I’ve tried making “$rt/local/html/Callbacks/
my_callbacks/Ticket/Display.html/Default” and “$rt/local/html/Callbacks/
my_callbacks/Ticket/Elements/ShowHistory/Default” with the code from the
aforementioned page and neither work at all.

I’m sure I’ve done something boneheaded but I’m not well versed enough to
realize it yet. Any help would be appreciated.

For Outgoing email, you can just not grant ShowOutgoingMail (with the
understanding that users will also lose the ability to squelch on
replies).

I suspect that your problem is that in 4.2 the element is called
Elements/ShowHistory, not Ticket/Elements/ShowHistory and there is no
‘Default’ callback in ShowHistory in either 4.0 or 4.2, so that’s just
wrong.

/opt/rt4/local/html/Callbacks/Mine/Elements/ShowHistory/SkipTransaction

is the correct location for your code. Ensure you clear your mason
cache and restart apache after updating.

-kevin

Hello,

I’m on RT 4.2.x and am trying to hide things like “Outgoing email
recorded” and simple ticket ownership changes from showing up on the
“Display” section of the ticket. I’ve
seen http://requesttracker.wikia.com/wiki/HideTransactions but can’t
seem to make it work for me. I’ve tried making
“$rt/local/html/Callbacks/my_callbacks/Ticket/Display.html/Default”
and
“$rt/local/html/Callbacks/my_callbacks/Ticket/Elements/ShowHistory/Default”
with the code from the aforementioned page and neither work at all.

I’m sure I’ve done something boneheaded but I’m not well versed enough
to realize it yet. Any help would be appreciated.
Some one made a very good filter, search for RT-Extension-HistoryFilter
by cloos.
It will do all you want and more.

Regards,

Joop

Hello,

I'm on RT 4.2.x and am trying to hide things like "Outgoing email recorded"
and simple ticket ownership changes from showing up on the "Display"
section of the ticket. I've seen [2]http://requesttracker.wikia.com/wiki/
HideTransactions but can't seem to make it work for me. I've tried making
"$rt/local/html/Callbacks/my_callbacks/Ticket/Display.html/Default" and
"$rt/local/html/Callbacks/my_callbacks/Ticket/Elements/ShowHistory/Default"
with the code from the aforementioned page and neither work at all.

I'm sure I've done something boneheaded but I'm not well versed enough to
realize it yet. Any help would be appreciated.

Some one made a very good filter, search for RT-Extension-HistoryFilter by
cloos.
It will do all you want and more.

I considered giving this in my initial response, but it doesn’t have
the 4.2 compatible callback, so I didn’t want to lead the original
poster on until I’d had a chance to send a PR.

-kevin

I considered giving this in my initial response, but it doesn’t have
the 4.2 compatible callback, so I didn’t want to lead the original
poster on until I’d had a chance to send a PR.

-kevin

It uses the RT 4.2 callback since Oct last year [1]. :wink:

Chris

[1] use new callback for RT 4.2 compatibility · netsandbox/RT-Extension-HistoryFilter@6fd31b0 · GitHub