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 2022-09-28 16:29:36

yaubry
Member
Registered: 2022-09-28
Posts: 2

Notification template compare ticket author

Hello,

I'm trying to implement into the email notifications the entire timeline of the ticket. I'd like to do so by separating the messages sent by the authors of the ticket and the others, to then attribute to each type a different CSS class. to do so, I've tried (unsuccessfully) the following statements :

##FOREACHtimelineitems##
  ##FOREACH [FIRST 1/LAST 1/_] [ticket.authors/authors]##
    ##IF[ticket.authors/authors]=timelineitems.author##
    ##ENDIF[ticket.authors/authors]##
    ##IFtimelineitems.author=[ticket.authors/authors]##
    ##ENDIFtimelineitems.author##
  ##ENDFOREACH[ticket.authors/authors]##
  ##IF[ticket.authors/authors]=timelineitems.author####ENDIF[ticket.authors/authors]##
##ENDFOREACHtimelineitems##

Do you have any idea how to make it work ? I haven't found any kind of documentation about these tags and statements, if you know where to find that I'd really appreciate it.
I'd also need an ELSE statement or a '!=' sign if you know how these are represented in that language.

Thanks, and have a good day !

Offline

Board footer

Powered by FluxBB