Hide Business Services

nikhithanik
Tera Contributor

Hi All,

 

I want to hide few business services BE Bigdata APC, BE Bigdata PQE, Big Data, BE Bigdata BI&AI&Dashboard at Incident creation. How to achieve this using client scripts or ui policies.?

Thanks in advance
Nikhitha

1 ACCEPTED SOLUTION

Hello @nikhithanik 

 

If you observe carefully your reference qualifier has some mistake it should be as below:

//your code
javascript:'u_type='+current.u_business_service_type+'^u_active='+true+'sys_idNOT IN'+gs.getProperty("Business_services_to_exclude");

//correct code
javascript:'u_type='+current.u_business_service_type+'^u_active=true^sys_idNOT IN'+gs.getProperty("Business_services_to_exclude");

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

9 REPLIES 9

J Siva
Tera Sage

Hi @nikhithanik
You can use Business service dictionary override.
1. Go to Dictionary Override

2. Select the field (Business service) and table (incident)

3. Check the Override Reference Qualifier Check box.

4. Add the necessary filter condition.
JSiva_0-1741936055219.png

Note: The picture above is from PDI. It may differ in your customer instance. Before modifying the reference qualifier, please validate the existing configuration

Hope this helps.

Regards,
Siva

Hi Siva,

 

Thanks for you reply

 

I have tried with the reference qualifier but it is restricting other business services as well. Please do let me know if you find the solution.

 

Thanks in Advance.

Viraj Hudlikar
Giga Sage

Hello @nikhithanik 

 

See the Business Service field on incident form is reference field which already has reference qualifier applied so you can either append existing script call and get the exclusion of Business Service as per your requirement.

Another way is concatenate with extra condition to existing reference qualifier.

 

Below is something which is tried on PDI:
1) In PDI just for testing I created 3 Business Service as per your requirement.

VirajHudlikar_0-1741940333191.png

2) Now I created a system property where I put the sys_id of all records which we need to exclude.

VirajHudlikar_1-1741940381518.png

3) Now the last step of configuration, we open the reference field by right click -> Configure Dictionary then scroll to bottom as the record open is of parent table i.e task we want to do override so go to related list named "Dictionary Overrides" there check for entry with table named as incident open it, now configure as showcase in below image.

VirajHudlikar_2-1741940693329.png

4) Now after doing all this configuration, we will head back to our incident creation form refresh it so our configuration will work. Once we click Magnifying glass icon, we can see that this service is no longer present in list of record displayed to us. I tried to put extra filter when new window popup comes in to see if really my code worked and yes it worked you can see same in below image.

 

VirajHudlikar_3-1741940829970.png

 

Note - Why system property is used so we can append as many sys_id we want, and it is easily configurable when any changes are required. 

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Hi Viraj,

 

I have tried with the reference qualifier still the changes are not reflecting in the incident. Please help me out to get the solution. Or can we try with the client scripts.?