to-do task configuration action help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 12:45 PM
Hello,
We are trying to utilize the Employee Center as a one-stop shop for most users. For this to work, we need to be able to view and close Service Catalog Tasks from "My Tasks" page.
I have created a new to-do configuration for sc_tasks that are assigned to my groups (todoconfig.png) under "My Tasks" of hrm_todos_page.
For this to-do, I have created a Task Configuration, "Request Details" (requestdetails.png).
Data displays nicely, but I need a button to change the 'state' of the sc_task to "Closed Complete" and am having trouble getting my "Close Task" action button to actually close the task.
I did create an action group name as "SC Task Fulfillers", with "Close Task" action.
I tried using the UI Action script for close_sc_task under the script column, hoping it would be the correct action to take with the button:
function closeTask(){
g_form.setValue('state', 3);
//Call the UI Action and skip the 'onclick' function
gsftSubmit(null, g_form.getFormElement(), 'close_sc_task');
}
//Code that runs without 'onclick'
//Ensure call to server-side function with no browser errors
if (typeof window == 'undefined')
updateTask();
function updateTask(){
current.state = 3;
current.update();
}
Should I be using something different for a script? Am I missing action parameters?
Any help would be appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 08:25 AM
Don't have an answer to your question directly but would maybe question why you would be moving fulfiller/agent tasks into the Employee Center?
Employee Center is positioned as a front end user interface for colleagues. Appreciate you already know this, but not sure I'd be advising or see the logic in moving Agent based task fullfillment over to the Employee Center when you have the main platform UI and workspaces to accomplish this.
Looks like introducing a level of customization that could be a significant problem down the road?