We have some statistics configured in our OTRS 6.0.30 installation and exporting them via web ui works as intended.
Now we would like to create a task to export and mail these statistics monthly and I discovered, that it can be done via CLI and a cronjob. The following command almost produces the desired result:
Code: Select all
otrs/bin/otrs.Console.pl Maint::Stats::Generate --number 10014 --format Excel --timezone 'Europe/Zurich' --language de --target-filename 10014_queue_stats --mail-recipient someone@example.com --mail-sender 'OTRS Stats <otrs-stats-noreply@example.com' --quiet
Apparently some parameters can be passed to the statistic via the "--params" CLI flag, but I could not figure out how to do this correctly to set the correct timeframe.
Any help would be appreciated :)