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 2011-05-19 15:14:34

eslo
Member
Registered: 2009-05-27
Posts: 1

Email template - Only show text if status is NOT closed or solved.

Hi!

Is there a way to display a message only if a ticket is NOT solved or closed.

Heres the code i'm trying in Norwegian.

##IFticket.storestatus!=closed##
Dette er en automatisk generert epost, bruk webskjema for tilbakemeldinger: ##ticket.url##
##ENDIFticket.storestatus##

##IFticket.storestatus!=solved##
Dette er en automatisk generert epost, bruk webskjema for tilbakemeldinger: ##ticket.url##
##ENDIFticket.storestatus##

##IFticket.storestatus=closed##
##lang.ticket.solvedate## : ##ticket.solvedate##
##lang.ticket.solution.type## : ##ticket.solution.type##
##lang.ticket.solution.description##:
##ticket.solution.description##
##ENDIFticket.storestatus##

##IFticket.storestatus=solved##
Dette er en automatisk generert epost, bruk webskjema for godkjenne løsningen: ##ticket.urlapprove##  
##lang.ticket.autoclosewarning##
##lang.ticket.solvedate## : ##ticket.solvedate##
##lang.ticket.solution.type## : ##ticket.solution.type##
##lang.ticket.solution.description##:
##ticket.solution.description##
##ENDIFticket.storestatus##

Offline

#2 2011-05-19 17:18:24

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

Re: Email template - Only show text if status is NOT closed or solved.

Try this

##IFticket.storestatus=closed##
##lang.ticket.solvedate## : ##ticket.solvedate##
##lang.ticket.solution.type## : ##ticket.solution.type##
##lang.ticket.solution.description##:
##ticket.solution.description##
##ENDIFticket.storestatus##
##ELSEticket.storestatus##
Dette er en automatisk generert epost, bruk webskjema for tilbakemeldinger: ##ticket.url##
##ENDELSEticket.storestatus##


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

Board footer

Powered by FluxBB