Hi,
for project needs I need to disable the native search on the tasklist and activate a new search by creating a plugin to place in place of the old one.
I have already created the plugin by placing it in this position (pluginPoint: “tasklist.list”).
export default {
id: “tasklist.process.custom-search”,
pluginPoint: “tasklist.list”,
priority: 1000,
render: (node, { api }) => {
...
}
}
I currently see the search form with my fields
but I can’t hook up to the tasklist search to add my filters.
in the plugin i am trying to use the api parameter that contains this information
but whatever endpoint I use it gives me 403
api::{
“adminApi”:“/my-path/api/admin”,
“baseApi”:“/my-path/api/engine”,
“cockpitApi”:“/my-path/api/cockpit”,
“tasklistApi”:“/my-path/api/tasklist”,
“engineApi”:“/my-path/api/engine/engine/default”,
“engine”:“default”,
“CSRFToken”:“xxx…”
}
es…
fetch(api.engineApi + “path del rest”, {
method: ‘POST’,
headers: {
‘Content-Type’: ‘application/json’,
‘X-CSRF-TOKEN’: api.CSRFToken
},
body: JSON.stringify(filters)
is this the correct way?
Could you point me to some resources to see how to complete the implementation of this plugin?
Thank you