Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Filter out changes where an incident is attached

sanjeevtanw
Kilo Contributor

Hi, can someone tell me how to create a filter to pull out the change request having an incident attached to them?

3 REPLIES 3

GlideFather
Tera Patron

Hi @sanjeevtanw 

 

change the URI and navigate to this links

  • For active incidents with associated change request:

https://your-instance.service-now.com/incident_list.do?sysparm_query=active%3Dtrue%5Erfc!%3DNULL

 

  • For ALL incidents regardless their state with associated change request:

https://your-instance.service-now.com/incident_list.do?sysparm_query=rfc!%3DNULL

 

EDIT: updated links

_____
No AI was used in the writing of this post. Pure #GlideFather only

@sanjeevtanw 

 

oh sorry, now I noticed that you want to filter these changes out...

 

then you can write a script with GlideRecord on the incident table (as per my link above) to get changes that are associated with incidents, and this query to apply to the change_request table, that the records are unfiltered in the secondary GR query

 

Please draft something and we can discuss it

_____
No AI was used in the writing of this post. Pure #GlideFather only

@sanjeevtanw Any breakthroughs??

_____
No AI was used in the writing of this post. Pure #GlideFather only