You are browsing the documentation for iTop 2.7 which is not the current version.

Consider browsing to iTop 3.2 documentation

Changing what can be seen on Portal

Question: How to change the default display mode for the Service catalog

  <module_design id="itop-portal" _delta="must_exist">
    <bricks>
      <brick id="services" xsi:type="Combodo\iTop\Portal\Brick\BrowseBrick" _delta="must_exist">
        <browse_modes>
          <default _delta="redefine">mosaic</default>
        </browse_modes>
      </brick>
    </bricks>

Question: How to allow a Support Agent to handle Tickets in the Portal?

The usecase is the following: You have a main provider organization, offering services, and multiple organizations buying those services, out of those clients, some do have teams and agents which do contribute to the Delivery Model of the main organization Services, but limited to tickets created for their organization as the client. We don't want to let those agents see other customers, nor see all tickets of the Main organization.

If they use the console only, they are unable to create Ticket for their organization as they don't see the Services. If they use the Portal, it needs to be modified for them to see the Delivery Model teams and agents, in order to be able to dispatch and assign the tickets outside of their organization

First part to allow them to be able to create a Ticket in New state without being forced to Dispatch or Assign it directly

  <module_design id="itop-portal" _delta="must_exist">
    <forms>
      <form id="ticket-create" _delta="must_exist">
        <properties _delta="define_if_not_exists">
          <always_show_submit _delta="force">true</always_show_submit>
        </properties>
      </form>
    </forms>
    <classes>
      <class id="Contact" _delta="must_exist">
        <scopes>
          <scope id="agents" _delta="define">
            <oql_view><![CDATA[SELECT Contact ... ]]></oql_view>
            <ignore_silos _delta="force">true</ignore_silos>
            <allowed_profiles>
              <allowed_profile id="Support Agent"/>
            </allowed_profiles>
          </scope>
        </scopes>
      </class>
    </classes>
  </module_design>

Query to use to enable agents to see teams and persons required to Dispatch and Assign tickets to the Delivery Model teams and agents when they aren't all part of the user organization. If they are all, this scope is useless, the standard would work:

SELECT Contact AS c 
  JOIN lnkPersonToTeam AS l2 ON l2.person_id = c.id
  JOIN Team AS t ON l2.team_id=t.id 
  JOIN lnkDeliveryModelToContact AS l1 ON l1.contact_id=t.id 
  JOIN DeliveryModel AS dm ON l1.deliverymodel_id=dm.id 
  JOIN Organization AS o ON o.deliverymodel_id=dm.id 
  WHERE o.id = :current_contact->org_id 
UNION SELECT Contact AS c 
  JOIN lnkDeliveryModelToContact AS l1 ON l1.contact_id=c.id 
  JOIN DeliveryModel AS dm ON l1.deliverymodel_id=dm.id 
  JOIN Organization AS o ON o.deliverymodel_id=dm.id 
  WHERE o.id = :current_contact->org_id
2_7_0/customization/portal_howto_changescope.txt ยท Last modified: 2020/04/15 15:23 (external edit)
Back to top
Contact us