EmailTaskHistory - eMail-Template

Hi,

i would like to add the used time to the eMail Template.

Is there any smart way?
I am no coder :slight_smile:

Thanks!

Welcome to the forum.

A bit more details would be helpful. Which template are you referring to?

Thank you alfredb!

Its part of the Plugin of aljawaid, EmailTaskHistory.

I want to add the estamiated and spent time to the emailtemplate.

Thanks!

OK, I see. For this, the code has to be extended. You can submit a feature request to aljawaid, and hope, he will accept and realize it.

BTW, it’s straightforward.

  • Modify the plugin file Template/notification/task_create.php.
  • Insert this snippet somewhere after line 20. Beware to keep the structure of other <li></li> elements.
<li class="">
    <?= t('Original estimate:') ?> <strong><?= $this->text->e($task['time_estimated']) ?></strong>
</li>
<li class="">
    <?= t('Time spent:') ?> <strong><?= $this->text->e($task['time_spent']) ?></strong>
</li>

This should do the job. If you cannot do this yourself, please let me know. I’ll send you a patched file then.

1 Like

THANK YOU! Works!

Besten Dank!

1 Like

You’re welcome! Don’t forget to save, for any reinstall later.