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:

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

You may also like these articles

15.04.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in Serbia: Poko ITS. Poko ITS is a trusted IT company based in Serbia, specializing in ITSM and ITAM solutions built around GLPI. From initial consulting and architecture design to deployment, integration, and advanced automation, they provide a full spectrum of services to […]
14.04.26
GLPI made its mark at GITEX Africa 2026 in Marrakech for an edition defined by strategic encounters, new partnerships, and a growing presence across the African continent. What is GITEX Africa, and why was GLPI there? GITEX Africa is the leading technology exhibition on the African continent, bringing together thousands of professionals, decision-makers, startups, and […]
08.04.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in Ivory Cost: Neurones Technologies Neurones Technologies is a provider of IT and telecoms solutions that has been operating in West and Central Africa for over 15 years. Specialising in technological solutions, the company stands out for: Neurones Technologies’ objective is to generate […]
03.04.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in the Republic of Benin: SKYRAN GROUP SARL SKYRAN GROUP SARL was founded with the aim of driving the modernisation of technological infrastructure within organisations. Its expertise spans the design, implementation and optimisation of highly innovative and high-performance IT solutions. Based in Cotonou, […]
31.03.26
GLPI-Agent 1.17 has been released. You can download it on the GLPI Agent github project: https://github.com/glpi-project/glpi-agent/releases/tag/1.17 This new version comes with some fixes and enhancements and here are the essential ones: You can check changes details in the official online Changelog available here: https://github.com/glpi-project/glpi-agent/blob/1.17/Changes About packaging, here is what you should retain: As usual, we invite you […]
30.03.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in Thailand: Magnus Inno Tech Magnus Inno Tech Co., Ltd. is a Thailand-based IT consulting and system integration company specializing in IT infrastructure, Cybersecurity, and IT service management solutions.The company provides consulting, implementation, and managed services across areas such as IT Asset Management, IT Operations […]
18.03.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in France: Surgeor With 10 years of experience in the Open Source field, they have evolved in diverse technical and human environments. Their creativity, curiosity, analytical skills, and expertise allow them to support all types of companies, both nationally and internationally. They address major […]
16.03.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in Macau: Hogo Digital HOGO Digital is a results-driven company offering digital marketing services alongside specialized IT support solutions. Through their GLPI certification, they are expanding their capabilities to help clients improve IT service management (ITSM), helpdesk operations, and asset management. This allows HOGO […]
10.03.26
For most users, WhatsApp is already the natural way to reach support. What changes now is that this conversation finally works in favor of your governance, instead of becoming another unmanaged channel. The new official integration between GLPI and WhatsApp was designed for IT analysts and support coordinators who want to centralize communication, reduce noise, and keep full […]
05.03.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in France: Armada Armada is an integrator specialized in the deployment of IT and cyber solutions, addressing the security, autonomy, and compliance challenges of IT infrastructures. Recognized by clients with high standards for digital sovereignty, security, and regulatory compliance, Armada stands out through its […]
04.03.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in Spain: Vires25 Vires25 was founded with the goal of advising and supporting clients in their journey to find the platforms that best meet their needs. The company brings together professionals with extensive experience in various IT solutions, as well as in client consultancy […]
03.03.26
Two new GLPI versions are available. These updates fix a recently discovered critical security vulnerability. Updating is highly recommended! You can download the GLPI 11.0.6 archive on GitHub. You will find below the list of security issues fixed in this bugfixes version: Also, here is a short list of important bug fixes included in this version: The full […]
02.03.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in Brazil: Marcati Marcati Soluções Tecnológicas is a company specializing in IT outsourcing and the development of strategic solutions for corporate environments. Operating with a strong foundation in open-source technologies, Marcati actively collaborates with the community to develop projects, systems, and ideas that make technology more accessible, […]
10.02.26
We are delighted to announce that Data Expertise of the Human's Connexion Group, a long-standing GLPI partner in France, has moved to Gold level, after several years as a Silver partner. Reminder: Who is Data Expertise? Data Expertise is an open-source integrator specializing in the design and architecture of IT infrastructures. The company offers hybrid […]
09.02.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in Brazil: GovTech 360 GovTech360 is a Governance and Digital Transformation company with solid experience in the implementation and operation of technological solutions for both the public and private sectors. With a track record spanning over 10 years in the technology market, the company […]
06.02.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in the Caribbean Islands: Cloud Carib Cloud Carib is a leading provider of sovereign cloud and cybersecurity services across the Caribbean and Latin America. Headquartered in The Bahamas, the company delivers secure hybrid infrastructure and managed services through locally operated data centres in […]
03.02.26
GLPI Agent 1.16 has been released. You can download it on the GLPI Agent github project: https://github.com/glpi-project/glpi-agent/releases/tag/1.16 New feature : IEC61850 standard support This new version introduces the inventory of Intelligent Electronic Devices (IED) in GLPI Agent. In practice, we integrated the libiec61850 library support which provides related protocols support and more specifically the ones permitting […]
29.01.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in United Arab Emirates: KGT Computer Software Trading K Global Technologies (KGT) operates as an independent solutions provider specializing in Supply Chain and Sustainability, delivering tailored solutions aligned to each client’s unique requirements. Established in 2018, KGT has steadily expanded its footprint across the […]
28.01.26
Two new GLPI versions are available. Today, we ship 11.0.5 and 10.0.23. These releases contain security fixes, and we encourage you to update Many bug fixes have also been made, read the changelogs for more details: You can download the new archives on GitHub: You will find below the list of security issues fixed in […]
19.01.26
Asset Management has always been the historical core of GLPI. Today, our solution goes further by connecting technical inventory with environmental challenges. Thanks to the new GLPI Carbon plugin, you can transform your CMDB into a powerful tool for steering your ecological transition. Full visibility over your IT infrastructure To optimize, you must first measure. GLPI centralizes all your data […]
1 2 3 18
chevron-right
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram