Excluding retired classes in ci on incident form

Harithapola
Tera Contributor

we implemented principal class   class need to displayed on ci field on incident table. but principal class shows even retried class . so how to restrict retried class while using principal class as reference qualifier on CI field on incident 

On incident form, ci field lookup filtering condition needs to be updated (excluding retired ci's)

7 REPLIES 7

Retired ci's from the pricipal class

 

In that case: does my script help (adding an 'activeCondition' variable)?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

IndianaJones
Tera Expert

@Harithapola 
What Mark suggested should work. I was lazy and just put it directly in the dictionary override as shown below.

 

IndianaJones_0-1733855820763.png

 

javascript:new TaskUtils().getConfigurationItemFilter(current) + '^operational_status=1^environment=Production';

 

You can modify the code at the end to fit your needs. In my example I am filtering for CI that have an operationsl status of "Operational" and the environment is in "Production".