Page 1 of 1

HTML Email - adding data to note_mailtemplate.html

Posted: 11 Apr 2024, 22:57
by acoder2020
I'd like to add some of the main Issue data to note email notifications.

It looks like the array $p_visible_bug_data is passed for bug email notifications like:

Code: Select all

$t_message = email_template_bug_message( $p_visible_bug_data, $t_message );
The same array is not passed when sending note notifications:

Code: Select all

$t_message = email_template_bugnote($t_bugnote, $t_project_id, $t_show_time_tracking, $t_separator,$t_message );
Is `$p_visible_bug_data` a common system wide variable and could I pass that as an argument in `email_template_bugnote()`?

Re: HTML Email - adding data to note_mailtemplate.html

Posted: 11 Apr 2024, 23:02
by acoder2020
What I'm aiming to add at the top of the existing table:
Screenshot from 2024-04-11 19-01-03.png
Screenshot from 2024-04-11 19-01-03.png (61.18 KiB) Viewed 5047 times
Happy to try a pull request once I have a handle on what I need to do. I'm not super well versed with GIT but will do my best to learn.

Re: HTML Email - adding data to note_mailtemplate.html

Posted: 12 Apr 2024, 06:44
by cas
This is around my mailtemplate development.
Please add request here: https://github.com/mantisbt-plugins/mailtemplate
I will then have a look if that is an option.
Please ad a printscreen how it now looks and how you want it to look and/or statwe clearly which fields you would like to have available.

Re: HTML Email - adding data to note_mailtemplate.html

Posted: 12 Apr 2024, 07:45
by cas
This was pretty easy to do. Please download template_api.php from git and test it.
https://github.com/mantisbt-plugins/mai ... te_api.php

Future changes please request via Github