ESC Portal: What's the best way to enhance the HRM Case Acceptance from My Task and from My Request

ImedCG
Tera Expert

Hello Expert,

In ESC Portal, we need your advice: the goal is to enhance the HRM Case acceptance behavior.

From "My Task" menu is easy we have the To-Dos configuration that we have already a mapping for HR Case, 'HR Acceptance' and  can map the new Widget by cloning the OOTB Widget and modify here.

But for from "My request" i think is hard coded in the "HRM Task List" that call the mapping in one restricted script include "sn_hr_sp.hr_ticketPageToDoSNC" here they intiate the static mapping by this function

getAcceptanceConfiguration: function(taskSysId) {
       
        var todoRecordData = {};
       
        todoRecordData.widgetMappings = [{
            condition : "",
            widgetSysId : "592bdb6b5b3b1300f1eaefe5f0f91a04",
            widgetId : "hrm-case-acceptance"
        }];
 
And to modify this is very high.
There is any simple to modify this and call our custom widget instead this?
I modified in the "HRM Tasl List " widget by setting the variable with my new widget instead this
 recordJSON = utilTicketPageTodo.getAcceptanceConfiguration(tasksInfo[i].sys_id);
but i think is not a good way and best practice to do that
 
The Scenario is:
From my request
ImedCG_0-1740993143287.png

 

after click one the HR Case:

ImedCG_1-1740993222098.png

 

After click on 

ImedCG_2-1740993315910.png

 

 

But for My Tasks we have directly Open and Completed Record and when i choose my Case in "Waiting acceptance" state i want to redirect for my new custom widget and is done by To-dos mapping and work fine:

ImedCG_4-1740993680559.png

 


 

 

 

Thanks in advance

 

0 REPLIES 0