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

14.01.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in France: Novahé Leveraging its expertise in information system integration, Novahe relies on GLPI, the leading ITSM solution, to provide its customers with unified, high-performance IT management tailored to their environments. Thanks to their mastery of complex infrastructures and their customized approach, they turn […]
13.01.26
We are delighted to announce that Synairgis, a long-standing GLPI partner in Canada (Quebec) and France, is moving to Gold level, after several years as a Silver partner. Reminder: Who is Synairgis? Synairgis, based in Quebec and France with offices in Montreal, Montpellier, and Toulouse, provides eco-responsible transformation solutions. They implement GLPI to optimize IT […]
12.01.26
The security of ITSM tools is critical, and GLPI is no exception. To protect your data and ensure the reliability of your IT environment, it is essential to keep your GLPI instance up to date. It is in this context that Orange Cyberdefense launched GLPwnMe, a project dedicated to auditing and improving GLPI’s security. What is […]
08.01.26
Congratulations! We are happy to announce our new Silver GLPI Network partner in Brazil: Teledata Teledata is an ICT solutions integrator operating since 1987, specializing in telecommunications, IT, cybersecurity, and customer experience, driving innovation, efficiency, and business transformation. 🌐 Website: https://www.teledatabrasil.com.br/ We are excited to see GLPI ITSM expanding internationally and helping more clients through our GLPI Network offering, whether […]
29.12.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Indonesia: PT. Azentra Solusi Digital Azentra Solusi Digital  is a leading IT solutions provider in Indonesia, committed to delivering comprehensive technology solutions and services, particularly for the Banking and Financial Services industry. Supported by highly skilled professionals with extensive industry experience, we ensure […]
24.12.25
At Teclib’, the official publisher of GLPI, the end of the year is also a chance to come together differently. Before closing out the year, we organized our Teclib’ Day, a day dedicated to conviviality, sharing, and collective reflection, to celebrate our achievements and further strengthen team bonds. 🎄✨ A solidarity culinary teambuilding at Chefsquare […]
23.12.25
Open Source Experience 2025 brought together key players in open source, free software, and IT service management (ITSM). For GLPI, this edition was an opportunity to strengthen its visibility, present the new features of GLPI 11, and highlight its partner ecosystem. Over two days, the GLPI teams engaged with IT professionals, decision-makers, and partners around […]
16.12.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Brazil: Assistec Informática  A consulting and IT support company with over 30 years of experience, they operate throughout the country. Their services include IT support, technical assistance, IT outsourcing, information systems security, data centers, and cloud computing solutions. They partner with leading global […]
08.12.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Brazil: Engemon IT Engemon IT stands out as a strategic partner focused on understanding the business and cultural needs of its clients. With a comprehensive portfolio of hardware, software, and services, the company provides customized solutions in infrastructure and innovation, serving everyone from […]
04.12.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Qatar: Code Blue Codeblue Technologies is a Qatar-based technology company specializing in software development, IT service management (ITSM), and IT asset management (ITAM) solutions. The company focuses on helping organizations streamline operations, enhance service delivery, and gain full visibility and control over their […]
04.12.25
Two new GLPI versions are available. Wednesday, December 3, 11.0.3 and 10.0.21 were shipped, but soon after a few annoying regressions has been detected, and so a need for new releases. Many bug fixes have also been made, read changelogs for more details: You can download the new archives on GitHub: You will find below […]
24.11.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Argentina: CTL At CTL, they specialize in providing comprehensive monitoring, IT security, and infrastructure management solutions. As an official GLPI partner, they offer specialized technical support, training, and consulting services. Their goal is clear: to help businesses optimize their technology operations and strengthen […]
17.11.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Angola: TIS TIS Tech is a technology consulting company founded in 2013 in Angola, with headquarters in Luanda. The company is committed to leading digital transformation, driven by innovation and promoting business sustainability in the country. Its purpose is to offer comprehensive solutions, ranging […]
13.11.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Brazil: InterOp For over 30 years, InterOp has provided IT services: monitoring and observability, information security, technical support, and environment administration. They support organizations of all sizes and sectors in a personalized, secure, and efficient manner. Their goal is to continuously improve their […]
10.11.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Italy: IWS Consulting IWS Consulting is a company specializing in IT solutions and digital transformation projects. Through a consulting and innovation-driven approach, they support organizations in managing and evolving their infrastructure and applications. Their two areas of expertise work in synergy to optimize […]
04.11.25
A new GLPI version is available: GLPI 11.0.2 You can download the GLPI 11.0.2 archive on GitHub.  Also, here is a short list of important bug fixes included in this version: There are also a lot of additions in the new HLAPI, now in 2.1 version, to add fields (notably in Tickets) previously missing. We also ship […]
27.10.25
A day to celebrate collaboration and innovation The GLPI Partners Day 2025, held in the magnificent Hotel Alfonso XIII in Seville 🇪🇸, brought together our official partners from around the world for a full day dedicated to innovation, collaboration, and the future of GLPI. This 3rd edition was a true celebration of the GLPI ecosystem […]
13.10.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in United Kingdom: Echo-9 Echo-9 is a leading provider of shared services, specialising in delivering innovative solutions to public entities. Our focus is on enhancing operational efficiency and driving sustainable growth through the implementation of advanced technologies. 🌐 Website: https://www.echo-9.org/ We are excited […]
10.10.25
Congratulations! We are happy to announce our new Silver GLPI Network partner in Singapore: Unison Consulting Pte Ltd Unison Consulting combines deep domain expertise in financial services, regulatory reporting, and enterprise integration with proven technical delivery capabilities. Our consultants have led complex, mission-critical transformation programs, supported by a mature managed services model that ensures continuous optimization, […]
09.10.25
A new GLPI version is available: GLPI 11.0.1 Following the major release of GLPI 11, here is the first bugfixes version, correcting most of reported issues. We will continue to fix the remaining reported issues in the coming weeks. In the meantime if you experience an issue, feel free to check if there is already […]
1 2 3 17
chevron-right
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram