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-05-17 10:58:13

spam@habilitas.it
Member
Registered: 2010-05-05
Posts: 13

email notifications: differentiate the last followup

Hello,
I 'd like to show, in my email notification for "add followup", the last followup in a different style. something like:

this is the last followup: *followup 1*
these are the others:
*followup 2*
*followup 3*
*followup 4*
*followup 5*

but I don't see any tag suitable for this purpose.
Is there a way to do it?

thanx

davide

Offline

#2 2018-05-17 11:20:22

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: email notifications: differentiate the last followup

you can highligt first or last followup : with ##FOREACH last followups##


this is the last followup:
##FOREACH last followups##
##followup.description##
##ENDFOREACHfollowups##

these are the others:

*followup 2*
*followup 3*
*followup 4*
*followup 5*


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

Offline

#3 2018-05-17 11:53:10

spam@habilitas.it
Member
Registered: 2010-05-05
Posts: 13

Re: email notifications: differentiate the last followup

thank you , but, mmm...
so it should be...

##FOREACHfollowups##

##FOREACH last followups##
*set red for this line*
##ENDFOREACHfollowups##

##followup.description##
these are the others:
*followup 2*
*followup 3*
*followup 4*
*followup 5*
##ENDFOREACHfollowups##

but it does not work as every time it goes over the last followup thing it set the line in red even if is the first follow up..

davide

Offline

#4 2018-05-17 14:00:19

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: email notifications: differentiate the last followup

so it should be...

this is the last followup :
##FOREACH last followups##
*set red for this line*
##ENDFOREACHfollowups##

these are all the followups
##FOREACHfollowups##

##followup.description##

##ENDFOREACHfollowups##


you should get :

this is the last followup :
*followup 5*

these are all the followups
*followup 1*
*followup 2*
*followup 3*
*followup 4*
*followup 5*

Note that the last foolowp is also in all followups list


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

Offline

#5 2018-05-17 14:08:27

spam@habilitas.it
Member
Registered: 2010-05-05
Posts: 13

Re: email notifications: differentiate the last followup

That's not what I wanted to have.
then the behavior is not exactly the same you've described as doing so we get:

this is the last followup :
*followup 5*
these are all the followups
*followup 5*
*followup 4*
*followup 3*
*followup 2*
*followup 1*

what I would like to get is:

this is the last followup :
*followup 5*
these are the previous followups
*followup 4*
*followup 3*
*followup 2*
*followup 1*

Offline

#6 2018-05-22 04:02:08

jayeshroshan
Member
Registered: 2018-05-22
Posts: 4

Re: email notifications: differentiate the last followup

hello,
visit Setup > Notifications > Notifications, and ensure you have Technician in charge of this price tag is chosen as a Notification Recipient. experience loose to play along with your Recipients until you've got the humans you want notified receiving notifications.
regards
jayesh
Plex Kodi Lucky Patcher

Last edited by jayeshroshan (2018-05-23 12:20:41)

Offline

Board footer

Powered by FluxBB