How to remove default filter from Filter roadmap items in Strategic Planning Workspace

Alex Tod1
Kilo Sage

Hello everyone!

 I am facing a problem, I want to remove any filter that applies to the roadmap section in the Strategic Planning Workspace, by default is applied next filter "Planning state is Prioritized",  it can be removed, but on the next page reload it appears. Any idea how it could be removed? I specify that I tried to remove it from UI Builder, also to find the filter in the System Definitions > Filter section

 

AlexTod1_0-1696518739036.png

 

 

2 REPLIES 2

Matthew Frazier
Tera Contributor

It's in the UX Client Script "Get quick filter preferences success handler" which is:

/sys_ux_client_script.do?sys_id=ccb6082b43df21103656460dbab8f2e9

 

Change  this line:

const defaultRoadmapQuickFilter = [{"planning_state":[{"value":"prioritized","displayValue":"Prioritized"}]}];

to something like:

 const defaultRoadmapQuickFilter = [];

 

 

Don't you love hardcoded configurations that are buried literally 10+ layers deep? I didn't even find what started the chain, but something is invoking a data resource which calls a success event to trigger a client script which invokes another data resource which calls a success event to trigger anther client script which calls this 'Get quick filter preferences' data resource which calls a success event to trigger the above client script, which sets a client state which is set as the default value of the quick filter component.

Alex2506
Tera Expert

Just to add to this, looks like some more code has been added in since this. This worked for me....

Replace these lines:

 

var roadmapQuickFilter = api.data.get_quick_filter_preferences.result.preferences[1].value;
const defaultRoadmapQuickFilter = [{"planning_state":[{"value":"prioritized","displayValue":"Prioritized"}]}];

 

with:

 

var roadmapQuickFilter = [];
const defaultRoadmapQuickFilter = [];