Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0/txn search chart #373

Merged
merged 11 commits into from
Dec 15, 2023
Prev Previous commit
Next Next commit
Support to calculate TimeTaken in transaction search charts
  • Loading branch information
sunnavy committed Dec 5, 2023
commit cea4882b0ca1fddb217424fcfe908b4caea8e51a
9 changes: 8 additions & 1 deletion lib/RT/Report/Transactions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@ our @GROUPINGS = (
#
# loc("Transaction count")

our @STATISTICS = ( COUNT => [ 'Transaction count', 'Count', 'id' ], );
our @STATISTICS = (
COUNT => [ 'Transaction count', 'Count', 'id' ],
"ALL(TimeTaken)" => [ "Summary of Time Taken", 'TimeAll', 'TimeTaken' ],
"SUM(TimeTaken)" => [ "Total Time Taken", 'Time', 'SUM', 'TimeTaken' ],
"AVG(TimeTaken)" => [ "Average Time Taken", 'Time', 'AVG', 'TimeTaken' ],
"MIN(TimeTaken)" => [ "Minimum Time Taken", 'Time', 'MIN', 'TimeTaken' ],
"MAX(TimeTaken)" => [ "Maximum Time Taken", 'Time', 'MAX', 'TimeTaken' ],
);

sub SetupGroupings {
my $self = shift;
Expand Down