Hide stages from stageslist within a change

Hide stages from stageslist within a change

Hi,

I'm trying to apply a script that hides a specific stage (e.g. the UAT stage) from the stages list within the change view (see attachment). I just wrote a tiny JS script to accomplish the task:

  1. var stagesList = document.getElementById("stagesList");
  2. if (stagesList) {
  3.   var uat = stagesList.getElementsBySelector("[data-cs-field='UAT_tab']");
  4.   if (uat && uat.length > 0) {
  5.     uat[0].setStyle("display:none !important");
  6.   }
When I execute the code within e.g. the Chrome dev tools JS console, it works fine and the UAT stage is hidden.
But unfortunately I cannot find a proper place to configure the script execution within Servicedesk Plus.

Maybe someone is able to help me with this one.

Thanks in advance
BR
Manuel

                  New to ADSelfService Plus?