Email Template to display the last message

Discuss problems installing or using TrackStudio.

Email Template to display the last message

Postby dhwang » Fri Apr 08, 2011 6:31 pm

Hello Trackstudio experts

I am asking for your help. I want to create a very simple email template that will alert the handler when a new task is assigned to them. In the alert message, I only want to include the most recent message posted. I do not want to include the other information that the default email template has. I found a previous post that had something very close, but I do not know the coding to customize it for my needs. Would you please provide the email body coding?

I would like to see:

* Name
* Alias
* Category
* State
* Submitter
* Handler
* Submit Date
* Update Date
* Custom field 1
* Custom field 2, etc.

And then the last message posted:

-------------------------------------------------------------------
Message
-------------------------------------------------------------------

Text...etc.


THANK YOU in advance!
Dae
dhwang
 
Posts: 12
Joined: Fri May 29, 2009 11:44 pm

Re: Email Template to display the last message

Postby admin » Wed Apr 13, 2011 11:43 am

I have no an example right now, please give us a few days.
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 7453
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia

Re: Email Template to display the last message

Postby admin » Fri Apr 15, 2011 3:58 pm

Please insert
<break/>
in line 830, default_html.ftl
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 7453
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia

Re: Email Template to display the last message

Postby dhwang » Sat Apr 16, 2011 6:37 am

Hi.

I couldn't find the file, default_html.ftl in any of the folders. Where could I get that file?

Thanks
Dae
dhwang
 
Posts: 12
Joined: Fri May 29, 2009 11:44 pm

Re: Email Template to display the last message

Postby admin » Sat Apr 16, 2011 11:10 am

Check etc/plugins/e-mail
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 7453
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia

Re: Email Template to display the last message

Postby dhwang » Mon Apr 18, 2011 8:48 pm

Sorry, I do not have such a folder under /etc. I'm running on version 3.5.28.

Would you please attach or upload the script?

Thank you
dhwang
 
Posts: 12
Joined: Fri May 29, 2009 11:44 pm

Re: Email Template to display the last message

Postby admin » Wed Apr 20, 2011 2:05 pm

Insert break in your template like this
===
<#list msglist as m>
<@message msg=m/>
<#break>
</#list>
===

I have no full template now.
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 7453
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia


Return to TrackStudio Support

Who is online

Users browsing this forum: No registered users and 0 guests