Script to Disable Worklog Addition on Closed Request

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 URLSearchParams(window.location.search);
let requestId = params.get("moduleId");
jQuery.ajax({url:"/api/v3/requests/"+requestId}).then((response)=>{if(response.request.status.name=="Closed"){$CS.hideElement("submit")}}); 


Reference Image:


                  New to ADSelfService Plus?