You are not logged in.
Pages: 1
Hello. Question. When the user receives a letter that a new comment on the request has been received, it would be desirable that the most recent comment in the request is colored red. So that when a notification letter came to the mail, it was immediately visible to the last comment, which will be colored red. Where is it set up?
Offline
setup>notification>notification Template>[my template]>translations> change code
if "comment" means followup
then use
##FOREACH last followups##
<font color="red">##followup.description##</font>
##ENDFOREACHfollowups##
Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6
Online
setup>notification>notification Template>[my template]>translations> change code
if "comment" means followup
then use##FOREACH last followups##
<font color="red">##followup.description##</font>
##ENDFOREACHfollowups##
Thanks for the help. Yes, that's what I meant (last followup). BUT! There is already a line in the "tickets" code:
##FOREACHfollowups##
[##followup.date##] ##lang.followup.isprivate## : ##followup.isprivate##
##lang.followup.author## ##followup.author##
##lang.followup.description## ##followup.description##
##lang.followup.date## ##followup.date##
##lang.followup.requesttype## ##followup.requesttype##
##ENDFOREACHfollowups##
I just need to paint this line red (##followup.description##)?
But then all comments will be red and I only need the last one.
Is it possible?
Last edited by alexkenon (2019-10-29 17:10:06)
Offline
do you really need all the followups in notification ?
if yes then
##FOREACH last followups##
[##followup.date##] ##lang.followup.isprivate## : ##followup.isprivate##
##lang.followup.author## ##followup.author##
<font color="red">##lang.followup.description## ##followup.description##</font>
##lang.followup.date## ##followup.date##
##lang.followup.requesttype## ##followup.requesttype##
##ENDFOREACHfollowups##
##FOREACHfollowups##
[##followup.date##] ##lang.followup.isprivate## : ##followup.isprivate##
##lang.followup.author## ##followup.author##
##lang.followup.description## ##followup.description##
##lang.followup.date## ##followup.date##
##lang.followup.requesttype## ##followup.requesttype##
##ENDFOREACHfollowups##
last followup will be printed twice : once red and the other time, like the other followups
Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6
Online
do you really need all the followups in notification ?
if yes then
##FOREACH last followups## [##followup.date##] ##lang.followup.isprivate## : ##followup.isprivate## ##lang.followup.author## ##followup.author## <font color="red">##lang.followup.description## ##followup.description##</font> ##lang.followup.date## ##followup.date## ##lang.followup.requesttype## ##followup.requesttype## ##ENDFOREACHfollowups## ##FOREACHfollowups## [##followup.date##] ##lang.followup.isprivate## : ##followup.isprivate## ##lang.followup.author## ##followup.author## ##lang.followup.description## ##followup.description## ##lang.followup.date## ##followup.date## ##lang.followup.requesttype## ##followup.requesttype## ##ENDFOREACHfollowups##
last followup will be printed twice : once red and the other time, like the other followups
Thanks!
Last edited by alexkenon (2019-11-07 15:29:18)
Offline
Pages: 1