<?xml version="1.0" encoding="UTF-8"?>
<dashboard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <layout>DashboardLayoutThreeCols</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="DashletHeaderStatic">
          <rank>10</rank>
          <title>Nouveaux tickets</title>
          <icon>itop-welcome-itil/images/communication_90109793268989a4709622ad7341c32d.png</icon>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="2">
      <rank>20</rank>
      <dashlets>
        <dashlet id="1" xsi:type="DashletGroupByBars">
          <rank>10</rank>
          <title>Support</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`.`start_date` &gt;= '2023-01-01 00:00:00')
                    AND (`Incident`.`parent_incident_id` = '0')AND (`Incident`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '2028', '13'))
                    AND (`Organization1`.`id` NOT IN ('215','1955','225','55','222','226','227','231','20','224','220','378'))
                  </query>
          <group_by>start_date:month</group_by>
          <style>bars</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute/>
          <limit/>
          <order_by/>
          <order_direction/>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="3">
      <rank>30</rank>
      <dashlets>
        <dashlet id="2" xsi:type="DashletGroupByBars">
          <rank>10</rank>
          <title>Services Managés</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`.`start_date` &gt;= '2023-01-01 00:00:00')
                    AND (`UserRequest`.`service_id` NOT IN ('12', '18'))
                    AND (`UserRequest`.`parent_request_id` = '0') AND (`UserRequest`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '2028', '13'))
                    AND (`Organization1`.`id` NOT IN ('215','1955','225','226','227','231','222','20','224','220','378'))
                  </query>
          <group_by>start_date:month</group_by>
          <style>bars</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute/>
          <limit/>
          <order_by/>
          <order_direction/>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="4">
      <rank>40</rank>
      <dashlets>
        <dashlet id="8" xsi:type="DashletHeaderStatic">
          <rank>10</rank>
          <title>Satisfaction Client</title>
          <icon>itop-welcome-itil/images/icons8-checkmark_dc3fb6c14fca203c27f518335039a219.svg</icon>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="5">
      <rank>50</rank>
      <dashlets>
        <dashlet id="5" xsi:type="DashletGroupByPie">
          <rank>10</rank>
          <title>Support</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;= '2023-01-01 00:00:00')AND (`Incident`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '2028', '13')) AND (`Incident`.`parent_incident_id` = '0')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>attribute</order_by>
          <order_direction>asc</order_direction>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="6">
      <rank>60</rank>
      <dashlets>
        <dashlet id="6" xsi:type="DashletGroupByPie">
          <rank>20</rank>
          <title>Services Managés</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;= '2023-01-01 00:00:00')
                    AND (`UserRequest`.`service_id` NOT IN ('12', '17','18', '22','32','33'))
                    AND (`UserRequest`.`parent_request_id` = '0') AND (`UserRequest`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '2028', '13'))
                    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>attribute</order_by>
          <order_direction>desc</order_direction>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="7">
      <rank>70</rank>
      <dashlets>
        <dashlet id="7" xsi:type="DashletHeaderStatic">
          <rank>10</rank>
          <title>SLA de Prise en Charge dépassé ?</title>
          <icon>itop-welcome-itil/images/icons8-music-robot_6c44c67b1f291f795f99971f6a550444.svg</icon>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="8">
      <rank>80</rank>
      <dashlets>
        <dashlet id="4" xsi:type="DashletGroupByPie">
          <rank>10</rank>
          <title>Support</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;= '2023-01-01 00:00:00')
                    AND (`Incident`.`parent_incident_id` = '0')AND (`Incident`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '2028', '13'))
                    AND (`Organization1`.`id` NOT IN ('215','1955','225','55','222','226','227','231','20','224','220','378'))
                  </query>
          <group_by>sla_tto_passed</group_by>
          <style>pie</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute>sla_tto_passed</aggregation_attribute>
          <limit/>
          <order_by>attribute</order_by>
          <order_direction>asc</order_direction>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="9">
      <rank>90</rank>
      <dashlets>
        <dashlet id="12" xsi:type="DashletGroupByPie">
          <rank>10</rank>
          <title>Services Managés</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;= '2023-01-01 00:00:00') AND (`UserRequest`.`service_id` NOT IN ('12', '18'))AND (`UserRequest`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '2028', '13')) AND (`UserRequest`.`parent_request_id` = '0') AND (`Organization1`.`id` NOT IN ('215','1955','225','226','227','231','222','20','224','220','378'))</query>
          <group_by>sla_tto_passed</group_by>
          <style>pie</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute>sla_tto_passed</aggregation_attribute>
          <limit/>
          <order_by>attribute</order_by>
          <order_direction>desc</order_direction>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="10">
      <rank>100</rank>
      <dashlets>
        <dashlet id="10" xsi:type="DashletHeaderStatic">
          <rank>10</rank>
          <title>SLA de résolution/traitement dépassé ?</title>
          <icon>itop-welcome-itil/images/business-process_1414057111c1a7c8218764bda8c67a59.png</icon>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="11">
      <rank>110</rank>
      <dashlets>
        <dashlet id="3" xsi:type="DashletGroupByPie">
          <rank>10</rank>
          <title>Support</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;= '2023-01-01 00:00:00')AND (`Incident`.`parent_incident_id` = '0')AND (`Incident`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '2028', '13')) AND (`Organization1`.`id` NOT IN ('215','1955','225','55','222','226','227','231','20','224','220','378')) </query>
          <group_by>sla_ttr_passed</group_by>
          <style>pie</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute>sla_ttr_passed</aggregation_attribute>
          <limit/>
          <order_by>attribute</order_by>
          <order_direction>desc</order_direction>
        </dashlet>
      </dashlets>
    </cell>
    <cell id="12">
      <rank>120</rank>
      <dashlets>
        <dashlet id="11" xsi:type="DashletGroupByPie">
          <rank>10</rank>
          <title>Services Managés</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;= '2023-01-01 00:00:00') AND (`UserRequest`.`service_id` NOT IN ('12', '18'))AND (`UserRequest`.`parent_request_id` = '0') AND (`UserRequest`.`team_id` IN ('0', '2', '2307', '1698', '994', '3', '1894', '2027', '2028', '13')) AND (`Organization1`.`id` NOT IN ('215','1955','225','226','227','231','222','20','224','220','378'))</query>
          <group_by>sla_ttr_passed</group_by>
          <style>pie</style>
          <aggregation_function>count</aggregation_function>
          <aggregation_attribute>sla_ttr_passed</aggregation_attribute>
          <limit/>
          <order_by>attribute</order_by>
          <order_direction>desc</order_direction>
        </dashlet>
      </dashlets>
    </cell>
  </cells>
</dashboard>
