Restrict use of Retired and Non-Operational Service Offerings on Incident,Requested Items, Problems

suuriyas
Tera Contributor

HI Community,

 

Currently the Retired and Non-Operational Service Offerings can be tagged to the Incident,Requested Items, Problems and Change forms which should be restricted as it defies the logic of active service offerings.

 

How can we achieve this the service offering is OOB Field and in the ref qual there seems a script in it

suuriyas_0-1741346650480.png

 

1 ACCEPTED SOLUTION

Rishi_11
Kilo Sage

Hi @suuriyas ,

The "service offering" field on the incident table is inherited from the task table. So you need to do a dictionary override to change the reference qualifier just for incident table. 

  • Just open the dictionary entry, go to the related lists and look for dictionary overrides.
  • Open the incident record and modify the reference qualifier
  • Use a qualifier like "javascript:(!gs.nil(current.business_service) ? 'parent=' + current.business_service + '^operational_status!=2^operational_status!=6');"
  • Repeat the same steps for Problem, RITM and Change.

Let me know if this works. Please mark my response as "helpful" or "accepted as solution" if its helps you.

 

Thanks,

Rishi.

View solution in original post

7 REPLIES 7

Dr Atul G- LNG
Tera Patron
Tera Patron

Are you saying that a user can select a retired offering, which you don't want to be selected? If that's the case, you need to add another attribute to the offering status

 

https://www.servicenow.com/community/developer-forum/i-have-to-remove-non-operational-ci-s-from-all-...

https://www.servicenow.com/community/devops-forum/how-to-fix-reference-qualifier-to-only-show-active...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

HI @Dr Atul G- LNG ,

 

I tried like this but it is not working still i can able to add non operational and retired offerings

javascript:'operational_statusNOT IN2,6^parent='+current.business_service;

Hi @suuriyas 

 

You are doing this on the task table but you need to do this on incident - dictionary override 

AGLearnNGrow_0-1741349661389.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

HI @Dr Atul G- LNG ,

 

Tried the same but it did not worked

javascript:(!gs.nil(current.business_service)? 'operational_statusNOT IN2,6^parent='+current.business_service: 'u_for_classification=it');