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 2023-11-21 15:16:39

grefabu
Member
Registered: 2017-09-22
Posts: 110

[SOLVED] Notification template - Tags wouldn't interpret

Hi,

I'm crate some new templates for Ticket events.

When I insert ##followup.description## nothing would be interpret.

How get I the Content of the actual Followup/Task etc.?

Bye

Gregor

Last edited by grefabu (2023-11-22 11:01:09)

Offline

#2 2023-11-21 15:34:02

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: [SOLVED] Notification template - Tags wouldn't interpret

With ticket events, an array of followups are available and therefore you need to use the ##FOREACHticket.followups## and ##ENDFOREACHticket.followups## tags and then place the ##followup.description## tag between them.
https://glpi-user-documentation.readthe … ample.html


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2023-11-22 09:29:46

grefabu
Member
Registered: 2017-09-22
Posts: 110

Re: [SOLVED] Notification template - Tags wouldn't interpret

But then I've all the entries in the notification.

I want only the current?

Offline

#4 2023-11-22 09:58:55

SomeDude
Member
Registered: 2023-11-22
Posts: 62

Re: [SOLVED] Notification template - Tags wouldn't interpret

Here this should work

##FOREACH LAST 1 followups##

##followup.description##

##ENDFOREACHfollowups##

Offline

#5 2023-11-22 11:01:29

grefabu
Member
Registered: 2017-09-22
Posts: 110

Re: [SOLVED] Notification template - Tags wouldn't interpret

SomeDude wrote:

Here this should work

##FOREACH LAST 1 followups##

##followup.description##

##ENDFOREACHfollowups##

You're right!

Offline

Board footer

Powered by FluxBB