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

30.09.25
We are proud to announce the official release of GLPI 11, the latest major version of our open-source software. After months of development and community testing, GLPI 11 is now stable and ready for production. What’s new ? While the full list of changes can be found in the detailed changelog, here are some of the most […]
26.09.25
Are you ready to launch GLPI in containers? 🚀 With the official Docker images, deploying GLPI has never been easier, whether you want to test it quickly or run it in production. Why Docker for GLPI? Running GLPI inside Docker brings key advantages: Who is this for? This approach is designed for: Getting started GLPI […]
26.09.25
Introduction Today, IT accounts for 3 to 4% of global greenhouse gas (GHG) emissions. This figure shows that the IT sector is already one of the major contributors to climate change, and its continuous growth adds significant weight. To achieve carbon neutrality by 2050, it is essential to measure, understand, and then reduce the environmental impact of your […]
26.09.25
A new GLPI version is available. Some bug fixes have also been made since GLPI 10.0.19, read the full changelog for more details. You can download the GLPI 10.0.20 archive on GitHub. We would like to thank all people who contributed to this new version and all those who contributes regularly to the GLPI project! Regards. Follow us on […]
26.09.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Switzerland: Suisse Expert Consulting SARL Suisse Expert Consulting Sarl supports companies, brokers, and public organizations in the management and evolution of their information systems. Their mission is to provide organizations with reliable, innovative and tailor-made technological solutions combining performance, security and ease of […]
26.09.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Ivory Coast: Innovtechnology INNOV TECHNOLOGY, founded in 2015 in Ivory Coast, brings together experienced engineers with extensive expertise from local and international projects. Specialized in IT, Telecom, and Energy, the company provides services such as network infrastructures, fiber optics, telecom maintenance and optimization, […]
26.09.25
As you know, GLPI 11 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 11 stable will be released on 1st October 🎉 You can already explore […]
25.07.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in France: Antares IT ANTARES is above all a digital consulting and services company, where innovation lies at the heart of everything we do. We help our clients transform, optimize their processes, and secure their infrastructure by combining technical expertise with a deep understanding […]
24.07.25
At Teclib’, we firmly believe that the strength of our open-source ecosystem lies in the power of partnerships. Last week, our Channel Manager for Brazil, Nicolas Maymil, visited our partner Pellissari Soluções in Ponta Grossa (PR), further deepening the collaboration that has been key to expanding GLPI’s presence in southern Brazil. Invited by João, founder and director of […]
24.07.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Canada: Techblue TechBlue LLP is a Canadian company established in April 2025, specializing in the sale and integration of scalable software solutions for businesses of all sizes. Based in British Columbia, TechBlue offers modular software designed to adapt to the growth and specific […]
24.07.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in United States: IT by Brad What a GLPI Partner Can Do for YouTransform Your IT Management with GLPI and IT by Brad IT by Brad is a certified GLPI Partner, committed to delivering top-tier IT Asset Management and Service Management solutions. Through their partnership with […]
24.07.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Ivory Coast: SGCI SGCI is a company founded in 2003 by IT professionals with many years of experience in designing, implementing, and managing high-value-added projects. The company specializes in IT services dedicated to businesses. Their vision: Since 2003, SGCI has made it its mission to […]
24.07.25
A new GLPI version is available. Many bug fixes have also been made, read the full changelog for more details. You can download the GLPI 10.0.19 archive on GitHub. You will find below the list of security issues fixed in this bugfixes version: We would like to thank all people who contributed to this new version and all those […]
15.07.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Brazil: Service IT Service IT is a technology solutions and services integrator with 30 years of experience, founded in 1995. The company has offices in Brazil (Porto Alegre, São Paulo, Rio de Janeiro, Curitiba) as well as operations in Argentina, Chile, and the […]
19.06.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Brazil: Lanlink With over 36 years of history, Lanlink is a company specialized in IT infrastructure, cloud, data & AI, digital productivity, and information security. A partner of global leaders such as Microsoft, IBM, Lenovo, and Oracle, it has more than 1,200 employees, […]
13.06.25
GLPI Agent 1.15 has been released. We are proud to announce this new release comes with signed windows MSI package and signed windows binaries. You can download it on the GLPI Agent github project: https://github.com/glpi-project/glpi-agent/releases/tag/1.15 This version comes with some fixes and enhancements and here are the essential ones: About packaging, here is what you should […]
11.06.25
We’re excited to introduce a powerful new feature in our OauthSSO plugin! The latest major release of OauthSSO brings expanded compatibility with the addition of a new authentication provider: Apple. This means users can now log in using their Apple account, alongside the existing authentication options—making access to GLPI even more seamless. 📘 Learn more by checking out the full documentation. 🔔 Reminder: This plugin […]
09.06.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Ivory Coast: Synerj Expertises Founded in October 2024, SYNERJ EXPERTISES is an IT solutions integrator based in Abidjan, Côte d’Ivoire. Their mission is to provide businesses with tailored solutions aimed at helping them address their challenges and overcome obstacles. 🌐 Website: https://bit.ly/3TcxhsK We are […]
09.06.25
We’re excited to announce the launch of our brand-new GLPI Help Center—your go-to destination for everything GLPI! GLPI is now more accessible than ever at help.glpi-project.org!  This dedicated space has been designed to help you get the most out of GLPI. You’ll find: Step-by-step tutorials, A comprehensive FAQ, How-to videos, Complete documentation…and much more! Explore the world of […]
09.06.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Mauritius: ITOM Consult ITOM Consult supports its clients in making informed choices and decisions regarding IT Operations Management (ITOM). Their comprehensive vision, enhanced by multi-vendor experience, enables them to provide end-to-end assistance for your IT infrastructure monitoring projects. 🌐 Website: https://bit.ly/43YaMxV We are excited […]
1 2 3 16
chevron-right
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram