create report from command line?

Moderator: crythias

Post Reply
disciple
Znuny newbie
Posts: 62
Joined: 31 Jul 2022, 12:27
Znuny Version: 6.4.2
Real Name: David Müller

create report from command line?

Post by disciple »

after searching a while I found that the

Code: Select all

$HOME/bin/otrs.GenerateStats.pl -n 10020 -f CSV -r tom@domain.com -r fred@domain.com -r tony@domain.com -m "Weekly Open Ticket Report" -F WeeklyOpen
was changed to

Code: Select all

otrs.Console.pl Maint::Stats::Generate --number ... [--params ...] [--target-filename ...] [--target-directory ...] [--format ...] [--separator ...] [--with-header] [--timezone ...] [--language ...] [--mail-sender ...] [--mail-recipient ... (--mail-recipient ...)] [--mail-body ...]
What is sadly not clear to me:
how can I set a subject for the mail?
I can set a mail-body, but a mail-subject?
A obvious try with --mail-subject or --subject did not succeed.
skullz
Znuny superhero
Posts: 618
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: create report from command line?

Post by skullz »

By default, its hardcoded based in Stats title, etc..

https://github.com/znuny/Znuny/blob/944 ... te.pm#L439

You may tinkering around at AddOption (add mail-subject option), and then point EmailSend api (subject) to take the value from it.
disciple
Znuny newbie
Posts: 62
Joined: 31 Jul 2022, 12:27
Znuny Version: 6.4.2
Real Name: David Müller

Re: create report from command line?

Post by disciple »

skullz wrote: 02 Feb 2023, 07:23 You may tinkering around at AddOption (add mail-subject option), and then point EmailSend api (subject) to take the value from it.
with tinkering you mean to modify core file of Znuny, and to be specific to develop something?

If programming... I am very probably lost..

afaik this is a simple feature request to not have such things hard coded, isn't it?
Post Reply