Change the default choice of the Service Operations Workspace to "Your team's work"

lrmatamoros
Tera Contributor

I need the SOW to display the team's work by default instead of the person's work.

1 ACCEPTED SOLUTION

Haseeb-Ahmed
ServiceNow Employee
ServiceNow Employee

Hi @lrmatamoros ,

You may follow below

1. open UX Client Script Include (sys_ux_client_script_include) "SowIncidentLandingPageUtilsSNC"

2. Override method "getWorkPersonaConfig" to have "defaultSelected": ["your_team_work"], in non snc version "SowIncidentLandingPageUtils"

3. You may follow this to understand how to override(https://www.servicenow.com/community/itsm-articles/configuration-activities-for-service-operations-w...

 

Please accept the solution or give a thumbs up if it answers your query.

Thanks,
Haseeb Ahmed

View solution in original post

12 REPLIES 12

Haseeb-Ahmed
ServiceNow Employee
ServiceNow Employee

Hi @lrmatamoros ,

You may follow below

1. open UX Client Script Include (sys_ux_client_script_include) "SowIncidentLandingPageUtilsSNC"

2. Override method "getWorkPersonaConfig" to have "defaultSelected": ["your_team_work"], in non snc version "SowIncidentLandingPageUtils"

3. You may follow this to understand how to override(https://www.servicenow.com/community/itsm-articles/configuration-activities-for-service-operations-w...

 

Please accept the solution or give a thumbs up if it answers your query.

Thanks,
Haseeb Ahmed

Hello @Haseeb-Ahmed  
We've implemented your suggestion, and now the default value of the component changes to 'Your team's work,' and also for the donut visualizations which is great. However, we've encountered an issue where this change isn't reflected in the list below. Could you please provide guidance on what might be missing from our configurations to address this?

Please refer the below code and images and let us know if you need anything else from our end.

 

function include({imports}) { 
    let serviceDeskLandingPageUtilsSNC = imports['sn_sow_inc.SowIncidentLandingPageUtilsSNC']();
    class ServiceDeskLandingPageUtils extends serviceDeskLandingPageUtilsSNC {
        /*
        static getLabelMaps() {
            return "";
        }*/


static async getWorkPersonaConfig(helpers) {
            return {
                "items": [{
                        "id": "your_work",
                        "label": await helpers.translate("Your work")
                    },
                    {
                        "id": "your_team_work",
                        "label": await helpers.translate("Your team's work")
                    }
                ],
                "defaultSelected": ["your_team_work"]
            }
        }

    }
    return ServiceDeskLandingPageUtils;
}

 

Hi @AishwaryaM20522 

Please check if the client script include has method "getInitialVisualizationConfig" , if yes override this method for initial selection of donut and list. This should solve your issue. If you don't find above method in OOTB version of script include, try to update SOW apps.

Please mark the answer helpful if this solves your issue.

NoBert
Tera Contributor

Hi @Aniket15 ,

My script include has the below method. I have overwritten the method to changed the values for titel and query with no effect to my tier2 landing page. Is that the wrong method?

 

NoBert_0-1716383295704.png