I'm trying to dispatch a ticket to a team of another organization through the portal.
In the non-portal view this is working, but when I switch to portal-view and try to assign/re-assign ticket, I only see the teams of my own organization.
Can someone help me with this?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
<?xml version="1.0" encoding="UTF-8"?><itop_designxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"version="1.0"><module_designid="itop-portal"_delta="must_exist"><forms><formid="ticket-create"_delta="must_exist"><properties_delta="define_if_not_exists"><always_show_submit_delta="force">true</always_show_submit></properties></form></forms><classes><classid="Contact"_delta="must_exist"><scopes><scopeid="agents"_delta="define"><oql_view><![CDATA[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]]></oql_view><ignore_silos_delta="force">true</ignore_silos><allowed_profiles><allowed_profileid="Support Agent"/></allowed_profiles></scope></scopes></class></classes></module_design></itop_design>
Your extension is missing the module dependencies, it must be loaded after the module which brings the /itop_design/module_design[itop-portal] which you are trying to modify !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I checked my dependecies and I think it's correct, or is there something missing?
<?php//// iTop module definition file//SetupWebPage::AddModule(__FILE__,// Path to the current file, all other file names are relative to the directory containing this file'sample-portal-show-org/1.0.0',array(// Identification//'label'=>'Sample Portal - Show all Organization in Portal','category'=>'business',// Setup//'dependencies'=>array('itop-portal/2.7.0'),'mandatory'=>false,'visible'=>true,// Components//'datamodel'=>array('model.sample-portal-show-org.php'),'webservice'=>array(),'data.struct'=>array(// add your 'structure' definition XML files here,),'data.sample'=>array(// add your sample data XML files here,),// Documentation//'doc.manual_setup'=>'',// hyperlink to manual setup documentation, if any'doc.more_information'=>'',// hyperlink to more information, if any // Default settings//'settings'=>array(// Module specific settings go here, if any),));?>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got the same issue but relate to class instead of portal.
====
Error loading module "add-acceptance-problem-extension": /itop_design/classes/class[Problem] at line 4: could not be found - Loaded modules: dictionaries,core,application,add-acceptance-problem-extension
===
Could you please help to advise how to add dependencies?
Hi There
I'm trying to dispatch a ticket to a team of another organization through the portal.
In the non-portal view this is working, but when I switch to portal-view and try to assign/re-assign ticket, I only see the teams of my own organization.
Can someone help me with this?
Thanks
Hello,
Take a look at your portal user scopes ?
If you don't know what scopes are, take a look at this tutorial : Changing what can be seen on Portal [iTop Documentation]
Hi Pierre
Thanks for the link.
I tried to implent this with an extension.
But I get this error:
Last edit: Userofuser 2021-12-14
Your extension is missing the module dependencies, it must be loaded after the module which brings the /itop_design/module_design[itop-portal] which you are trying to modify !
Hi Vincent
I checked my dependecies and I think it's correct, or is there something missing?
Hi Userofuser,
I have the exact same problem. Did you manage to solve this?
Regards,
Pierre R
Hello,
The module dependencies are now :
On compilation time you get the error :
This XML node is defined in itop-portal indeed.
The error doesn't list itop-portal as a loaded module... Did you try with another version like
itop-portal/1.0.0
?Warning, you're overriding the Contact class also so you should add this dependency as well.
Last edit: Pierre Goiffon 2022-01-27
Hello Pierre Goiffon,
I got the same issue but relate to class instead of portal.
====
Error loading module "add-acceptance-problem-extension": /itop_design/classes/class[Problem] at line 4: could not be found - Loaded modules: dictionaries,core,application,add-acceptance-problem-extension
===
Could you please help to advise how to add dependencies?
Thank in advance.
Quan Pham.
Last edit: Pham Hong Quan 2022-11-02
The error capture.
See above, you'll likely need to add a dependency to itop-problem-mgmt
Last edit: Jeffrey Bostoen 2022-11-04