Contact
Contact
My account
03.09.24

How to save the support team time with templates in GLPI

Twig is a templating Engine for PHP that helps to keep the code clean and organized by separating what is coded from what people see on the website. This makes the task of managing and updating templates a bit easier.

GLPI has brought since the version 10, the ability to use Twig variables on followups, tasks and solution templates. But you may ask, what is it useful for?

Well. Let's take a template you use on a daily basis and have to always change some fields. Start with a welcome message in a ticket, as an example:

Dear {Client’s Name},

Thank you for reaching out to our support team. We wanted to let you know that your support ticket has been successfully inserted into our support area. Our team is already on it and will start the process of analysis within {specified time frame}.

If you need to add any additional information or have further questions, you can simply reply to this email or visit our website at upport.yourdomain.com to update your ticket.

We appreciate your patience and will get back to you as soon as possible.

Best regards,

I know. Sometimes we forget to manually change the fields by the correct ones, or we just let general information there as don't make any mistakes.

The twig variables are exactly for this.

Every ticket has some pre-filled fields. Be it by the user, by the technicians, by automatic business rules. The only thing we want here is to be accurate, quick and informative.

Let's change this same message to add

  1. The first name of the requester
  2. The Time to Own the ticket received at this moment
  3. The group that is responsible for the ticket at the moment

Dear {% for user in ticket.requesters.users %} {{ user.firstname }} ,
{% endfor %}

Thank you for reaching out to our support team. We wanted to let you know that your support ticket has been successfully inserted into our support area. Our team is already on it and will start the process of analysis within {{ ticket.tto | date("d/m/y H:i") }}.

The group {{ group.name }} is responsible for this ticket at this level.

If you need to add any additional information or have further questions, you can simply reply to this email or visit our website at upport.yourdomain.com to update your ticket.

We appreciate your patience and will get back to you as soon as possible.

Best regards,

As you can see, there are some variables in this template. It means that every time a technician selects this Followup template, GLPI will insert:

  • Every first name of users at the requesters field
    • {% for user in ticket.requesters.users %} {{ user.firstname }} , {% endfor %}
  • The Time to Own date and time added manually or automatically via business rules
    • {{ ticket.tto | date("d/m/y H:i") }}
  • The responsible group of the ticket
    • {{ group.name }}

The best part is that, once these fields change during the lifecycle of the ticket, the new followups, tasks and solutions will get updated information to be inserted during the time.

Here are some other ideas of templates you may use

  • Fill with a KB article
    • If you have a knowledge base article that may be useful for the user, you may:
      • relate this article with the ticket using the knowledge base tab in a ticket
      • create the followup or solution template with the following variable {{ knowbaseitem.answer | raw }}
      • select the template you've previously created. GLPI will insert the content of the article to the solution or followup template.
      • here is a template example


{% for user in ticket.requesters.users %} {{ user.fullname }}
{% endfor %}
There is a possible article on our knowledge base that may be of help:
{% for knowbaseitem in ticket.knowbaseitems %}

{{ knowbaseitem.link | raw }}

{{ knowbaseitem.answer | raw }}

{% endfor %}

  • Use it for pending reasons
    • relate this article with the ticket using the knowledge base tab in a ticket
    • create the followup template with the important variables
    • create the pending reasons
    • connect the template you created to the pending reason you've previously created
    • here is a template example

Hi {% for user in ticket.requesters.users %} {{ user.firstname }} ,
{% endfor %}

Hope you're doing well! We're just dropping a quick note to remind you that your response is needed to proceed with ticket # {{ ticket.id }} regarding {{ ticket.name }}.

Your input is crucial for us to move forward. If you could spare a few moments to provide the necessary information or feedback, we'd greatly appreciate it.

If the issue has already been resolved, or you have other questions, please let us know.

Thanks for your attention to this matter!

Best,

{% for user in ticket.assignees.users %} {{ user.firstname }}

{% endfor %}

The Twig variables may be found at the followup, task and solution templates. Explore it and make me know what are the projects you have created with them. We will have news about those same twigs in next versions.

YouTube video:

https://youtu.be/eMvssYNAQtg

Stay connected so you don’t miss any of our news!

Vous aimerez peut-être aussi ces articles

