Advanced dashboards
Requirements (self-hosted)
11.0.x
8.2
8.4
12.0.X
8.3
8.5
Install the plugin
Go to the marketplace. Download and install the "Advanced dashboard" plugin.

Setup the plugin
Create an SQL query
The sql editor provides some special tags to include some session variables :
{{glpiID}}-> id of the connected user{{glpiactive_entity}}-> id of the active entity{{glpiactive_entity_recursive}}-> do we show child entity ?{{glpiactiveentities_string}}-> all active entities (current + child) in coma separated string, ex: '2', '4', ...{{glpigroups}}-> all groups of current user in coma separated string, ex: '2', '4', ...
The below example gives us the number of tickets on the root entity over the last 2 years:
Setting query-related parameters
From
Tools>Advanced dashboard(or SQL for dashboards on GLPI 10), click on addName your query (the one that will be visible from the dashboards) and identify it as active.
In the SQL Editor tab, paste the above query, taking care to change the name of the entity if you have changed it.
Click on the floppy icon to save the query and then on play icon to run the query.

An insert at the bottom will display the result of the query:

In the set up fields tab, define the label, the number and the main label (optional, this is the name your table will have). In our case, the label will be "year", the number will be "number of tickets" and the main label will be ""number of tickets per year".
Select the type of graph (this is for information purposes only, so that you can preview your table; you will be asked to select the type of graph you want to appear in the tile later),
You can limit the amount of data to be displayed.
Then click on Save fields and preview.

Dashboard settings
From Assistance > Dashboard, select the dashboard that is to receive the new tile
Click on edit icon
Add a new tile with plus icon
Select the query you have just created
Choose a colour for your tile

You will then be asked to select the chart type
Some dashboards may ask you to use colours and display values and labels.

Your tile is now ready

Adding a New Database
You can add another GLPI database to query.
Click
Tools>Advanced Dashboard(orSQL for Advanced Dashboard).In the top menu, click
Database, then+ Add.Enter your database information and click
+ Add.

From Tools > Advanced Dashboard (or SQL for Advanced Dashboard), you can select the database to query.

Saved Searches
With Advanced Dashboard, you can display the results of your saved searches from a dashboard. This can be done with both asset inventory and ticket items.
We will use tickets with a New status as an example.
Performing and Saving a Search
The first step is to perform a search and save it.
From
Assistance>Tickets, perform your search using the desired criteria.

Click the save icon

In the new window that appears, adjust the settings:
Name
Count: Auto / Yes / No
Visibility: Your search must be public.
Entity: Select the desired entity.
Child-entities: Allow or deny access to sub-entities.

Setting up the saved search
You will then be redirected to your new saved search. You can adjust certain settings as needed.
You can also add alerts. See the dedicated article for more information.
Integration into the dashboard.
From your dashboard, click the edit icon
Click an empty tile to add your search

In the dropdown list, select Public saved searches and then the desired search.

Several display modes are available. You can choose a number to display, and clicking on that number will redirect you to the search results.

You can also display the results directly in the dashboard. You will need to adjust the maximum number of results to avoid overloading your dashboard.


FAQ
If you have any questions about using the plugin, please consult our FAQ
Last updated