We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Modifying filter on a related list

AwanishK
Tera Contributor

Hey Community.

 

So, in change records, I want to update the filters for 'Affected CI' related list. I don't just want to modify it in change record only, but when someone tries to add a new CI, the filter should be present there too. See if I select 'Add' option in SS1, SS2 opens. In SS2, just like how some classes are present on the filter, I need to add one more condition regarding status of CIs. From where can I do this? 

 

Thanks for your help.

2 REPLIES 2

Tejas Adhalrao
Kilo Sage

hi @AwanishK 

1) open the relationships  and search for "affected ci"

TejasAdhalrao_1-1770688721056.png

 

2)modify the query condition , in script 

TejasAdhalrao_2-1770688763630.png

 

 If you found my solution helpful, please mark it as Helpful or Accepted Solution...!

thanks,

tejas

Email: adhalraotejas1018@gmail.com

LinkedIn: https://www.linkedin.com/in/tejas1018

 

 

 

Ankur Bawiskar
Tera Patron

@AwanishK 

the filter comes from Script Include "AssociateCItoTask" and function getURL()

this article explains well on how to change

update the filter on this line

Apply Filter to ADD Button on Impacted Services/CI RelatedList 

AnkurBawiskar_0-1770693242851.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader