<?xml version="1.0" encoding="UTF-8"?>
<dashboard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <layout>DashboardLayoutTwoCols</layout>
  <title/>
  <auto_reload>
    <enabled>false</enabled>
    <interval>300</interval>
  </auto_reload>
  <cells xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <cell id="1">
      <rank>10</rank>
      <dashlets>
        <dashlet id="9" xsi:type="DashletHeaderDynamic" _revision_id="1811" _altered_in="">
          <rank>10</rank>
          <title>Support</title>
          <icon>itop-welcome-itil/images/applicationservice_481d3d9d8aa794e65ba40ea5d4f727be.png</icon>
          <subtitle>Incidents non traités</subtitle>
          <query>SELECT `Incident` FROM Incident AS `Incident` JOIN Organization AS `Organization` ON `Incident`.org_id = `Organization`.id JOIN Organization AS `Organization1` ON `Organization`.parent_id BELOW `Organization1`.id
                  WHERE
                  (`Incident`.`status` NOT IN ('closed', 'resolved'))
                  AND (`Incident`.`team_id` IN ('0', '2', '9164', '2307', '1698', '994', '3', '1894', '9339', '2027', '2028', '13'))
                  AND (`Incident`.`parent_incident_id` = '0')
                  AND (`Organization1`.`id` NOT IN ('215','1955','225','55','226','227', '222','231','20','224','220','378'))
                </query>
          <group_by>status</group_by>
          <values>dispatched,updated,new,redispatched</values>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="2">
      <rank>20</rank>
      <dashlets>
        <dashlet id="10" xsi:type="DashletHeaderDynamic" _revision_id="1811" _altered_in="">
          <rank>10</rank>
          <title>Services Managés</title>
          <icon>itop-welcome-itil/images/icons8-process-improvement_3888f8a9425b5c324b8142fedaa76cf8.svg</icon>
          <subtitle>Demandes non traitées</subtitle>
          <query>SELECT `UserRequest` FROM UserRequest AS `UserRequest` JOIN Organization AS `Organization` ON `UserRequest`.org_id = `Organization`.id JOIN Organization AS `Organization1` ON `Organization`.parent_id BELOW `Organization1`.id
                  WHERE
                  (`UserRequest`.`status` NOT IN ('closed', 'resolved'))
                  AND (`UserRequest`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '2028', '13', '9339', '9164'))
                  AND (`UserRequest`.`parent_request_id` = '0')
                  AND (`Organization1`.`id` NOT IN ('215','1955','225','222','226','227','231','20','224','220','378')) AND (`UserRequest`.`service_id` != '24')
                </query>
          <group_by>status</group_by>
          <values>dispatched,updated,new,redispatched</values>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="3">
      <rank>30</rank>
      <dashlets>
        <dashlet id="5" xsi:type="DashletGroupByTable" _revision_id="1811" _altered_in="">
          <rank>10</rank>
          <title>Incidents à traiter en urgence !</title>
          <query>SELECT `Incident` FROM Incident AS `Incident` JOIN Organization AS `Organization` ON `Incident`.org_id = `Organization`.id JOIN Organization AS `Organization1` ON `Organization`.parent_id BELOW `Organization1`.id
                  WHERE
                  (`Incident`.`status` NOT IN ('closed', 'resolved'))
                  AND (`Incident`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '9339', '2028', '13', '9164'))
                  AND (`Incident`.`parent_incident_id` = '0')
                  AND (`Organization1`.`id` NOT IN ('215','1955','225','55','222','226','227','231','20','224','220','378'))
                  AND ((`Incident`.`priority` = '1')
                  OR ((`Incident`.`priority` = '2') AND (`Incident`.`last_update` &lt; (DATE_SUB(NOW(), INTERVAL 1 DAY))))
                  OR (`Incident`.`status` IN ('updated', 'new', 'dispatched', 'redispatched'))
                  OR (`Incident`.`last_update` &lt; (DATE_SUB(NOW(), INTERVAL 4 DAY)))
                  OR ((ISNULL(`Incident`.`tto_escalation_deadline`) = 0) AND (`Incident`.`status` NOT IN ('pending', 'closed', 'updated', 'resolved')))
                  OR ((ISNULL(`Incident`.`ttr_escalation_deadline`) = 0)AND (`Incident`.`status` NOT IN ('pending', 'closed', 'updated', 'resolved'))))
                </query>
          <group_by>team_id</group_by>
          <style>table</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute/>
          <limit/>
          <order_by>function</order_by>
          <order_direction/>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="4">
      <rank>40</rank>
      <dashlets>
        <dashlet id="4" xsi:type="DashletGroupByTable" _revision_id="1811" _altered_in="">
          <rank>10</rank>
          <title>Demandes à traiter en urgence !</title>
          <query>SELECT `UserRequest` FROM UserRequest AS `UserRequest` JOIN Organization AS `Organization` ON `UserRequest`.org_id = `Organization`.id JOIN Organization AS `Organization1` ON `Organization`.parent_id BELOW `Organization1`.id
                  WHERE
                  (`UserRequest`.`status` NOT IN ('closed', 'resolved'))
                   AND (`UserRequest`.`service_id` != '24') AND (`UserRequest`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '9339', '2028', '13', '9164'))
                  AND (`UserRequest`.`parent_request_id` = '0')
                  AND (`Organization1`.`id` NOT IN ('215','1955','225','226','227','231','222','20','224','220','378'))
                  AND ((`UserRequest`.`priority` = '1')
                  OR ((`UserRequest`.`priority` = '2') AND (`UserRequest`.`last_update` &lt; (DATE_SUB(NOW(), INTERVAL 1 DAY)))) OR (`UserRequest`.`status` IN ('new', 'updated', 'dispatched', 'redispatched'))
                  OR ((ISNULL(`UserRequest`.`tto_escalation_deadline`) = 0) AND (`UserRequest`.`status` NOT IN ('pending', 'closed', 'updated', 'resolved')))
                  OR ((ISNULL(`UserRequest`.`ttr_escalation_deadline`) = 0)  AND (`UserRequest`.`status` NOT IN ('pending', 'closed', 'updated', 'resolved')))
                  OR (`UserRequest`.`last_update` &lt; (DATE_SUB(NOW(), INTERVAL 4 DAY))))</query>
          <group_by>team_id</group_by>
          <style>table</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute/>
          <limit/>
          <order_by>function</order_by>
          <order_direction/>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="5">
      <rank>50</rank>
      <dashlets>
        <dashlet id="7" xsi:type="DashletGroupByTable" _revision_id="1811" _altered_in="">
          <rank>10</rank>
          <title>Incidents ouverts</title>
          <query>SELECT `Incident` FROM Incident AS `Incident` JOIN Organization AS `Organization` ON `Incident`.org_id = `Organization`.id JOIN Organization AS `Organization1` ON `Organization`.parent_id BELOW `Organization1`.id
                    WHERE
                    (`Incident`.`status` NOT IN ('closed', 'resolved'))
                    AND (`Incident`.`team_id` IN ('0', '2', '2307', '1698', '994', '9339', '3', '1894', '2027', '2028', '13', '9164'))
                    AND (`Incident`.`parent_incident_id` = '0')
                    AND (`Organization1`.`id` NOT IN ('215','1955','225','222','55','226','227','231','20','224','220','378'))
                  </query>
          <group_by>team_id</group_by>
          <style>table</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute/>
          <limit/>
          <order_by>function</order_by>
          <order_direction/>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="6">
      <rank>60</rank>
      <dashlets>
        <dashlet id="6" xsi:type="DashletGroupByTable" _revision_id="1811" _altered_in="">
          <rank>10</rank>
          <title>Demandes ouvertes</title>
          <query>SELECT `UserRequest` FROM UserRequest AS `UserRequest` JOIN Organization AS `Organization` ON `UserRequest`.org_id = `Organization`.id JOIN Organization AS `Organization1` ON `Organization`.parent_id BELOW `Organization1`.id
                    WHERE
                    (`UserRequest`.`status` NOT IN ('closed', 'resolved'))
                     AND (`UserRequest`.`service_id` != '24') AND (`UserRequest`.`team_id` IN ('0', '2', '9339', '2307', '1698', '994', '3', '1894', '2027', '2028', '13', '9164'))
                    AND (`UserRequest`.`parent_request_id` = '0')
                    AND (`Organization1`.`id` NOT IN ('215','1955','222','225','226','227','231','20','224','220','378'))
                  </query>
          <group_by>team_id</group_by>
          <style>table</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute/>
          <limit/>
          <order_by>function</order_by>
          <order_direction/>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="7">
      <rank>70</rank>
      <dashlets>
        <dashlet id="11" xsi:type="DashletGroupByPie" _revision_id="1811" _altered_in="">
          <rank>10</rank>
          <title>Satisfaction Client - Incidents</title>
          <query>SELECT `Incident` FROM Incident AS `Incident`
                    JOIN Organization AS `Organization` ON `Incident`.org_id = `Organization`.id
                    JOIN Organization AS `Organization1` ON `Organization`.parent_id BELOW `Organization1`.id
                    WHERE (`Incident`.`close_date` &gt;= '2025-01-01 00:00:00')AND (`Incident`.`team_id` IN ('0', '2', '2307', '1698', '994', '9339', '3', '1894', '2027', '2028', '13', '9164'))
                    AND (`Organization1`.`id` NOT IN ('215','1955','225','55','222','226','227','231','20','224','220','378'))
                  </query>
          <group_by>user_satisfaction</group_by>
          <style>pie</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute/>
          <limit/>
          <order_by/>
          <order_direction/>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="8">
      <rank>80</rank>
      <dashlets>
        <dashlet id="12" xsi:type="DashletGroupByPie" _revision_id="1811" _altered_in="">
          <rank>10</rank>
          <title>Satisfaction Client - Demandes</title>
          <query>SELECT `UserRequest` FROM UserRequest AS `UserRequest` JOIN Organization AS `Organization` ON `UserRequest`.org_id = `Organization`.id JOIN Organization AS `Organization1` ON `Organization`.parent_id BELOW `Organization1`.id
                    WHERE
                    (`UserRequest`.`close_date` &gt;= '2025-01-01 00:00:00')
                     AND (`UserRequest`.`service_id` != '24') AND (`UserRequest`.`parent_request_id` = '0') AND (`UserRequest`.`service_id` NOT IN ('12', '17','18', '22','32','33'))
                    AND (`UserRequest`.`team_id` IN ('0', '2', '2307', '1698', '994', '9339', '3', '1894', '2027', '2028', '13', '9164'))
                    AND (`Organization1`.`id` NOT IN ('215','1955','225','226','227','231','222','20','224','220','378'))
                  </query>
          <group_by>user_satisfaction</group_by>
          <style>pie</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute/>
          <limit/>
          <order_by/>
          <order_direction/>
        </dashlet>
      </dashlets>
    </cell>
  </cells>
</dashboard>
