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 2016-02-01 15:14:13

hmoratilla
Member
Registered: 2016-02-01
Posts: 6

Personalize Notification (TAGs and LAST followup, task, solution)

Hi all!

I know that this is threat that have been posted many times but we need to solve it. Cmopn guys!
We want to personalize the notification who a customer posts when add a task, followup or solution is posted on a ticket as new, or modified.

I know about the TAGs but I'm not sure how it works.
We only want to send the last update. Now the customer is recieving a list with all followups and task historic. This is so awkward for the customer, find relative information about their last update.

How I can use the tags???
Each tag works even if were between other tags or similar?? because there are some that show nothing when you use it???

Anybody have a list with the function of every tags.

For example:

##task.description## = shows a description of the ticket but you should use between ##foreach****## tag
##ticket.entity## =  shows the entity who is linked to the ticket.

I have read in other post that there are a tag like ##FOREACHLAST task## to show last task or followup, but it doesn't work.



PD: sorry about my english

Offline

#2 2016-02-01 15:30:06

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

Re: Personalize Notification (TAGs and LAST followup, task, solution)

##FOREACHauthors##
##lang.author.name## ##author.name##
##lang.author.location## ##author.location##
##ENDFOREACHauthors##

or

##FOREACHtask##
  ##lang.task.description## ##task.description##
  {add some others task related tags if needed}
##ENDFOREACHtask##

Notice :  if you use these "loops" in

<table>##FOREACHtask##  <tr><td>##lang.task.description##</td> </tr>##ENDFOREACHtask## </table>

sometimes, glpi rewrites the translation and put both tags (foreach) together at the top of table. ( looks like a bug)


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

#3 2016-02-01 16:24:12

hmoratilla
Member
Registered: 2016-02-01
Posts: 6

Re: Personalize Notification (TAGs and LAST followup, task, solution)

Thanks LaDenrée

Well but how aboutif we only want to post in the email the last task updated or followup, because ##FOREACH*****# shows all historical data... isn't it true?

Offline

#4 2016-02-01 16:29:19

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

Re: Personalize Notification (TAGs and LAST followup, task, solution)

with followups it works with

##FOREACH last followups## ##followup.author##  ##followup.date## :
##followup.description## ##ENDFOREACHfollowups##

I guess it also works for tasks (not checked on my 0.90.1)

##FOREACH last tasks##
  ##lang.task.description## ##task.description##
  {add some others task related tags if needed}
##ENDFOREACHtasks##


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

#5 2016-02-05 17:04:34

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Personalize Notification (TAGs and LAST followup, task, solution)

If you only want the last followup
##FOREACH LAST 1 followups##


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#6 2016-02-09 20:13:38

hmoratilla
Member
Registered: 2016-02-01
Posts: 6

Re: Personalize Notification (TAGs and LAST followup, task, solution)

Great, task is working for mi at this moment.

But followups it imposible... i´ve tried with
##FOREACH LAST 1 followups##

and with

##FOREACH last followups##

This is my template:

Estimad@ ##ticket.authors##

##FOREACH last followups##

##followup.author## ha agregado una mensaje al ticket " ##ticket.title## ":

##lang.followup.description##: ##followup.description##

##ENDFOREACHfollowups##

Si desea añadir mas informacion, conteste a este mensaje sin modificar el asunto del mismo.

Offline

#7 2016-02-10 12:55:32

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Personalize Notification (TAGs and LAST followup, task, solution)

Have you private follow-up?
Has your user rights to read follow-up in his profile?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#8 2021-07-20 14:03:41

laurixia
Member
Registered: 2020-11-17
Posts: 5

Re: Personalize Notification (TAGs and LAST followup, task, solution)

Hola,

El problema es que en tu plantilla falta el número de seguimiento si quieres contabilizar el ultimo o últimos, depende del número que pongas te indica los seguimientos del histórico.

Estimad@ ##ticket.authors##

##FOREACH last 1 followups##

##followup.author## ha agregado una mensaje al ticket " ##ticket.title## ":

##lang.followup.description##: ##followup.description##

##ENDFOREACHfollowups##

---------------------------------------------------------------------------------------------

Y si necesitas mostrar todos hay un error de sintaxis, el TAG va junto sin espacios ##FOREACHfollowups##

Estimad@ ##ticket.authors##

##FOREACHfollowups##

##followup.author## ha agregado una mensaje al ticket " ##ticket.title## ":

##lang.followup.description##: ##followup.description##

##ENDFOREACHfollowups##

Offline

Board footer

Powered by FluxBB