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:
- var stagesList = document.getElementById("stagesList");
- if (stagesList) {
- var uat = stagesList.getElementsBySelector("[data-cs-field='UAT_tab']");
- if (uat && uat.length > 0) {
- uat[0].setStyle("display:none !important");
- }
- }
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