How can we add widgets to service operations workspace homepage ( My teams work )

Sumeet1877
Mega Expert

I was modifying the client script to achieve visibility of some widgets and hide some in my work and my teams work . Need suggestion if apart of client script we need to have EVAM id updated to segregate widgets on my work and my teams work for service operations workspace .Is it only the clients scripts or there any other components required like evam ID , etc .

 

Sumeet1877_0-1690505769286.jpeg

 

Updated client <UpdateCurrentVizSelection> script :

 

Requirement - On Service Operations workspace landing page 

If the user selection will be my work -> show x , y , z widgets 

if the user selection will be my team's work -> show a,b,c  widgets 

if the user selection will be IT level one support -> show d,e,f  widgets 

 

Sample script :

if(event.payload){
        teamsMode = (event.payload.value[0] == 'it_level_one_support');
    } 
    if(!previousVizSelection.elementId){
        var evamData = serviceDeskUtils.getVisualisationCardData();
    if (teamsMode) {
            currentVizSelection.title = evamData['single_score_1']['label'];
            currentVizSelection.element = "single_score_1";
        } 
    }

 

Sumeet1877_1-1690505889270.png

 

 

0 REPLIES 0