Menu

Display linked Service Requests in Problem de

Alex B.
2012-12-03
2012-12-19
  • Alex B.

    Alex B. - 2012-12-03

    Hello,

    there's a field in Service Requests to select a related problem.
    Now my question:
    Is it possible (and if, how?) to display all linked Service Requests in the opened Problem record?
    My idea is to have a new tab 'linked Service Requests' where i see all Service Requests which have the opened Problem as 'related problem'.

    Thanks,
    Alex

     
  • Alex B.

    Alex B. - 2012-12-03

    Hello,

    found the solution by myself:
    Just add/modify the following 2 lines in the file 'model.itop-problem-mgmt.php':

    MetaModel::Init_AddAttribute(new AttributeLinkedSet("userrequests_list", array("linked_class"=>"UserRequest", "ext_key_to_me"=>"related_problem_id", "allowed_values"=>null, "count_min"=>0, "count_max"=>0, "depends_on"=>array())));  //2012-12-03 aba: display all related UserRequests, also added 2 lines below
    
            MetaModel::Init_SetZListItems('details', array('document_list', 'ci_list', 'contact_list','incident_list','userrequests_list',
    

    and add the variable 'userrequests_list' to the language file 'en.dict.itop-problem-mgmt.php'.

    Regards,
    Alex

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.