- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 05:29 AM
I need the SOW to display the team's work by default instead of the person's work.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2024 06:34 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2024 06:34 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2024 05:00 AM - edited ‎04-11-2024 06:15 AM
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;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2024 07:39 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 06:13 AM
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?