Contacto
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:

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

También te puede gustar estos artículos

21.10.26
On October 21, 2026, at 14:00 UTC, the PHP development team released critical security updates addressing two major vulnerabilities, tracked as CVE-2026-109618 and CVE-2026-109619 (commonly referred to as "php2shell"). Full technical details regarding these flaws, their potential security impact, and recommended workarounds can be found in the official PHP.net announcement. Here is a breakdown of what this security advisory means for your ITSM infrastructure and how […]
19.10.26
We are pleased to announce the official release of the GLPI AI 2.0 plugin. This new version is a complete rewrite of GLPI's artificial intelligence plugin. Built on top of the Symfony AI bundle, it has been designed to deliver smooth, sovereign and customizable assistance at the heart of the daily work of support teams […]
ARSEAA is a French non-profit association with 1,800 employees, active in the medico-social, healthcare, social and training sectors. It now handles both IT support and building maintenance in a single GLPI instance, hosted on GLPI Network Cloud Private in France. The tool was first deployed to solve maintenance issues at one facility. Here is how […]
12.10.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in the United Kingdom: Infotel UK. Infotel is no stranger to the GLPI community. The company has worked with GLPI since 2006 and is already a Platinium partner of the GLPI Network. With this new Silver partnership, Infotel UK brings that experience directly […]
08.10.26
GLPI-Agent 1.21 has been released. You can download it on the GLPI Agent github project: https://github.com/glpi-project/glpi-agent/releases/tag/1.21 Regression fix Firstly, this release is published earlier to fix a regression introduced in 1.20: Enhancements The release comes also with few enhancements: You can check changes details in the official online Changelog available here: https://github.com/glpi-project/glpi-agent/blob/1.21/Changes Packaging About packaging, […]
07.10.26
GLPI 12 is the latest major release of the open-source ITSM solution. It introduces a completely redesigned Knowledge Base, gives administrators greater control over active user sessions, and ensures that internal deadlines automatically follow the team responsible for the work. The release also strengthens platform security, with no additional configuration required. In this article, we […]
06.10.26
What is the SCIM protocol (System for Cross-domain Identity Management)? Automating identity management has become a top priority for any company that keeps adding business applications. This article covers the essentials of the SCIM protocol: what it is, how it works technically, the concrete benefits it brings to IT teams, and how it compares with […]
05.10.26
GLPI 12 is scheduled for release in October 2026. Under our support model, which always covers the two latest major versions, this release will mark the end of support for GLPI 10. What this means for your instance Once GLPI 12 is out, instances still running GLPI 10 will no longer receive: Running an unsupported […]
01.10.26
Due to an undetected regression, GLPI 11.0.10 crashes when loading some plugins. Version 11.0.11 has been released to address the issue. We recommend that all users upgrade as soon as possible. As a reminder, here are the details of version 11.0.10, which also apply to 11.0.11: Many bug fixes have also been made, read the changelogs […]
30.09.26
11.0.10 and 10.0.28 releases fix several security issues that have been recently discovered. Update is strongly recommended! Important note: with the upcoming release of GLPI 12.0.0, version 10.0.28 will be the final release of the 10.0 branch, which will no longer receive bugfixes. Many bug fixes have also been made, read the changelogs for more […]
29.09.26
Requests get lost across several mailboxes, response times keep growing, and nobody knows who is handling what? That is a clear sign it is time to structure your support with a proper ticketing tool. GLPI is the open source ticketing tool that brings your customer service ticket management and your IT asset inventory together in […]
24.09.26
A new GLPI Agent version is now available! GLPI-Agent 1.20 has been released. You can download it on the GLPI Agent github project: https://github.com/glpi-project/glpi-agent/releases/tag/1.20 You can check changes details in the official online Changelog available here: https://github.com/glpi-project/glpi-agent/blob/1.20/Changes This new version fixes the following security issues: We strongly encourage you to update your agents. Bug fixes […]
23.09.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in China: KNX Innovation Limited. With more than 15 years of experience in enterprise system architecture and integration, KNX Innovation Limited helps organizations modernize their business applications and transform their enterprise systems. The team has solid implementation experience on major platforms such as […]
Giesecke+Devrient (G+D), headquartered in Munich, designs security technologies used in banknote counting machines, passports, and other security products worldwide. With more than 14,000 employees, 40 countries, and 123 subsidiaries and joint ventures, the company relies on a central IT team in Munich supported by local colleagues in India, Singapore, Canada, and numerous production sites around […]
22.09.26
Congratulations! We are pleased to announce our new Silver GLPI Network partner in India: RecoChain We are excited to welcome our new Silver GLPI Network partner in India: RecoChain. RecoChain is a digital transformation partner that combines software with expert services, helping businesses build and deploy autonomous AI applications quickly. The company brings deep expertise in cybersecurity […]
18.09.26
On Sunday, September 6, the GLPI team took part in the 10 km du Trocadéro in Paris, one of the city's classic urban races, with a route offering a stunning view of the Eiffel Tower along the way. Running for ARSLA Beyond the physical challenge, the team ran in support of ARSLA (Association pour la […]
Industrializing support for 7,000 users Hexafret, a rail freight subsidiary of SNCF, runs support for 4,000 employees and around 7,000 internal and external users while helping the country avoid the emission of more than 1 million tonnes of CO2 and over 1 million long-distance trucks on the road every year. Behind that operation, the support […]
16.09.26
Two new GLPI versions are now available! We've just released GLPI 11.0.9 and GLPI 10.0.27 to patch several critical security vulnerabilities.We strongly advise upgrading your instances as soon as possible! GLPI 11.0.9 changelog: https://github.com/glpi-project/glpi/milestone/91?closed=1GLPI 10.0.27 changelog: https://github.com/glpi-project/glpi/milestone/90?closed=1 Get the updates here: https://github.com/glpi-project/glpi/releases You will find below the list of security issues fixed in theses bugfixes […]
08.09.26
We are pleased to announce the availability of OAuth authentication in GLPI Android Inventory Agent 1.9.0. This new feature enhances the security of Android deployments by providing a modern, dedicated authentication mechanism specifically designed for inventory operations. More Secure and Dedicated Authentication With this new version, administrators can configure a dedicated OAuth client for GLPI Android Inventory Agent, […]
07.09.26
GLPI 12 has now reached the Release Candidate stage. This means no more new features will be added; the focus is now on bug fixing, and completing translations. The version is feature-ready, and we’re very close to the stable release. GLPI 12 stable will be released in October 🎉 You can already explore what’s coming in this […]
1 2 3 … 21
chevron-right
LinkedIn Facebook Pinterest YouTube rss Twitter instagram facebook en blanco rss-en-blanco linkedin en blanco Pinterest YouTube Twitter instagram