You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-02-07 11:00:05

Enlister
Guest
Registered: 2018-02-07
Posts: 1

Notifications templates.

Hello.
Can somebody send me html-code of the "Ticket" template body from 9.21 version?

My is:

<!-- description{ color: inherit; background: #ebebeb; border-style: solid;border-color: #8d8d8d; border-width: 0px 1px 1px 0px; }    -->
<div>
<p>##IFticket.storestatus=5##<br /><span style="text-decoration: underline; color: #999999;"><strong>##lang.ticket.url##</strong></span> : ##ticket.urlapprove## <br />##lang.ticket.autoclosewarning##<br /><span style="text-decoration: underline; color: #999999;"><strong>##lang.ticket.solvedate##</strong></span> : ##ticket.solvedate##<br /><span style="text-decoration: underline;"><strong><span style="color: #999999; text-decoration: underline;">##lang.ticket.solution.type##</span></strong></span> : ##ticket.solution.type##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.solution.description##</span></strong></span> : ##ticket.solution.description## ##ENDIFticket.storestatus##<br /><span style="text-decoration: underline;"><strong><span style="color: #999999; text-decoration: underline;">##ELSEticket.storestatus## ##lang.ticket.url##</span></strong></span> : ##ticket.url## ##ENDELSEticket.storestatus##<br />##lang.ticket.description##</p>
<p><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.title##</span></strong></span> :##ticket.title## <br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.authors##</span></strong></span> :##IFticket.authors## ##ticket.authors## ##ENDIFticket.authors## ##ELSEticket.authors##--##ENDELSEticket.authors## <br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.creationdate##</span></strong></span> :##ticket.creationdate## <br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.closedate##</span></strong></span> :##ticket.closedate## <br /><strong><span style="text-decoration: underline; color: #999999;">##lang.ticket.requesttype##</span></strong> :##ticket.requesttype##</p>
<p><span style="text-decoration: underline;"><strong><span style="color: #999999; text-decoration: underline;">##lang.ticket.item.name##</span></strong></span> :</p>
<p>##FOREACHitems##</p>
<p>##IFticket.itemtype## ##ticket.itemtype## - ##ticket.item.name## ##IFticket.item.model## <span style="text-decoration: underline;"><strong><span style="color: #999999; text-decoration: underline;">##lang.ticket.item.model##</span></strong></span> : ##ticket.item.model## ##ENDIFticket.item.model## <strong><span style="text-decoration: underline; color: #999999;">##IFticket.item.serial## ##lang.ticket.item.serial##</span></strong> : ##ticket.item.serial## ##ENDIFticket.item.serial## ##IFticket.item.otherserial## ##lang.ticket.item.otherserial## : ##ticket.item.otherserial## ##ENDIFticket.item.otherserial## ##ENDIFticket.itemtype##</p>
<p><br />##ENDFOREACHitems##</p>
<p><span style="text-decoration: underline;"><strong><span style="color: #999999; text-decoration: underline;">##IFticket.assigntousers## ##lang.ticket.assigntousers##</span></strong></span> : ##ticket.assigntousers## ##ENDIFticket.assigntousers##<br /><span style="text-decoration: underline;"><span style="color: #999999; text-decoration: underline;"><strong>##lang.ticket.status##</strong></span></span> : ##ticket.status##<br /><strong><span style="text-decoration: underline; color: #999999;">##IFticket.assigntogroups## ##lang.ticket.assigntogroups##</span></strong> : ##ticket.assigntogroups## ##ENDIFticket.assigntogroups##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.urgency##</span></strong></span> : ##ticket.urgency##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.impact##</span></strong></span> : ##ticket.impact##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.priority##</span></strong></span> : ##ticket.priority## <br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##IFticket.user.email## ##lang.ticket.user.email##</span></strong></span> : ##ticket.user.email ##ENDIFticket.user.email## <br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##IFticket.category####lang.ticket.category##</span></strong></span> :##ticket.category## ##ENDIFticket.category## ##ELSEticket.category## ##lang.ticket.nocategoryassigned## ##ENDELSEticket.category## <br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.content##</span></strong></span> : ##ticket.content##</p>
<p><br />##IFticket.storestatus=6##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.solvedate##</span></strong></span> : ##ticket.solvedate##<br /><span style="text-decoration: underline;"><strong><span style="color: #999999; text-decoration: underline;">##lang.ticket.solution.type##</span></strong></span> : ##ticket.solution.type##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.ticket.solution.description##</span></strong></span> : ##ticket.solution.description##<br />##ENDIFticket.storestatus##</p>
<p><span style="color: #000000;"><strong><span style="text-decoration: underline;">##lang.ticket.numberoffollowups##</span></strong> </span>: ##ticket.numberoffollowups##<br />##FOREACHfollowups##</p>
<p><br /><strong>[##followup.date##] ##lang.followup.isprivate## : ##followup.isprivate##</strong> <br /><span style="text-decoration: underline; color: #999999;"><strong>##lang.followup.author##</strong></span> ##followup.author##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.followup.description##</span></strong></span> ##followup.description##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.followup.date##</span></strong></span> ##followup.date##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.followup.requesttype##</span></strong></span> ##followup.requesttype##<br />##ENDFOREACHfollowups##</p>
<p><span style="text-decoration: underline;"><strong>##lang.ticket.numberoftasks## : ##ticket.numberoftasks##</strong></span><br />##FOREACHtasks##</p>
<p><br /><strong>[##task.date##] ##lang.task.isprivate## : ##task.isprivate##</strong> <br /><span style="text-decoration: underline;"><span style="color: #999999; text-decoration: underline;"><strong>##lang.task.author##</strong></span></span> ##task.author##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.task.description##</span></strong></span> ##task.description##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.task.time##</span></strong></span> ##task.time##<br /><span style="color: #999999;"><strong><span style="text-decoration: underline;">##lang.task.category##</span></strong></span> ##task.category##<br />##ENDFOREACHtasks##</p>
</div>

After update 9.21 we started to recive all ticket notifications as "New Ticket".
When we update ticket, add comment or other things, we still recive "New Ticket" notifications without changed info.
I think that there is some problem with

##IFticket.storestatus=5##

but I can't understand how this tag works.
Is there any english documentation on what this ticket satatuses means?

Thank you.

Offline

#2 2018-02-07 22:28:37

KKAdmin
Guest
From: Germany
Registered: 2010-03-05
Posts: 587

Re: Notifications templates.

<!-- description{ color: inherit; background: #ebebeb; border-style: solid;border-color: #8d8d8d; border-width: 0px 1px 1px 0px; }    -->
<div>##IFticket.storestatus=5##</div>
<div>##lang.ticket.url## : <a href="##ticket.urlapprove##">##ticket.urlapprove##</a> <strong> </strong></div>
<div><strong>##lang.ticket.autoclosewarning##</strong></div>
<div><span style="color: #888888;"><strong><span style="text-decoration: underline;">##lang.ticket.solvedate##</span></strong></span> : ##ticket.solvedate##<br /><span style="text-decoration: underline; color: #888888;"><strong>##lang.ticket.solution.type##</strong></span> : ##ticket.solution.type##<br /><span style="text-decoration: underline; color: #888888;"><strong>##lang.ticket.solution.description##</strong></span> : ##ticket.solution.description## ##ENDIFticket.storestatus##</div>
<div>##ELSEticket.storestatus## ##lang.ticket.url## : <a href="##ticket.url##">##ticket.url##</a> ##ENDELSEticket.storestatus##</div>
<p class="description b"><strong>##lang.ticket.description##</strong></p>
<p><span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.title##</span> :##ticket.title## <br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.authors##</span> :##IFticket.authors## ##ticket.authors## ##ENDIFticket.authors## ##ELSEticket.authors##--##ENDELSEticket.authors## <br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.creationdate##</span> :##ticket.creationdate## <br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.closedate##</span> :##ticket.closedate## <br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.requesttype##</span> :##ticket.requesttype##<br /> ##IFticket.itemtype## <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.item.name##</span> : ##ticket.itemtype## - ##ticket.item.name## ##IFticket.item.model## - ##ticket.item.model## ##ENDIFticket.item.model## ##IFticket.item.serial## -##ticket.item.serial## ##ENDIFticket.item.serial##  ##IFticket.item.otherserial## -##ticket.item.otherserial## ##ENDIFticket.item.otherserial## ##ENDIFticket.itemtype## <br /> ##IFticket.assigntousers## <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.assigntousers##</span> : ##ticket.assigntousers## ##ENDIFticket.assigntousers##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;">##lang.ticket.status## </span> : ##ticket.status##<br /> ##IFticket.assigntogroups## <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.assigntogroups##</span> : ##ticket.assigntogroups## ##ENDIFticket.assigntogroups##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.urgency##</span> : ##ticket.urgency##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.impact##</span> : ##ticket.impact##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.priority##</span> : ##ticket.priority## <br /> ##IFticket.user.email##<span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.user.email##</span> : ##ticket.user.email ##ENDIFticket.user.email## <br /> ##IFticket.category##<span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;">##lang.ticket.category## </span> :##ticket.category## ##ENDIFticket.category## ##ELSEticket.category## ##lang.ticket.nocategoryassigned## ##ENDELSEticket.category## <br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.ticket.content##</span> : ##ticket.content##</p>
<p><br />##IFticket.storestatus=6##<br /><span style="text-decoration: underline;"><strong><span style="color: #888888;">##lang.ticket.solvedate##</span></strong></span> : ##ticket.solvedate##<br /><span style="color: #888888;"><strong><span style="text-decoration: underline;">##lang.ticket.solution.type##</span></strong></span> : ##ticket.solution.type##<br /><span style="text-decoration: underline; color: #888888;"><strong>##lang.ticket.solution.description##</strong></span> : ##ticket.solution.description##<br />##ENDIFticket.storestatus##</p>
<div class="description b">##lang.ticket.numberoffollowups## : ##ticket.numberoffollowups##</div>
<p>##FOREACHfollowups##</p>
<div class="description b"><br /> <strong> [##followup.date##] <em>##lang.followup.isprivate## : ##followup.isprivate## </em></strong><br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.followup.author## </span> ##followup.author##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.followup.description## </span> ##followup.description##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.followup.date## </span> ##followup.date##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.followup.requesttype## </span> ##followup.requesttype##</div>
<p>##ENDFOREACHfollowups##</p>
<div class="description b">##lang.ticket.numberoftasks## : ##ticket.numberoftasks##</div>
<p>##FOREACHtasks##</p>
<div class="description b"><br /> <strong> [##task.date##] <em>##lang.task.isprivate## : ##task.isprivate## </em></strong><br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.task.author##</span> ##task.author##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.task.description##</span> ##task.description##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.task.time##</span> ##task.time##<br /> <span style="color: #8b8c8f; font-weight: bold; text-decoration: underline;"> ##lang.task.category##</span> ##task.category##</div>
<p>##ENDFOREACHtasks##</p>

You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.1.2 /Ubuntu 14.04.4 LTS
Apache/2.4.7 (Ubuntu) - PHP 5.5.9-1ubuntu4.16 - MySQL: 5.5.49-0ubuntu0.14.04.1

Offline

#3 2018-02-07 22:32:34

KKAdmin
Guest
From: Germany
Registered: 2010-03-05
Posts: 587

Re: Notifications templates.


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.1.2 /Ubuntu 14.04.4 LTS
Apache/2.4.7 (Ubuntu) - PHP 5.5.9-1ubuntu4.16 - MySQL: 5.5.49-0ubuntu0.14.04.1

Offline

Board footer

Powered by FluxBB