Hide Interceptor Links based on certain conditions

Prashanthi
Kilo Explorer

Could you let me know how to hide a few Interceptor links based on certain conditions. We open the interceptor by clicking on the New button on the incident and the links are displayed. I want to hide two links based on the values of the incident fields(reference field).

Please help me with some pointers.

6 REPLIES 6

Kieran Anson
Kilo Patron

The old wiki contains some helpful information on interceptors.

If you're doing this based on a UI action, wouldn't it be easier / better to do an IF condition within the UI action rather than needing to do an interceptor? 

Jaspal Singh
Mega Patron
Mega Patron

Hi Joyce,

 

In that case you can create a Query Business rule on Answer (sys_wizard_answer) table & then script something as below as an exmpale to hide an answer of inceptor from one group.

if(gs.getUser().isMemberOf('pass_group_sysid')){      //will restrict that interceptor answer for that group
current.addQuery('name','!=','answerName');

}

Hi Jaspal,

 

Thank you for the help. In the business rule, I need to validate the value of incident field. For example, if the value of the incident.aaa.bbb is "xyz", then I need to hide the interceptor. Could you please provide me any leads to this.

 

Bit confusing, till the time you not submitting the incident how would you look for its value? As interceptor is a step before submission.