19.06.25
Avec plus de 36 ans d'histoire, Lanlink est une entreprise spécialisée dans l'infrastructure IT, le cloud, les données et l'IA, la productivité numérique, et la sécurité de l'information. Partenaire de leaders mondiaux tels que Microsoft,
13.06.25
GLPI Agent 1.15 est disponible. Nous sommes fiers d'annoncer que cette nouvelle version est fournie avec un package MSI Windows signé et des binaires Windows signés. Vous pouvez la télécharger sur le projet GitHub de GLPI Agent : https://github.com/glpi-project/glpi-agent/releases/tag/1.15. Cette version inclut quelques correctifs…
11.06.25
Nous sommes ravis de vous présenter une nouvelle fonctionnalité puissante dans notre plugin OauthSSO ! La dernière version majeure d'OauthSSO offre une compatibilité étendue avec l'ajout d'un nouveau fournisseur d'authentification : Apple. Les utilisateurs peuvent désormais se connecter avec leur compte Apple, en plus de…
09.06.25
Félicitations ! Nous sommes heureux d'annoncer notre nouveau partenaire Silver GLPI Network en Côte d'Ivoire : Synerj Expertises Fondée en octobre 2024, SYNERJ EXPERTISES est un intégrateur de solutions informatiques basé à Abidjan, en Côte d'Ivoire. Leur mission est de fournir aux entreprises des solutions sur mesure visant à les aider à...
09.06.25
Nous sommes ravis d'annoncer le lancement de notre tout nouveau centre d'aide GLPI, votre référence pour tout ce qui concerne GLPI ! GLPI est désormais plus accessible que jamais sur help.glpi-project.org ! Cet espace dédié a été conçu pour vous aider à tirer le meilleur parti de GLPI. Vous y trouverez : Étape...
09.06.25
Félicitations ! Nous sommes heureux d'annoncer notre nouveau partenaire Silver GLPI Network à Maurice : ITOM Consult ITOM Consult accompagne ses clients dans leurs choix et décisions éclairées en matière de gestion des opérations informatiques (ITOM). Leur vision globale, enrichie par une expérience multi-fournisseurs, permet...
09.06.25
Félicitations ! Nous sommes heureux d'annoncer notre nouveau partenaire Silver GLPI Network au Sénégal : Expert IS EXPERT IS est une entreprise spécialisée dans le secteur du numérique. Ses activités s'articulent autour de trois axes principaux : INFRASTRUCTURE, axée sur la mise en œuvre des systèmes d'information ; DIGITALISATION,...
09.06.25
Le 15 mai, Teclib’ a réuni ses équipes pour le Teclib’ Day 2025, un événement alliant bilan, vision et esprit d’équipe. Cette journée, organisée au Mama Shelter à Paris, a été l’occasion idéale de faire le point sur nos avancées, de remercier les équipes pour leur engagement et de renforcer nos liens grâce à…
22.05.25
Félicitations ! Nous sommes heureux d'annoncer notre nouveau partenaire Silver GLPI Network en Malaisie : Fronix SDN BHD FRONIX SDN BHD (FSB) est une organisation de services en technologies de l'information et de la communication (TIC) offrant des solutions et des services spécialisés pour les secteurs des télécommunications, des services publics, privés et gouvernementaux.
22.05.25
Congratulations! We are pleased to announce our new Silver GLPI Network partner in Spain: Consultores IT 365 Consultores IT 365 is a 100% Spanish company with over 15 years of experience, specializing in transforming ICT into a strategic engine for businesses. Their team is made up of consultants de...
14.05.25
Congratulations! We are pleased to announce our new Silver GLPI Network partner in Brazil: JMBA Soluções Founded in 2018, JMBA Soluções is an IT consulting company based in São Paulo. It focuses on Cloud computing, collaboration, data centers, networks, and security solutions, offering full sup...
09.05.25
Congratulations! We are pleased to announce our new Silver GLPI Network partner in the United States: Synapse Software For over 15 years, Synapse Software has been committed to automating business processes. Through its automation platforms, and IT service and asset management, Synapse Software help...
29.04.25
Congratulations! We are pleased to announce our new Silver GLPI Network partner in France: Catamania Catamania is a French digital consulting and services company with 1,200 employees and a turnover of €100M in 2024. Since its creation in 1999, it has supported the digital transformation of its cl...
29.04.25
Congratulations! We are pleased to announce our new Silver GLPI Network partner in Switzerland: DOS Group SA More than 2,000 companies in Switzerland and around the world trust the DOS Group for their ICT and digital solutions. With over 20 years of experience, versatile expertise, and a commitment ...
29.04.25
We are pleased to announce that GLPI Agent 1.14 is now available — update now! You can download it from the official project page on GitHub: https://github.com/glpi-project/glpi-agent/releases/tag/1.14 This version brings a few fixes and improvements, including: Regarding packages, here are the hi...
15.04.25
Congratulations to Imagunet on this tremendous achievement! From Silver to Gold! Our first Gold Partner in Latin America! After several years of collaboration, we are proud to announce that Imagunet, based in Colombia 🇨🇴, has become our first Gold Partner in the region. Imagunet is a leading s...
07.04.25
Congratulations! We are pleased to announce our new Silver GLPI Network partner in Brazil: VLCloud IT Services VLCloud is a company specialized in IT solutions and services. It is committed to thoroughly analyzing each client’s IT environment through a team of highly qualified and experienced prof...
07.04.25
We are thrilled to announce the release of a new GLPI Network plugin: Cloud Inventory! Available starting from the Basic subscription level and on the Cloud. CloudInventory allows automatic and manual synchronization of resources hosted by various cloud providers (OVH, AWS, Azure, Google Cloud, etc....
31.03.25
Congratulations! We are pleased to announce that Adactim, already a trusted GLPI Network partner in Tunisia, is now expanding its partnership in France as a new Silver GLPI Network partner! 🎉 ADACTIM France, official partner of Teclib’, stands out for its expertise in GLPI integration, IT outso...
31.03.25
Congratulations! We are pleased to announce our new Silver GLPI Network partner in Hungary: Intalion Intalion Rendszerintegrátor Kft. specializes in IT system integration and service management, helping companies streamline operations and improve efficiency. As a GLPI partner, they offer customized...
1 2 3 15
chevron-right linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram