exlude info message for workspace

jai281997
Tera Contributor

Hello everyone
i have created a display businees rule to get info message on incident when priority level is low, but

jai281997_0-1720980315031.png

jai281997_1-1720980456242.png

jai281997_2-1720980472330.png

 


the info message is working on global now am trying to exclude this message for service operations workspace how can i acheive this?
Thank you!

 

1 REPLY 1

Mark Manders
Mega Patron

For starters: why not put the message triggered through a BR in the message field ('Actions' tab)?

But for your requirement: create a scripted UI policy to show a message. You can apply a view to that. 

 

Or try something like this, although it can be buggy:

(function executeRule(current, previous /*null when async*/) {

    var sessionURL = gs.getSession().getUrlOnStack();
    
    // Check if the URL contains the Service Operations Workspace path
    if (sessionURL.indexOf('sow') > -1) {
        return;
    }
    
   message code

})(current, previous);

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark