Hello @Nam Mai , I have followed your direction and modified the files as follows :
variables.Portal.Dashboard.json
[{
"id": "statistics-dashboard",
"version": "12.0.0",
"titles": [
{ "locale": "en", "value": "Statistics" },
{ "locale": "de", "value": "Statistiken" },
{ "locale": "fr", "value": "Statistiques" },
{ "locale": "es", "value": "Estadísticas" }
],
"icon": "fa fa-bar-chart",
"widgets": [
{
"type": "client-statistic",
"id": "tasks_by_priority_stat",
"layout": {
"x": 0, "y": 0,
"w": 12, "h": 8,
"styleClass": "ivy-statistics-widget"
},
"chartId": "10",
"showFullscreenMode": true
}
],
"permissions": [ "Everybody" ]
}]
variables.Portal.ClientStatistic.json
{
"enabled": true,
"showOnlyForRoles": [],
"showExportButtons": true
}
variables.Portal.StatisticCharts.json
[
{
"id": "10",
"aggregates": "priority",
"filter": "businessState:OPEN IN_PROGRESS,canWorkOn",
"chartTarget": "TASK",
"chartType": "pie",
"names": [
{ "locale": "en", "value": "Tasks by Priority" },
{ "locale": "de", "value": "Aufgaben nach Priorität" },
{ "locale": "fr", "value": "Tâches par priorité" },
{ "locale": "es", "value": "Tareas por prioridad" }
],
"descriptions": [
{ "locale": "en", "value": "This pie chart displays all tasks by priority." },
{ "locale": "de", "value": "Dieses Kreisdiagramm zeigt alle Aufgaben nach Priorität an." },
{ "locale": "fr", "value": "Ce diagramme à secteurs affiche toutes les tâches par priorité." },
{ "locale": "es", "value": "Este gráfico circular muestra todas las tareas por prioridad." }
],
"icon": "si si-analytics-pie-2",
"refreshInterval": 300,
"permissions": [ "Everybody" ]
}
]
Unfortunately, I still get the same error as before :
The response of the statistics API is :
{
"errorId": "1964391B8E9B5749",
"errorMessage": "com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.util.ArrayList<com.axonivy.portal.bo.ClientStatistic>` from Object value (token `JsonToken.START_OBJECT`)\n at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]",
"statusCode": 500
}
Am I missing something else here?