How to hide the resolved incident ticket in incident list view for itil users.

ManjunathP
Tera Contributor

Hello,

 

How to hide the resolved and closed incident records in incident list view for itil users.

 

Please help me out

 

Thanks,

Manju

1 ACCEPTED SOLUTION

Runjay Patel
Giga Sage

Hi @ManjunathP ,

 

Create before query business rule like below.

RunjayPatel_0-1734443416285.png

RunjayPatel_1-1734443446474.png

 

code

if(gs.getUser().hasRole('itil')){
		current.addEncodedQuery('stateNOT IN6,7,8');
	}

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

View solution in original post

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @ManjunathP 

 

Try the ACL or better educate user, and create a new filter where state is not Resolved or closed and asked team to use that.

*************************************************************************************************************
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]

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

Runjay Patel
Giga Sage

Hi @ManjunathP ,

 

Create before query business rule like below.

RunjayPatel_0-1734443416285.png

RunjayPatel_1-1734443446474.png

 

code

if(gs.getUser().hasRole('itil')){
		current.addEncodedQuery('stateNOT IN6,7,8');
	}

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------