Feature #30180
openAdd a cron function to the report templates
Description
It would be very useful if you could generate reports at specific intervals. Currently you can only do this manually
Updated by Marek Hulán almost 4 years ago
Hello,
this RFE totally makes sense to me. However it's a bit more work. We should migrate the scheduling concept from foreman-tasks plugin, it's called recurring logic. At the same time, we'd need to polish it a bit, it's not very intuitive. And only then, we should add this feature, based on it.
As a workaround, you can simply use cron and trigger the rendering using API/hammer, I guess you already figured that out.
I'd also be interested in your use case a bit. What report and what intervals would you like to see? How would you treat permissions? E.g. could only the user who defined the interval modify/delete it? Or should it be permission based? Should the interval also include the "send me the result via email" checkbox? How would you specify inputs if the report request some user data? What if the report template changes and start requiring the new input, while already scheduled?
Thanks
Updated by Richard Stempfl almost 4 years ago
The most important thing would be the errata information and a report on jobs that have been run.
The reports should then always be sent by email. Permission based interval changes would be desirable but not very important in my opinion