Advance reference qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2024 10:45 PM
I have created a custom field, Swapped CI, with a reference to the cmdb_ci table. I want to write an advanced reference qualifier for the Swapped CI field with the following conditions:
- If the Configuration Item belongs to the Software class, the Swapped CI field should display only CIs from the same class.
- The Configuration Item's associated asset must have an Asset State of "In Stock" and an Asset Substatus of "Available."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2024 11:22 PM - edited ‎12-08-2024 11:28 PM
Hi @BHUSHAN KEWAT ,
Right click on the Swapped ci field click on configure dictionary like below
 then in reference specification add condition like below
Select user reference qualifier:simple
reference qual condition: class is software
for asset state click on show related fields—dotwalk from Asset—Asset fields—state
   
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2024 01:59 AM
i have write a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2024 02:05 AM
Hi @BHUSHAN KEWAT ,
If you want to show the CI's class software and Configuration Item's associated asset must have an Asset State of "In Stock" and an Asset Substates of "Available." in Swapped field you can do with condition without writing any script, as mentioned in previous post steps .
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand