Excluding retired classes in ci on incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 01:14 AM - edited 02-06-2024 02:51 AM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 02:31 AM
Retired ci's from the pricipal class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 02:49 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 10:38 AM - edited 12-10-2024 10:44 AM
@Harithapola
What Mark suggested should work. I was lazy and just put it directly in the dictionary override as shown below.
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".