Option to hide "Worklog Timer" buttom from the request details page
Use Case:
In certain cases, it is mandatory for the technicians to add worklog with all the necessary details filled. But "Worklog Timer" option logs only the time duration, other details have to be filled again when adding the worklog. This option can be removed from the request details page.
Execution Steps:
- Go to the folder [SDP-Home] > custom > scripts > and edit the file CustomScripts.js
- Add the below code in CustomScripts.js and save.
//This will hide the "WorkLog Timer" from the request details page
jQuery(document).ready(function () {
if (location.href.indexOf("WorkOrder.do") > 0) {
jQuery('#
wlt-item').hide(); // For below 10.0 versions
jQuery('#worklog-timer').parent().hide(); // For above 10.0
}
});
Note: This will hide the "Worklog Timer" options from the request details page.
New to ADSelfService Plus?
Related Articles
Hide Asset
Use case If Technicians want to hide Asset field during template loading, then the same can be achieved using Execute Script option in Field and Form Rules. Solution Edit the incident/service template from which the asset needs to be hidden, choose ...
Script to Disable Worklog Addition on Closed Request
Kindly use the below scripts under Admin -> Page Scripts to disable Worklog addition on Closed request. The below script hides the Save option while creating new worklog on closed request. Script: let params=new ...
Script to hide the "Cancel Request" option from the request actions menu for technicians
Script to hide the "Cancel Request" options from the request actions menu for technicians. 1. Goto-->Admin--->Page Scripts 2. Condition-->Roles is---->select all the roles associated with the technicians 3. Execute the script---> ...
Query to retrieve worklog details
Tested in: 14610 (Postgres) Query: SELECT wo.WORKORDERID AS "Request ID", aau.FIRST_NAME AS "Requester", sdo.NAME AS "Site", ti.FIRST_NAME AS "Request Technician" ,au1.FIRST_NAME AS "Worklog Technician", TO_CHAR(((sum(ct.TIMESPENT))/1000 || ' ...
How to auto-create worklog based on values specified in the request
This post will to help you create a worklog automatically when a request is created. This script can be configured under Request custom triggers and you will find more information about this here. This is achieved using an API call to create a ...